5 * This file is part of AutoOpts, a companion to AutoGen.
6 * AutoOpts is free software.
7 * AutoOpts is Copyright (C) 1992-2015 by Bruce Korb - all rights reserved
9 * AutoOpts is available under any one of two licenses. The license
10 * in use must be one of these two and the choice is under the control
11 * of the user of the license.
13 * The GNU Lesser General Public License, version 3 or later
14 * See the files "COPYING.lgplv3" and "COPYING.gplv3"
16 * The Modified Berkeley Software Distribution License
17 * See the file "COPYING.mbsd"
19 * These files have the following sha256 sums:
21 * 8584710e9b04216a394078dc156b781d0b47e1729104d666658aecef8ee32e95 COPYING.gplv3
22 * 4379e7444a0e2ce2b12dd6f5a52a27a4d02d39d247901d3285c88cf0d37f477b COPYING.lgplv3
23 * 13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239 COPYING.mbsd
26 #ifndef AUTOGEN_PROJECT_H
27 #define AUTOGEN_PROJECT_H
30 #include "compat/compat.h"
31 #include "ag-char-map.h"
34 * Procedure success codes
36 * USAGE: define procedures to return "tSuccess". Test their results
37 * with the SUCCEEDED, FAILED and HADGLITCH macros.
39 * Microsoft sticks its nose into user space here, so for Windows' sake,
40 * make sure all of these are undefined.
50 #define SUCCESS ((tSuccess) 0)
51 #define FAILURE ((tSuccess)-1)
52 #define PROBLEM ((tSuccess) 1)
56 #define SUCCEEDED(p) ((p) == SUCCESS)
57 #define SUCCESSFUL(p) SUCCEEDED(p)
58 #define FAILED(p) ((p) < SUCCESS)
59 #define HADGLITCH(p) ((p) > SUCCESS)
63 # define STR(s) __STR(s)
74 #define parse_duration option_parse_duration
76 #endif /* AUTOGEN_PROJECT_H */
77 /* end of project.h */