-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.h
73 lines (55 loc) · 1.33 KB
/
global.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef tw_global_h
# define tw_global_h 1
#include <sys/types.h>
#include <cflib.h>
#if !defined(__CFLIB__) || (__CFLIB_MAJOR__ != 0 || __CFLIB_MINOR__ < 21)
#error This Toswin2 version require an up-to-date cflib.
#endif
#ifdef FALSE
# undef FALSE
#endif
#ifdef TRUE
# undef TRUE
#endif
typedef enum {FALSE, TRUE} bool;
#define TW2NAME "TOSWIN2 "
/* Dateinamen */
#define CFGNAME "toswin2.cfg"
#define RSCNAME "toswin2.rsc"
#define XCONNAME "u:\\dev\\xconout2"
#define TWCONNAME "u:\\dev\\tw-con"
/*
* Globale Variablen
*/
extern OBJECT *winicon,
*conicon,
*strings;
extern char **stringarray;
extern int exit_code; /* Enth„lt den Exitcode eines Kindprozesses */
extern int vdi_handle;
extern int font_anz;
extern int draw_ticks;
#define MAX_DRAW_TICKS 3
extern int curs_ticks;
#ifdef DEBUG
extern int do_debug;
# include <syslog.h>
#define SYSLOG(x) if (do_debug) { syslog x; }
#else
#define SYSLOG(x)
#endif
/*
* Hilfsfunktionen
*/
#define rsc_string(a) stringarray[a]
void set_fillcolor(int col);
void set_textcolor(int col);
void set_texteffects(int effects);
void set_wrmode(int mode);
void set_font(int font, int height);
void set_fillstyle(int style, int /* index */);
int alert(int def, int undo, int num);
void global_init(void);
void global_term(void);
void memulset (void* dest, unsigned long what, size_t size);
#endif