std.h: Don't use `extern` in function prototypes
[sunny256-utils.git] / Lib / std / c / src / std.h
blobcd8ff781afed5a06a072a5bc435cfc10263e92fa
1 /*
2 * STDfilenameDTS
3 * File ID: STDuuidDTS
5 * (C)opyleft STDyearDTS- Øyvind A. Holm <sunny@sunbase.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _STDUexecUDTS_H
22 #define _STDUexecUDTS_H
24 #include "version.h"
26 #include <assert.h>
27 #include <errno.h>
28 #include <getopt.h>
29 #include <stdarg.h>
30 #include <stdbool.h>
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <string.h>
35 #if 1
36 # define DEBL msg(2, "DEBL: %s, line %u in %s()", \
37 __FILE__, __LINE__, __func__)
38 #else
39 # define DEBL ;
40 #endif
42 #define stddebug stderr
44 struct Options {
45 bool help;
46 bool license;
47 bool selftest;
48 int verbose;
49 bool version;
53 * Public function prototypes
56 /* STDexecDTS.c */
57 int msg(const int verbose, const char *format, ...);
58 int myerror(const char *format, ...);
60 /* selftest.c */
61 int selftest(void);
64 * Global variables
67 extern const char *progname;
68 extern struct Options opt;
70 #endif /* ifndef _STDUexecUDTS_H */
72 /* vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 : */