Deleted Added
full compact
fix-header.c (18334) fix-header.c (18336)
1/* fix-header.c - Make C header file suitable for C++.
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
3
4This program is free software; you can redistribute it and/or modify it
5under the terms of the GNU General Public License as published by the
6Free Software Foundation; either version 2, or (at your option) any
7later version.
8

--- 517 unchanged lines hidden (view full) ---

526 scan_in.data = &scan_options;
527 init_parse_options (&scan_options);
528 i = cpp_handle_options (&scan_in, argc, argv);
529 if (i < argc)
530 fatal ("Invalid option `%s'", argv[i]);
531 push_parse_file (&scan_in, in_fname);
532 CPP_OPTIONS (&scan_in)->no_line_commands = 1;
533
1/* fix-header.c - Make C header file suitable for C++.
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
3
4This program is free software; you can redistribute it and/or modify it
5under the terms of the GNU General Public License as published by the
6Free Software Foundation; either version 2, or (at your option) any
7later version.
8

--- 517 unchanged lines hidden (view full) ---

526 scan_in.data = &scan_options;
527 init_parse_options (&scan_options);
528 i = cpp_handle_options (&scan_in, argc, argv);
529 if (i < argc)
530 fatal ("Invalid option `%s'", argv[i]);
531 push_parse_file (&scan_in, in_fname);
532 CPP_OPTIONS (&scan_in)->no_line_commands = 1;
533
534#ifdef FIXPROTO_INIT
535 /* Some targets may assume special definitions (for example
536 OSF header files assume __LANGUAGE_C__). These macros
537 are normally passed to cpplib by gcc - but we here invoke
538 cpplib directly, without going through gcc.
539 Handle these and other target-dependent initializations here. */
540 FIXPROTO_INIT (&scan_in);
541#endif
542
543 /* Actually (pre-)process the header file. */
534 scan_decls (&scan_in, argc, argv);
544 scan_decls (&scan_in, argc, argv);
545
535 check_macro_names (&scan_in, include_entry->required);
536 check_macro_names (&scan_in, include_entry->extra);
537
538 if (verbose && (scan_in.errors + warnings) > 0)
539 fprintf (stderr, "(%s: %d errors and %d warnings from cpp)\n",
540 inc_filename, scan_in.errors, warnings);
541 if (scan_in.errors)
542 exit (0);

--- 660 unchanged lines hidden ---
546 check_macro_names (&scan_in, include_entry->required);
547 check_macro_names (&scan_in, include_entry->extra);
548
549 if (verbose && (scan_in.errors + warnings) > 0)
550 fprintf (stderr, "(%s: %d errors and %d warnings from cpp)\n",
551 inc_filename, scan_in.errors, warnings);
552 if (scan_in.errors)
553 exit (0);

--- 660 unchanged lines hidden ---