- Copyright (C) 1993 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify it
-under the terms of the GNU General Public License as published by the
-Free Software Foundation; either version 2, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-/* This filter scans a C source file (actually, the output of cpp).
- It looks for function declaration. For each declaration, it prints:
-
- NAME;C;RTYPE;ARGS;FILENAME;LINENO;
-
- NAME is the function's name.
- C is "F" if the declaration is nested inside 'extern "C"' braces;
- otherwise "f".
- RTYPE is the function's return type.
- ARGS is the function's argument list.
- FILENAME and LINENO is where the declarations was seen
- (taking #-directives into account).
-
- Also:
-
- NAME;M;
- indicates that the macro NAME was seen (when invoked from fixproto).
- NAME;X;TYPE;
- indicates that 'extern TYPE NAME;' was seen.
-
- Written by Per Bothner <bothner@cygnus.com>, July 1993.
- */
-
-#include <stdio.h>
-#include <ctype.h>
+ Copyright (C) 1993, 1995, 1997, 1998,
+ 1999, 2000, 2003, 2004, 2007 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 3, or (at your option) any
+ later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING3. If not see
+ <http://www.gnu.org/licenses/>.
+
+ Written by Per Bothner <bothner@cygnus.com>, July 1993. */
+
+#include "bconfig.h"
+#include "system.h"
+#include "coretypes.h"
+#include "tm.h"
+#include "cpplib.h"