Mercurial > hg > CbC > CbC_gcc
comparison libcpp/internal.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
1 /* Part of CPP library. | 1 /* Part of CPP library. |
2 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, | 2 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, |
3 2008, 2009 Free Software Foundation, Inc. | 3 2008, 2009, 2010 Free Software Foundation, Inc. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify it | 5 This program is free software; you can redistribute it and/or modify it |
6 under the terms of the GNU General Public License as published by the | 6 under the terms of the GNU General Public License as published by the |
7 Free Software Foundation; either version 3, or (at your option) any | 7 Free Software Foundation; either version 3, or (at your option) any |
8 later version. | 8 later version. |
311 /* Chain element to previous saved macro. */ | 311 /* Chain element to previous saved macro. */ |
312 struct def_pragma_macro *next; | 312 struct def_pragma_macro *next; |
313 /* Name of the macro. */ | 313 /* Name of the macro. */ |
314 char *name; | 314 char *name; |
315 /* The stored macro content. */ | 315 /* The stored macro content. */ |
316 cpp_macro *value; | 316 unsigned char *definition; |
317 | |
318 /* Definition line number. */ | |
319 source_location line; | |
320 /* If macro defined in system header. */ | |
321 unsigned int syshdr : 1; | |
322 /* Nonzero if it has been expanded or had its existence tested. */ | |
323 unsigned int used : 1; | |
324 | |
325 /* Mark if we save an undefined macro. */ | |
326 unsigned int is_undef : 1; | |
317 }; | 327 }; |
318 | 328 |
319 /* A cpp_reader encapsulates the "state" of a pre-processor run. | 329 /* A cpp_reader encapsulates the "state" of a pre-processor run. |
320 Applying cpp_get_token repeatedly yields a stream of pre-processor | 330 Applying cpp_get_token repeatedly yields a stream of pre-processor |
321 tokens. Usually, there is only one cpp_reader object active. */ | 331 tokens. Usually, there is only one cpp_reader object active. */ |
524 static inline int | 534 static inline int |
525 cpp_in_system_header (cpp_reader *pfile) | 535 cpp_in_system_header (cpp_reader *pfile) |
526 { | 536 { |
527 return pfile->buffer ? pfile->buffer->sysp : 0; | 537 return pfile->buffer ? pfile->buffer->sysp : 0; |
528 } | 538 } |
529 #define CPP_PEDANTIC(PF) CPP_OPTION (PF, pedantic) | 539 #define CPP_PEDANTIC(PF) CPP_OPTION (PF, cpp_pedantic) |
530 #define CPP_WTRADITIONAL(PF) CPP_OPTION (PF, warn_traditional) | 540 #define CPP_WTRADITIONAL(PF) CPP_OPTION (PF, cpp_warn_traditional) |
531 | 541 |
532 static inline int cpp_in_primary_file (cpp_reader *); | 542 static inline int cpp_in_primary_file (cpp_reader *); |
533 static inline int | 543 static inline int |
534 cpp_in_primary_file (cpp_reader *pfile) | 544 cpp_in_primary_file (cpp_reader *pfile) |
535 { | 545 { |