directives.c (258501) | directives.c (260310) |
---|---|
1/* CPP Library. (Directive handling.) 2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 Contributed by Per Bothner, 1994-95. 5 Based on CCCP program by Paul Rubin, June 1986 6 Adapted to ANSI C, Richard Stallman, Jan 1987 7 8This program is free software; you can redistribute it and/or modify it --- 977 unchanged lines hidden (view full) --- 986static void 987do_diagnostic (cpp_reader *pfile, int code, int print_dir) 988{ 989 if (_cpp_begin_message (pfile, code, pfile->cur_token[-1].src_loc, 0)) 990 { 991 if (print_dir) 992 fprintf (stderr, "#%s ", pfile->directive->name); 993 pfile->state.prevent_expansion++; | 1/* CPP Library. (Directive handling.) 2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 Contributed by Per Bothner, 1994-95. 5 Based on CCCP program by Paul Rubin, June 1986 6 Adapted to ANSI C, Richard Stallman, Jan 1987 7 8This program is free software; you can redistribute it and/or modify it --- 977 unchanged lines hidden (view full) --- 986static void 987do_diagnostic (cpp_reader *pfile, int code, int print_dir) 988{ 989 if (_cpp_begin_message (pfile, code, pfile->cur_token[-1].src_loc, 0)) 990 { 991 if (print_dir) 992 fprintf (stderr, "#%s ", pfile->directive->name); 993 pfile->state.prevent_expansion++; |
994 /* APPLE LOCAL #error with unmatched quotes 5607574 */ 995 pfile->state.in_diagnostic++; |
|
994 cpp_output_line (pfile, stderr); | 996 cpp_output_line (pfile, stderr); |
997 /* APPLE LOCAL #error with unmatched quotes 5607574 */ 998 pfile->state.in_diagnostic--; |
|
995 pfile->state.prevent_expansion--; 996 } 997} 998 999static void 1000do_error (cpp_reader *pfile) 1001{ 1002 do_diagnostic (pfile, CPP_DL_ERROR, 1); --- 165 unchanged lines hidden (view full) --- 1168 if (entry) 1169 { 1170 entry->is_deferred = true; 1171 entry->allow_expansion = allow_expansion; 1172 entry->u.ident = ident; 1173 } 1174} 1175 | 999 pfile->state.prevent_expansion--; 1000 } 1001} 1002 1003static void 1004do_error (cpp_reader *pfile) 1005{ 1006 do_diagnostic (pfile, CPP_DL_ERROR, 1); --- 165 unchanged lines hidden (view full) --- 1172 if (entry) 1173 { 1174 entry->is_deferred = true; 1175 entry->allow_expansion = allow_expansion; 1176 entry->u.ident = ident; 1177 } 1178} 1179 |
1180/* APPLE LOCAL begin pragma mark 5614511 */ 1181/* Handle #pragma mark. */ 1182static void 1183do_pragma_mark (cpp_reader *pfile) 1184{ 1185 ++pfile->state.skipping; 1186 skip_rest_of_line (pfile); 1187 --pfile->state.skipping; 1188} 1189/* APPLE LOCAL end pragma mark 5614511 */ 1190 |
|
1176/* Register the pragmas the preprocessor itself handles. */ 1177void 1178_cpp_init_internal_pragmas (cpp_reader *pfile) 1179{ 1180 /* Pragmas in the global namespace. */ 1181 register_pragma_internal (pfile, 0, "once", do_pragma_once); | 1191/* Register the pragmas the preprocessor itself handles. */ 1192void 1193_cpp_init_internal_pragmas (cpp_reader *pfile) 1194{ 1195 /* Pragmas in the global namespace. */ 1196 register_pragma_internal (pfile, 0, "once", do_pragma_once); |
1197 /* APPLE LOCAL pragma mark 5614511 */ 1198 register_pragma_internal (pfile, 0, "mark", do_pragma_mark); |
|
1182 1183 /* New GCC-specific pragmas should be put in the GCC namespace. */ 1184 register_pragma_internal (pfile, "GCC", "poison", do_pragma_poison); 1185 register_pragma_internal (pfile, "GCC", "system_header", 1186 do_pragma_system_header); 1187 register_pragma_internal (pfile, "GCC", "dependency", do_pragma_dependency); 1188} 1189 --- 1041 unchanged lines hidden --- | 1199 1200 /* New GCC-specific pragmas should be put in the GCC namespace. */ 1201 register_pragma_internal (pfile, "GCC", "poison", do_pragma_poison); 1202 register_pragma_internal (pfile, "GCC", "system_header", 1203 do_pragma_system_header); 1204 register_pragma_internal (pfile, "GCC", "dependency", do_pragma_dependency); 1205} 1206 --- 1041 unchanged lines hidden --- |