/ db / include /
/db/include/types.m4
1 dnl Copyright (C) 2012 The Meme Factory, Inc. http://www.meme.com/
2 dnl Copyright (C) 2004, 2008, Karl O. Pinc
3 dnl
4 dnl This file is part of Gombe-MI.
5 dnl
6 dnl Gombe-MI is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 3 of the License, or
9 dnl (at your option) any later version.
10 dnl
11 dnl This program is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
15 dnl
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with Gombe-MI. If not, see <http://www.gnu.org/licenses/>.
18 dnl
19 dnl Make datatypes used throughout the application.
20 dnl
21 dnl Karl O. Pinc <kop@meme.com>
22 dnl
23 dnl Note that these types are not really Postgres types, they're
24 dnl simply symbols that m4 expands into underlying Postgres types.
25 dnl
26 dnl Note that we wouldn't really need these datatypes if we
27 dnl could use %TYPE notation to declare arrays.
28 dnl
29 dnl
30 changequote([{[,]}])dnl m4 foolery so includes include only once.
31 dnl Once the macro is in the text, change the quotes back
32 ifdef([{[_maketypes.m4]}], [{[changequote(`,')]}], [{[dnl
33 changequote(`,')dnl
34 dnl
35 dnl Standard test for having already included the file.
36 define(`_maketypes.m4')dnl
37 dnl
38 dnl Turn output off. This file produces no output.
39 divert(-1)
40
41 dnl Turn output back on
42 divert`'dnl
43 dnl
44 dnl
45 ]}])dnl End of ifdef over the whole file.