-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.h
42 lines (29 loc) · 780 Bytes
/
type.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
#ifndef TYPE_H_
#define TYPE_H_
typedef unsigned char byte;
typedef unsigned char uchar;
typedef unsigned char uint8;
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned int uint32;
typedef signed int sint32;
typedef unsigned long long uint64;
typedef unsigned char AT_STAT;
#ifndef NULL
#define NULL (void *)0
#endif
#define TRUE 1
#define FALSE 0
#define true 1
#define false 0
#define SETCC_MODE 1
#define CHECKCC_MODE 0
#define ACCESSMODE_NONE 0
#define ACCESSMODE_GSM 1
#define ACCESSMODE_GSMCOMPACT 2
#define ACCESSMODE_TDD 3
#define ISDIGIT(c) (((c) >= 0x30) && ((c) <= 0x39))
#define NOTDIGIT(c) (((c) < 0x30) || ((c) > 0x39))
#define DIGIT(c) ((c)-0x30)
#define CHAR(n) ((n)+0x30)
#endif /* TYPE_H_ */