aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/common.h
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2008-10-03 02:06:54 -0800
committerDavid M. Syzdek <david@syzdek.net>2008-10-03 02:06:54 -0800
commit35e0eb09f77498714534e727646fe7cfce0d74cd (patch)
tree7beb58288f59a49a64f29effcf17617500205484 /src/common.h
downloaddmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.gz
dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.bz2
dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.tar.xz
dmstools-35e0eb09f77498714534e727646fe7cfce0d74cd.zip
initial import
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..01d5ef9
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,93 @@
1/*
2 * $Id: $
3 */
4/*
5 * Syzdek Coding Tools
6 * Copyright (c) 2008 David M. Syzdek <david@syzdek.net>.
7 *
8 * @SYZDEK_LICENSE_HEADER_START@
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License Version 2 as
12 * published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 * @SYZDEK_LICENSE_HEADER_END@
24 */
25/**
26 * @file src/common.h common includes and definitions
27 */
28#ifndef _SCT_SRC_COMMON_H
29#define _SCT_SRC_COMMON_H 1
30
31//////////////
32// //
33// Macros //
34// //
35//////////////
36
37/*
38 * The macro "PARAMS" is taken verbatim from section 7.1 of the
39 * Libtool 1.5.14 manual.
40 */
41/* PARAMS is a macro used to wrap function prototypes, so that
42 compilers that don't understand ANSI C prototypes still work,
43 and ANSI C compilers can issue warnings about type mismatches. */
44#undef PARAMS
45#if defined (__STDC__) || defined (_AIX) \
46 || (defined (__mips) && defined (_SYSTYPE_SVR4)) \
47 || defined(WIN32) || defined (__cplusplus)
48# define PARAMS(protos) protos
49#else
50# define PARAMS(protos) ()
51#endif
52
53
54///////////////
55// //
56// Headers //
57// //
58///////////////
59
60
61#ifdef HAVE_CONFIG_H
62#include <config.h>
63#endif
64
65
66///////////////////
67// //
68// Definitions //
69// //
70///////////////////
71
72#ifndef PACKAGE_BUGREPORT
73#define PACKAGE_BUGREPORT "david@syzdek.net"
74#endif
75
76#ifndef PACKAGE_NAME
77#define PACKAGE_NAME "Syzdek Coding Tools"
78#endif
79
80#ifndef PACKAGE_COPYRIGHT
81#define PACKAGE_COPYRIGHT "Copyright (c) 2008 David M. Syzdek <david@syzdek.net>."
82#endif
83
84#ifndef PACKAGE_VERSION
85#define PACKAGE_VERSION ""
86#endif
87
88#ifndef PROGRAM_NAME
89#define PROGRAM_NAME ""
90#endif
91
92#endif
93/* end of header */