]>
Commit | Line | Data |
---|---|---|
ec47f9a6 | 1 | /* This is the file defs.h for the SMS Client, which allows a nieve |
2 | * user to quickly and easily maintain most parts of the SMS database. | |
3 | * It Contains: useful definitions. | |
4 | * | |
5 | * Created: 4/12/88 | |
6 | * By: Chris D. Peterson | |
7 | * | |
8 | * $Source$ | |
9 | * $Author$ | |
10 | * $Header$ | |
11 | * | |
12 | * Copyright 1988 by the Massachusetts Institute of Technology. | |
13 | * | |
14 | * For further information on copyright and distribution | |
15 | * see the file mit-copyright.h | |
16 | */ | |
17 | ||
18 | #include "mit-copyright.h" | |
19 | ||
20 | #ifndef _defs_header_ | |
21 | #define _defs_header_ | |
22 | ||
23 | #ifndef TRUE | |
24 | #define TRUE 1 | |
25 | #endif TRUE | |
26 | ||
27 | #ifndef FALSE | |
28 | #define FALSE 0 | |
29 | #endif FALSE | |
30 | ||
b14bad9d | 31 | /* where to find the SMS server */ |
32 | #define SMS_SERVER "SMS.MIT.EDU:sms_db" | |
33 | ||
ec47f9a6 | 34 | /* Modification information is always printed in this format. */ |
35 | ||
36 | #define MOD_FORMAT ("Last Modification by %s at %s with %s.") | |
37 | ||
38 | /* Some common default values. */ | |
39 | ||
40 | #define DEFAULT_NONE ("") | |
41 | #define DEFAULT_YES ("1") | |
42 | #define DEFAULT_NO ("0") | |
43 | #define DEFAULT_COMMENT ("none") | |
44 | ||
45 | #define SUB_NORMAL 0 | |
46 | #define SUB_ERROR 1 | |
47 | ||
48 | #define MAX_ARGS_SIZE 100 | |
49 | ||
50 | typedef void (*FVoid)(); /* function pointer typedef. */ | |
51 | typedef char * (*FCharStar)(); /* function pointer typedef. */ | |
52 | typedef int (*FInt)(); /* function pointer typedef. */ | |
53 | ||
54 | typedef int Bool; | |
55 | ||
56 | #define IS_EMPTY(s) (strlen((s)) == 0) | |
57 | ||
58 | #define WILDCARD ('*') | |
59 | ||
60 | /* This is unimplemented in the menu stuff, but would be nice. */ | |
61 | ||
62 | #define FORMFEED Put_message(" ") | |
63 | ||
64 | /* for use with insqueue and remque. */ | |
65 | ||
66 | struct qelem { | |
67 | struct qelem *q_forw; | |
68 | struct qelem *q_back; | |
69 | char * q_data; | |
70 | }; | |
71 | ||
72 | #endif _defs_header_ /* Do Not Add Anything After This Line */ |