forked from oe5hpm/openBCM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
baycom.h
182 lines (152 loc) · 3.82 KB
/
baycom.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/***************************************************************
BayCom(R) Packet-Radio fuer IBM PC
OpenBayCom-Mailbox
--------------------------------------------------
Definitionen und Deklarationen fuer BayCom-Projekt
--------------------------------------------------
Copyright (c) Florian Radlherr
Taubenbergstr. 32
D-83627 Warngau
Alle Rechte vorbehalten / All Rights Reserved
***************************************************************/
//19981011 OE3DZW added wx-code
//19990215 OE3DZW clean up
//19991028 Jan clean up / moved features selection to config.h
//20000502 DK2UI config.h after lib-includes and before bcm-includes
// so all defines from baycom.h can be used in config.h
// and all defines from config.h are valid only in bcm
#ifndef _BAYCOM_H
#define _BAYCOM_H
#define YEAR "2013"
#define Year 1900 // 1900 + 100 = 2000
#ifdef __DPMI32__
#define __MSDOS__
#endif
#ifdef _WIN32
#define __MSDOS__
#define __FLAT__
#endif
#if defined(__MSDOS__) && (!defined(_WIN32))
#define __HWSCREEN__
#define __DOS16__
#endif
#ifndef __MSDOS__
#define __LINUX__
#define __UNIX__
#define __FLAT__
#endif
#include <ctype.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#ifndef errno // DH3MB, for compatibility with glibc
#include <errno.h>
#endif
#ifdef _WIN32
#include <setjmpex.h>
#else
#include <setjmp.h>
#endif
#define WITHNUDL 0
typedef unsigned char byte;
typedef int handle;
// to make the WIN32/DOS-Compiler happy...
#ifndef __LINUX__
#define strcasecmp stricmp
#define strncasecmp strnicmp
#endif
//
// Fixe Konstanten, die nie geaendert werden
//
#define REMLEN 80 // Laenge des Remote-Buffers
#define FALSE 0
#define NO 0
#define NEIN 0
#define AUS 0
#define ERROR 0
#define SAME 0
#define TRUE 1
#define OK 1
#define YES 1
#define JA 1
#define EIN 1
#define LOWER 1
#define HIGHER 2
#define JEIN -1
#define NIL (-1)
#define NOTFOUND (-1)
#define NIX 4711
#define CTRLF 6
#define BACKSPACE 8
#define TAB 9
#define CTRLK 11
#define CTRLL 12
#define CTRLN 14
#define CTRLQ 17
#define LINEDEL 25
#define INSERT 82
#define K_DELETE 83
#define LINKS 75
#define RECHTS 77
#define POS1 71
#define ENDE 79
#define RUNTER 80
#define RAUF 72
#define PG_RUNTER 81
#define PG_RAUF 73
#define CTL_PG_RAUF 132
#define CTL_PG_RUNTER 118
#define CR '\r'
#define LF '\n'
#ifdef __UNIX__
#define NEWLINE "\n"
#else
#define NEWLINE "\r\n"
#endif
#define LINLEN 142
#define EBENEN 255
#define MAXWND 50
/*---------------------------------------------------------------------------*/
#include "config.h"
/*---------------------------------------------------------------------------*/
#ifdef __MSDOS__
#include "ad_win32.h"
#include "ad_dos.h"
#include "color.h"
#include "d_window.h"
#endif
#ifdef __LINUX__
#include "ad_linux.h"
#endif
#ifdef L2COMPILE
#include "l2_appl.h"
#include "l2host.h"
#include "ax_util.h"
#include "layer2.h"
#include "layer1.h"
#endif
#include "mail.h"
#include "crc.h"
#include "fbb.h"
#include "huffman.h"
#include "filesurf.h"
#include "mailserv.h"
#ifdef DF3VI_POCSAG
#include "pocsag.h"
#endif
#include "fileio.h"
#include "yapp.h"
#include "didadit.h"
#include "binsplit.h"
#include "grep.h"
#include "pop3.h"
#include "md2md5.h"
#ifdef _WXSTN
#include "wx.h"
#endif
#endif // _BAYCOM_H
/*---------------------------------------------------------------------------*/