]> andersk Git - moira.git/blob - clients/moira/defs.h
Change `SMS' to `Moira' where possible.
[moira.git] / clients / moira / defs.h
1 /*      This is the file defs.h for the Moira Client, which allows users
2  *      to quickly and easily maintain most parts of the Moira 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
31
32 /* Modification information is always printed in this format. */
33
34 #define MOD_FORMAT ("Last mod by %s at %s with %s.")
35
36 /* Some common default values. */
37
38 #define DEFAULT_NONE    ("")
39 #define DEFAULT_YES     ("1")
40 #define DEFAULT_NO      ("0")
41 #define DEFAULT_COMMENT ("none")
42
43 #define SUB_NORMAL 0
44 #define SUB_ERROR 1
45
46 #define MAX_ARGS_SIZE 100
47
48 typedef void (*FVoid)();        /* function pointer typedef. */
49 typedef char *(*FCharStar)();   /* function pointer typedef. */
50 typedef int (*FInt)();          /* function pointer typedef. */
51
52 typedef int Bool;
53
54 #define IS_EMPTY(s)  (strlen((s)) == 0)
55
56 #define WILDCARD     ('*')
57
58 /* This is unimplemented in the menu stuff, but would be nice. */
59
60 #define FORMFEED     Put_message(" ")
61
62 /* for use with insqueue and remque. */
63
64 struct qelem {
65   struct qelem *q_forw;
66   struct qelem *q_back;
67   char *q_data;
68 };
69
70 #endif /* _defs_header_ */      /* Do Not Add Anything After This Line */
This page took 0.039353 seconds and 5 git commands to generate.