The unobfuscated code, which was put in deobfuscated/, has been turned into alt code. In one case the already existing alt code was made alt2 and the unobfuscated code was alt. In the case of the ones with two C files there, the one that did not require modification (to compile in modern systems) were used as those are original. In a few cases these changes suggested additional files: a test suite Makefile for the alt code, a try.alt.sh script and maybe some other things besides. The bug status was updated for 2015/howe with a known bug: in particular the test scripts do not work (at least not completely). In the manifest all references (except for a file name that has not been renamed - at least not yet) of 'deobfuscated' to 'unobfuscated': a minor detail that might not matter much but it sounds ever so slightly better (maybe). These other entries that had an entry_text change were 1995/garry and 2020/endoh2. Rebuilt .entry.json and index.html files for this (and in the case of the moved code the index.html files also had to be changed for that in addition to the Makefiles).
47 lines
1.0 KiB
C
47 lines
1.0 KiB
C
/*
|
|
* Trivial err.h
|
|
*/
|
|
|
|
#ifndef __err_h__
|
|
#define __err_h__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <stdarg.h>
|
|
|
|
#define warnx(...) { fprintf(stderr, __VA_ARGS__); fputc('\n', stderr); }
|
|
#define warn(...) { \
|
|
fprintf(stderr, __VA_ARGS__); \
|
|
fprintf(stderr, ": %s\n", strerror(errno)); \
|
|
}
|
|
|
|
#define vwarnx(fmt, args) { vfprintf(stderr, fmt, args); fputc('\n', stderr); }
|
|
#define vwarn(fmt, args) { \
|
|
vfprintf(stderr, fmt, args); \
|
|
fprintf(stderr, "%s%s\n", (fmt) ? ": " : "", strerror(errno)); \
|
|
}
|
|
|
|
#define errx(ex, ...) { fprintf(stderr, __VA_ARGS__); fputc('\n', stderr); exit(ex); }
|
|
#define err(ex, ...) { \
|
|
fprintf(stderr, __VA_ARGS__); \
|
|
fprintf(stderr, ": %s\n", strerror(errno)); \
|
|
exit(ex); \
|
|
}
|
|
|
|
#define verrx(ex, fmt, args) { vfprintf(stderr, fmt, args); fputc('\n', stderr); exit(ex); }
|
|
#define verr(ex, fmt, args) { \
|
|
vfprintf(stderr, fmt, args); \
|
|
fprintf(stderr, "%s%s\n", (fmt) ? ": " : "", strerror(errno)); \
|
|
exit(ex); \
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __err_h__ */
|