diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-19 01:09:53 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-19 01:09:53 -0400 |
commit | a71fc97fd262e1b5770f827047ea60bbaf38d9a2 (patch) | |
tree | b45ef48c63a35817f2db93dd2fec718778f58b99 /baseline/source/huff_dec/huff_dec.c | |
parent | 41358857592f1908d0c0f9898b6c9acabc1ad161 (diff) |
Unify all the versions of extra.h into a single multipurpose header
There was previously a huge amount of shared code that had to be
copied back and forth. This should reduce the maintenance burden
by containing all future changes to a single file.
New unified library is fully backwards-compatible but also
introduces and the easy-to-use `for_each_job` macro which
replaces the specific `for(...) START_LOOP ... STOP_LOOP`
format requirement and is generally much harder to abuse.
New unified library also automatically cleans up its shared memory
and semaphores, so this commit also removes the separate
`cleanupSemaphores` binary.
I also found a precursor of `extra.h` written by Sims in
`litmusStuff.h`. This code is only interesting for historical
purposes, so it is also removed in this commit.
This commit also adds debug options to all the Makefiles and
silences rm's complaints about non-existent files in make clean.
Diffstat (limited to 'baseline/source/huff_dec/huff_dec.c')
-rw-r--r-- | baseline/source/huff_dec/huff_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/baseline/source/huff_dec/huff_dec.c b/baseline/source/huff_dec/huff_dec.c index b83b99d..58b40d3 100644 --- a/baseline/source/huff_dec/huff_dec.c +++ b/baseline/source/huff_dec/huff_dec.c | |||
@@ -49,7 +49,7 @@ new schemes (this item is not a must) | |||
49 | */ | 49 | */ |
50 | 50 | ||
51 | 51 | ||
52 | #include "../extra.h" | 52 | #include "extra.h" |
53 | typedef struct s_tree { | 53 | typedef struct s_tree { |
54 | unsigned int byte; /* A byte has to be coded as an unsigned integer to | 54 | unsigned int byte; /* A byte has to be coded as an unsigned integer to |
55 | allow a node to have a value over 255 */ | 55 | allow a node to have a value over 255 */ |