Commit graph

1096 commits

Author SHA1 Message Date
Sven M. Hallberg
2eaf5d9052 add some missing type conversions to make h_read_bits work with count>32 2015-02-12 01:40:45 +01:00
Meredith L. Patterson
8aba9ce217 Merge pull request #125 from pesco/fix-h_seq_index_path
Descend properly in h_seq_index_path
2015-01-30 21:37:34 +01:00
Sven M. Hallberg
7ba5931095 Merge branch 'master' of git://github.com/UpstandingHackers/hammer into h_bind 2015-01-30 20:48:49 +01:00
Sven M. Hallberg
12771a5655 oh, there's t_regression.c now, neat. 2015-01-30 20:42:11 +01:00
Sven M. Hallberg
3f197ea1b0 Merge branch 'master' of git://github.com/UpstandingHackers/hammer into fix-h_seq_index_path 2015-01-30 20:37:26 +01:00
Sven M. Hallberg
341123e2ea descend properly in h_seq_index_path 2015-01-30 20:36:37 +01:00
Sven M. Hallberg
cbc7358b66 add a test that shows a bug in h_seq_index_path 2015-01-30 20:35:35 +01:00
Sven M. Hallberg
c9b2957832 add g_check_cmp_int 2015-01-30 20:35:14 +01:00
Sven M. Hallberg
78266af453 allow h_bind's function argument to return NULL as a shortcut for h_nothing_p() 2015-01-23 22:06:43 +01:00
Sven M. Hallberg
42d51ed479 add monadic bind combinator h_bind 2015-01-23 22:00:59 +01:00
Steven Dee
a0104776ed Free res_unamb 2015-01-04 21:38:04 -05:00
Meredith L. Patterson
5efaba87e8 Merge pull request #120 from thequux/fix-bug118
Fix #118
2015-01-04 04:18:11 +01:00
Meredith L. Patterson
b2f247b029 Merge pull request #116 from mrdomino/h-validate-apply
H_VALIDATE_APPLY macro
2015-01-04 04:12:06 +01:00
TQ Hirsch
af73181cf4 Fix #118
NEWS:
* Switching endianness mid-byte no longer potentially re-reads bytes.
* bit_offset now consistently refers to the number of bits already
  read.
* HParsedTokens now have a bit_length field; this is a size_t.  This
  may be removed for memory reasons.

The bit writer has not yet been updated to match; the result of
switching bit writer endianness in the middle of a byte remains
undefined.
2015-01-04 04:08:01 +01:00
Steven Dee
2dad0c48b4 H_VALIDATE_APPLY macro
I've found this especially useful in combination with my own
_attr_uint_const for things like flags and type specifiers.

It's possible that its usefulness might be diminished significantly if
there were a built-in bitfield constant parser -- that certainly would
eliminate all of my current uses of it -- but it still seems nicely
symmetric with H_ACT_APPLY.
2015-01-03 16:44:36 -05:00
Steven Dee
5abe74f890 Retab as though tabstop were 8
Tabs after the first non-tab character are crazymaking. I picked 8
because it wasn't 7 and caused the backslashes to line up on
H_ACT_APPLY.
2015-01-03 16:35:56 -05:00
Meredith L. Patterson
58af99ae40 Merge pull request #114 from mrdomino/llvm-attr-malloc
llvm doesn't care about your size
2014-12-30 00:18:53 +01:00
Meredith L. Patterson
f78054708c Merge pull request #111 from mrdomino/pkg-config-path
Fix compilation when PKG_CONFIG_PATH is not in environ
2014-12-30 00:18:25 +01:00
Meredith L. Patterson
47f34b81e4 Merge pull request #112 from mrdomino/fix-base64
Remove vacuous states in base64_sem?.c
2014-12-07 22:21:04 +01:00
Meredith L. Patterson
735131ee24 Merge pull request #110 from mrdomino/move-unreferenced-var
Move backend names into src/benchmark.c
2014-12-07 22:20:03 +01:00
Steven Dee
b1078c3d88 llvm doesn't care about your size
They apparently removed alloc_size at some point (it was a no-op
beforehand), causing the attribute to throw an error when clang compiles
anything including allocator.h.
2014-12-07 02:27:28 -05:00
Steven Dee
8d5f00870f Remove vacuous states in base64_sem?.c
I don't think these actually affect correctness since there's no way for
0x40 or 0x60 to show up in a parse tree anyway, but they're confusing.
2014-12-07 00:16:57 -05:00
Steven Dee
70fa455c03 Fix compilation when PKG_CONFIG_PATH is not in environ 2014-12-07 00:16:34 -05:00
Steven Dee
f2434d5b12 Move backend names into src/benchmark.c
It's causing unreferenced-variable warnings, and isn't referenced
anywhere aside from benchmark.c. If client code is likely to reference
it, perhaps move it into another header, so people who include hammer.h
don't have to refer to it to have warning-free code.
2014-12-07 00:12:11 -05:00
Meredith L. Patterson
9faa4cf675 Merge pull request #109 from mrdomino/readme-user-guide
Mention user guide in README
2014-12-01 01:38:18 +01:00
Steven Dee
011efe8cfb Mention user guide in README 2014-11-30 19:23:29 -05:00
Meredith L. Patterson
e7aa73446e Merge pull request #107 from sjmackenzie/master
Scons now doesn't throw away PKG_CONFIG_PATH, so NixOS can build it
2014-10-29 05:40:13 +01:00
stewart
e057e8cb1b Scons now doesn't throw away /home/stewart/.nix-profile/lib/pkgconfig:/nix/var/nix/profiles/default/lib/pkgconfig:/run/current-system/sw/lib/pkgconfig, so NixOS can build it 2014-10-29 10:32:21 +08:00
Meredith L. Patterson
0dff293f6a Merge pull request #106 from pesco/98-permutation-combinator
add h_permutation
2014-06-19 11:38:50 +02:00
Sven M. Hallberg
41dca83631 add h_permutation 2014-06-18 21:54:52 +02:00
TQ Hirsch
c7161663c0 Merge pull request #105 from abiggerhammer/value
h_put_value and h_get_value done.
2014-05-12 01:29:44 -07:00
Meredith L. Patterson
6bdaab552b merge from upstream 2014-05-12 09:55:36 +02:00
Meredith L. Patterson
eb6c74cf89 h_put_value and h_get_value done. 2014-05-12 09:52:35 +02:00
Meredith L. Patterson
702e82f1c1 h_put_value and h_get_value done. 2014-05-12 09:45:22 +02:00
TQ Hirsch
5679939a2c Merge pull request #104 from abiggerhammer/master
change pointer type to uintptr_t for portability
2014-05-11 14:56:31 -07:00
Meredith L. Patterson
fcd729ef60 change pointer type to uintptr_t for portability 2014-05-11 23:41:54 +02:00
Meredith L. Patterson
a3d8150dd0 Merge pull request #103 from pesco/77-endian-combinator
implement h_with_endianness combinator
2014-05-07 23:29:39 +02:00
Sven M. Hallberg
bf50ffcd84 tab correction 2014-05-07 19:29:25 +02:00
Sven M. Hallberg
4a90a0be66 fix h_read_bits path for BYTE_LITTLE_ENDIAN 2014-05-07 19:24:58 +02:00
Sven M. Hallberg
5f920b29f8 add h_with_endianness() 2014-05-07 19:24:26 +02:00
fbz
4f188340be replaced man page as asciidoc instead of groff, changed to section 3 man page 2014-04-29 11:51:08 -04:00
fbz
c328bff80c a first edit of a man page for hammer 2014-04-25 11:47:30 +02:00
Meredith L. Patterson
f701ec2518 Merge pull request #102 from thequux/ports
Added NetBSD and OpenBSD ports
2014-04-22 15:45:28 +02:00
TQ Hirsch
22d125bfab Added NetBSD and OpenBSD ports 2014-04-22 15:04:26 +02:00
TQ Hirsch
4f9efcd726 Merge pull request #101 from abiggerhammer/master
Make HHashTable resizeable and improve benchmarking output
2014-04-20 21:50:59 +02:00
Meredith L. Patterson
27f08df1d3 fix infinite loop in isValidCF with indirect 2014-04-20 21:40:09 +02:00
Meredith L. Patterson
bab376cab7 fix non-resizable hashtable 2014-04-20 21:00:50 +02:00
Meredith L. Patterson
eb04842d85 slightly nicer benchmark output 2014-04-20 17:31:21 +02:00
Meredith L. Patterson
1d12f9ffac regex_compile should return -1 if not a regular grammar; give backends names 2014-04-20 17:23:25 +02:00
Meredith L. Patterson
c9419f4c34 CF backends weren't checking whether a grammar is CF; they are now. Also, brace-fixing. 2014-04-20 16:57:01 +02:00