2 Copyright (C) 1997 Free Software Foundation, Inc.
3 Contributed by James Craig Burley.
5 This file is part of GNU Fortran.
7 GNU Fortran is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU Fortran is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Fortran; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 /* From f/proj.h, which uses #error -- not all C compilers
23 support that, and we want *this* program to be compilable
24 by pretty much any C compiler. */
34 #if !defined(false) || !defined(true)
37 #if !defined(FALSE) || !defined(TRUE)
40 Doggone_Trailing_Comma_Dont_Work
= 1
43 #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
45 #define die_unless(c) \
48 fprintf (stderr, "%s:%lu: " #c "\n", argv[1], lineno); \
60 main(int argc
, char **argv
)
63 static unsigned long lineno
= 1;
65 die_unless (argc
== 2);
68 /* This file is automatically generated from `%s',\n\
69 which you should modify instead. */\n\
74 while ((c
= getchar ()) != EOF
)
92 die_unless (c
!= EOF
);
110 die_unless (c
!= EOF
);
128 die_unless (c
!= EOF
);
146 die_unless (c
!= EOF
);
168 die_unless (c
!= EOF
);
179 die_unless (c
!= EOF
);
194 /* Don't bother outputting content of comments. */
205 die_unless (c
== EOF
);