osl_errors.h: errlist
sed -e 's/\([A-Z_]*\) .*/ E_OSL_\1/' \
- -e '1s/^/enum osl_errors {\n/1' \
+ -e '1s/^/enum osl_errors {/1' \
-e '$$!s/$$/,/g' \
- -e '$$s/$$/\n};/1' $< > $@
+ -e '$$s/$$/};/1' $< > $@
errtab.h: errlist
sed -e 's/^\([A-Z_]*\)\s*\(.*\)/_S(E_OSL_\1, \2)/g' $< > $@
#include <assert.h>
#include "gcc-compat.h"
-/** compute the maximum of \a a and \a b */
-#define MAX(a,b) ((a) > (b) ? (a) : (b))
-
/** debug loglevel, gets really noisy */
#define DEBUG 1
/** still noisy, but won't fill your disk */