summaryrefslogtreecommitdiff
path: root/support/db2tex/convent.h
blob: 0c35fd95efe22cb18942460412e71893acb9b367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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__