1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef AUTOGEN_PROJECT_H
- #define AUTOGEN_PROJECT_H
- #include "config.h"
- #include "compat/compat.h"
- #include "ag-char-map.h"
- #undef SUCCESS
- #undef FAILURE
- #undef PROBLEM
- #undef SUCCEEDED
- #undef SUCCESSFUL
- #undef FAILED
- #undef HADGLITCH
- #define SUCCESS ((tSuccess) 0)
- #define FAILURE ((tSuccess)-1)
- #define PROBLEM ((tSuccess) 1)
- typedef int tSuccess;
- #define SUCCEEDED(p) ((p) == SUCCESS)
- #define SUCCESSFUL(p) SUCCEEDED(p)
- #define FAILED(p) ((p) < SUCCESS)
- #define HADGLITCH(p) ((p) > SUCCESS)
- #ifndef STR
- # define __STR(s) #s
- # define STR(s) __STR(s)
- #endif
- #ifdef DEFINING
- # define VALUE(s) = s
- # define MODE
- #else
- # define VALUE(s)
- # define MODE extern
- #endif
- #define parse_duration option_parse_duration
- #endif
|