diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/db2tex/convent.h |
Initial commit
Diffstat (limited to 'support/db2tex/convent.h')
-rw-r--r-- | support/db2tex/convent.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/support/db2tex/convent.h b/support/db2tex/convent.h new file mode 100644 index 0000000000..0c35fd95ef --- /dev/null +++ b/support/db2tex/convent.h @@ -0,0 +1,39 @@ +/* convent.h - Konventionen; UKE/EDV, Bernd Paradies, 02.10.90 */ + +/* sccsid: "@(#)lib:/u1/bernd/inc/convent.h 1.0" */ + +#ifndef __CONVENTIONS__ /* verhindert doppeltes includen */ +#define __CONVENTIONS__ + + +/* -- Typen */ +typedef char BOOL; +typedef unsigned char BYTE; +typedef unsigned int WORD; + +#ifndef FALSE /* curses redefines FALSE and TRUE */ +#define FALSE 0 +#define TRUE 1 +#endif FALSE + +#define REG register + +/* -- Funktions-´Attribute´ */ +#define IMPORT extern +#define PRIVATE static +#define PUBLIC + +/* -- hooked functions */ + +#ifdef __TESTING__ + +#define malloc _malloc +#define free _free + +#endif __TESTING__ + + +#define warning(txt,nr) fprintf (stderr, "WARNING: %s (%i)\n", txt, nr) +#define error(txt) { fprintf (stderr, "ERROR: %s !\n", txt); exit (1); } + +#endif __CONVENTIONS__ |