]> git.gir.st - ttxd.git/blob - src/vtx2ascii-src/misc.h
initial code import
[ttxd.git] / src / vtx2ascii-src / misc.h
1 #ifndef MISC_H_INCLUDED
2 #define MISC_H_INCLUDED
3
4 /* $Id: misc.h,v 1.1 1996/10/14 21:37:00 mb Exp mb $
5 *
6 * Copyright (c) 1994-96 Martin Buck <martin-2.buck@student.uni-ulm.de>
7 * Read COPYING for more information
8 */
9
10 #include <limits.h>
11
12
13 #define VTXVERSION "0.6.970815"
14 #define VTXNAME "videotext"
15 #define VTXCLASS "Videotext"
16 #define VTXWINNAME "VideoteXt"
17
18 #define REQ_MAJOR 1
19 #define REQ_MINOR 6
20
21
22 #ifndef MIN
23 #define MIN(a, b) ((a) < (b) ? (a) : (b))
24 #define MAX(a, b) ((a) > (b) ? (a) : (b))
25 #endif
26 #define SIGN(a) ((a) < 0 ? -1 : ((a) > 0 ? 1 : 0))
27 #define STRINGIFY_NOMACRO(str) #str
28 #define STRINGIFY(str) STRINGIFY_NOMACRO(str)
29 #define NELEM(a) (sizeof(a) / sizeof(*(a)))
30
31 #ifndef FALSE
32 #define FALSE 0
33 #define TRUE 1
34 #endif
35
36 /* It's unbelievable that some systems are unable to provide the most basic ANSI-C features */
37 #ifndef INT_MAX
38 #define INT_MAX 2147483647
39 #endif
40
41 #endif /* MISC_H_INCLUDED */
Imprint / Impressum