modified: SpatialOmicsCoord.py
[GalaxyCodeBases.git] / c_cpp / etc / calc / calcerr_c.awk
blobd1354bcc39dca44725b7e8bc32a9661f62143e98
1 #!/usr/bin/sed
3 # calcerr_c - help produce calcerr.c from calcerr.tbl
5 # Copyright (C) 1999 Landon Curt Noll
7 # Calc is open software; you can redistribute it and/or modify it under
8 # the terms of the version 2.1 of the GNU Lesser General Public License
9 # as published by the Free Software Foundation.
11 # Calc is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
14 # Public License for more details.
16 # A copy of version 2.1 of the GNU Lesser General Public License is
17 # distributed with calc under the filename COPYING-LGPL. You should have
18 # received a copy with calc; if not, write to Free Software Foundation, Inc.
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 # @(#) $Revision: 30.1 $
22 # @(#) $Id: calcerr_c.awk,v 30.1 2007/03/16 11:09:46 chongo Exp $
23 # @(#) $Source: /usr/local/src/bin/calc/RCS/calcerr_c.awk,v $
25 # Under source code control: 1996/05/24 03:15:35
26 # File existed as early as: 1996
28 # chongo <was here> /\oo/\ http://www.isthe.com/chongo/
29 # Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
31 BEGIN {
32 printf("#include <stdio.h>\n");
33 printf("#include \"calcerr.h\"\n\n");
34 printf("#include \"have_const.h\"\n\n");
35 printf("/*\n");
36 printf(" * names of calc error values\n");
37 printf(" */\n");
38 printf("CONST char *error_table[E__COUNT+2] = {\n");
39 printf(" \"No error\",\n");
42 print $0;
44 END {
45 printf(" NULL\n");
46 printf("};\n");