2 #ifndef AUTOGEN_PROJECT_H
3 #define AUTOGEN_PROJECT_H
6 #include "compat/compat.h"
7 #include "ag-char-map.h"
10 * Procedure success codes
12 * USAGE: define procedures to return "tSuccess". Test their results
13 * with the SUCCEEDED, FAILED and HADGLITCH macros.
15 * Microsoft sticks its nose into user space here, so for Windows' sake,
16 * make sure all of these are undefined.
26 #define SUCCESS ((tSuccess) 0)
27 #define FAILURE ((tSuccess)-1)
28 #define PROBLEM ((tSuccess) 1)
32 #define SUCCEEDED(p) ((p) == SUCCESS)
33 #define SUCCESSFUL(p) SUCCEEDED(p)
34 #define FAILED(p) ((p) < SUCCESS)
35 #define HADGLITCH(p) ((p) > SUCCESS)
39 # define STR(s) __STR(s)
50 #endif /* AUTOGEN_PROJECT_H */