Mercurial > hg > CbC > CbC_gcc
comparison libcpp/internal.h @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | 3bfb6c00c1e0 |
children | b7f97abdc517 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
23 #ifndef LIBCPP_INTERNAL_H | 23 #ifndef LIBCPP_INTERNAL_H |
24 #define LIBCPP_INTERNAL_H | 24 #define LIBCPP_INTERNAL_H |
25 | 25 |
26 #include "symtab.h" | 26 #include "symtab.h" |
27 #include "cpp-id-data.h" | 27 #include "cpp-id-data.h" |
28 | |
29 #ifndef HAVE_ICONV_H | |
30 #undef HAVE_ICONV | |
31 #endif | |
32 | 28 |
33 #if HAVE_ICONV | 29 #if HAVE_ICONV |
34 #include <iconv.h> | 30 #include <iconv.h> |
35 #else | 31 #else |
36 #define HAVE_ICONV 0 | 32 #define HAVE_ICONV 0 |
37 typedef int iconv_t; /* dummy */ | 33 typedef int iconv_t; /* dummy */ |
34 #endif | |
35 | |
36 #ifdef __cplusplus | |
37 extern "C" { | |
38 #endif | 38 #endif |
39 | 39 |
40 struct directive; /* Deliberately incomplete. */ | 40 struct directive; /* Deliberately incomplete. */ |
41 struct pending_option; | 41 struct pending_option; |
42 struct op; | 42 struct op; |
396 unsigned int lookaheads; | 396 unsigned int lookaheads; |
397 | 397 |
398 /* Nonzero prevents the lexer from re-using the token runs. */ | 398 /* Nonzero prevents the lexer from re-using the token runs. */ |
399 unsigned int keep_tokens; | 399 unsigned int keep_tokens; |
400 | 400 |
401 /* Error counter for exit code. */ | |
402 unsigned int errors; | |
403 | |
404 /* Buffer to hold macro definition string. */ | 401 /* Buffer to hold macro definition string. */ |
405 unsigned char *macro_buffer; | 402 unsigned char *macro_buffer; |
406 unsigned int macro_buffer_len; | 403 unsigned int macro_buffer_len; |
407 | 404 |
408 /* Descriptor for converting from the source character set to the | 405 /* Descriptor for converting from the source character set to the |
409 execution character set. */ | 406 execution character set. */ |
410 struct cset_converter narrow_cset_desc; | 407 struct cset_converter narrow_cset_desc; |
408 | |
409 /* Descriptor for converting from the source character set to the | |
410 UTF-8 execution character set. */ | |
411 struct cset_converter utf8_cset_desc; | |
411 | 412 |
412 /* Descriptor for converting from the source character set to the | 413 /* Descriptor for converting from the source character set to the |
413 UTF-16 execution character set. */ | 414 UTF-16 execution character set. */ |
414 struct cset_converter char16_cset_desc; | 415 struct cset_converter char16_cset_desc; |
415 | 416 |
589 extern void _cpp_init_tokenrun (tokenrun *, unsigned int); | 590 extern void _cpp_init_tokenrun (tokenrun *, unsigned int); |
590 extern cpp_hashnode *_cpp_lex_identifier (cpp_reader *, const char *); | 591 extern cpp_hashnode *_cpp_lex_identifier (cpp_reader *, const char *); |
591 | 592 |
592 /* In init.c. */ | 593 /* In init.c. */ |
593 extern void _cpp_maybe_push_include_file (cpp_reader *); | 594 extern void _cpp_maybe_push_include_file (cpp_reader *); |
595 extern const char *cpp_named_operator2name (enum cpp_ttype type); | |
594 | 596 |
595 /* In directives.c */ | 597 /* In directives.c */ |
596 extern int _cpp_test_assertion (cpp_reader *, unsigned int *); | 598 extern int _cpp_test_assertion (cpp_reader *, unsigned int *); |
597 extern int _cpp_handle_directive (cpp_reader *, int); | 599 extern int _cpp_handle_directive (cpp_reader *, int); |
598 extern void _cpp_define_builtin (cpp_reader *, const char *); | 600 extern void _cpp_define_builtin (cpp_reader *, const char *); |
720 ufputs (const unsigned char *s, FILE *f) | 722 ufputs (const unsigned char *s, FILE *f) |
721 { | 723 { |
722 return fputs ((const char *)s, f); | 724 return fputs ((const char *)s, f); |
723 } | 725 } |
724 | 726 |
727 #ifdef __cplusplus | |
728 } | |
729 #endif | |
730 | |
725 #endif /* ! LIBCPP_INTERNAL_H */ | 731 #endif /* ! LIBCPP_INTERNAL_H */ |