Commit graph

14 commits

Author SHA1 Message Date
Sven M. Hallberg
3fc56a0dc3 add h_alloc() which calls errx() on failure and use it for all basic allocation
Rationale: "Basic allocation" refers to things outside of parsing proper,
mostly initialization. If such allocations fail, the system is globally
emory-starved from which it will likely not recover by returning failure.
In this case, terminating the process is in fact the most robust strategy as
it may mean the difference between a permanent hang and a temporary crash.
2015-11-30 16:37:00 +01:00
Meredith L. Patterson
1ffd8d9276 Fix undefined behaviour around system_allocator, issue #133. 2015-08-02 21:32:47 +02:00
Peter Johnson
c8fc061ea6 Ditch longs and long longs in favor of stdint.h types, which has cascading
effects throughout, including use of inttypes.h/PRI[ud]64 because printf() is
still stuck in a long world, conversion of %lu to %zu for printing values of
type size_t, and changing/renaming the g_check_cmp* family of functions.
2013-11-15 00:12:57 -05:00
Meredith L. Patterson
de8db18db4 Refactored tests; make just builds library, make test builds/runs tests 2012-11-13 22:29:25 -05:00
Meredith L. Patterson
158b2b3ba6 Removed all glib functions from everything other than the test suite. 2012-10-10 16:24:12 +02:00
Dan Hirsch
d5729efa1f Replaced glib memory allocation 2012-10-10 15:58:03 +02:00
Meredith L. Patterson
14c907b6f5 Bitwriter tests are done and pass. 2012-07-27 16:00:56 -07:00
Dan Hirsch
3f156e6d24 Added example test for bitwriter 2012-07-27 15:53:18 -07:00
Dan Hirsch
2c7c9820e2 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/bitwriter.c
2012-07-27 15:51:11 -07:00
Dan Hirsch
1fa209bdb7 Added test harness for bitwriter 2012-07-27 15:47:38 -07:00
Meredith L. Patterson
f62aa10896 Stubbed out bitwriter tests. 2012-07-27 15:37:48 -07:00
Dan Hirsch
4c3a5c9e4e Derp. Compile error. 2012-07-27 15:30:16 -07:00
Dan Hirsch
68e78fd4b8 Finished bitwriter implementation 2012-07-27 15:28:55 -07:00
Dan Hirsch
1b9314e73e Added bitwriter framework 2012-07-27 15:24:35 -07:00