diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-25 19:28:44 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-25 19:28:44 +0000 |
commit | a32f2771a5b1265435b332f15020b66bed552af4 (patch) | |
tree | 925e0c18e46eaa5d241ebbe1cd839d39fc0984a2 /gcc/c-common.c | |
parent | 3e8aa6e31c6a745edcec9395021ef13ca0f0122f (diff) | |
download | gcc-a32f2771a5b1265435b332f15020b66bed552af4.zip gcc-a32f2771a5b1265435b332f15020b66bed552af4.tar.gz gcc-a32f2771a5b1265435b332f15020b66bed552af4.tar.bz2 |
c-common.c: Remove USE_CPPLIB conditional inclusions.
* c-common.c: Remove USE_CPPLIB conditional inclusions.
* c-common.h: Similarly.
* c-decl.c: Similarly.
* c-lang.c: Similarly.
* c-lex.c: Similarly.
* c-parse.in: Similarly.
* c-pragma.c: Similarly.
* c-pragma.h: Similarly.
* gcc.c: Similarly.
* toplev.c: Similarly.
* cp/cp-tree.h: Similarly.
* cp/decl2.c: Similarly.
* cp/lang-specs.h: Similarly.
* cp/lex.c: Similarly.
* cp/lex.h: Similarly.
* cp/spew.c: Similarly.
* java/lang-options.h: Similarly.
* objc/lang-specs.h: Similarly.
* objc/objc-act.c: Similarly.
* configure.in: Remove configure option.
* config.in: Regenerate.
* configure: Regenerate.
From-SVN: r37742
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 4efa882..e839ae5 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -34,11 +34,8 @@ Boston, MA 02111-1307, USA. */ #include "intl.h" #include "diagnostic.h" #include "obstack.h" - -#if USE_CPPLIB #include "cpplib.h" cpp_reader parse_in; -#endif #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE TYPE_PRECISION (wchar_type_node) @@ -4710,91 +4707,6 @@ truthvalue_conversion (expr) return build_binary_op (NE_EXPR, expr, integer_zero_node, 1); } -#if !USE_CPPLIB -/* Read the rest of a #-directive from input stream FINPUT. - In normal use, the directive name and the white space after it - have already been read, so they won't be included in the result. - We allow for the fact that the directive line may contain - a newline embedded within a character or string literal which forms - a part of the directive. - - The value is a string in a reusable buffer. It remains valid - only until the next time this function is called. - - The terminating character ('\n' or EOF) is left in FINPUT for the - caller to re-read. */ - -char * -get_directive_line (finput) - register FILE *finput; -{ - static char *directive_buffer = NULL; - static unsigned buffer_length = 0; - register char *p; - register char *buffer_limit; - register int looking_for = 0; - register int char_escaped = 0; - - if (buffer_length == 0) - { - directive_buffer = (char *)xmalloc (128); - buffer_length = 128; - } - - buffer_limit = &directive_buffer[buffer_length]; - - for (p = directive_buffer; ; ) - { - int c; - - /* Make buffer bigger if it is full. */ - if (p >= buffer_limit) - { - register unsigned bytes_used = (p - directive_buffer); - - buffer_length *= 2; - directive_buffer - = (char *)xrealloc (directive_buffer, buffer_length); - p = &directive_buffer[bytes_used]; - buffer_limit = &directive_buffer[buffer_length]; - } - - c = getc (finput); - - /* Discard initial whitespace. */ - if ((c == ' ' || c == '\t') && p == directive_buffer) - continue; - - /* Detect the end of the directive. */ - if (looking_for == 0 - && (c == '\n' || c == EOF)) - { - ungetc (c, finput); - c = '\0'; - } - - *p++ = c; - - if (c == 0) - return directive_buffer; - - /* Handle string and character constant syntax. */ - if (looking_for) - { - if (looking_for == c && !char_escaped) - looking_for = 0; /* Found terminator... stop looking. */ - } - else - if (c == '\'' || c == '"') - looking_for = c; /* Don't stop buffering until we see another - one of these (or an EOF). */ - - /* Handle backslash. */ - char_escaped = (c == '\\' && ! char_escaped); - } -} -#endif /* USE_CPPLIB */ - /* Make a variant type in the proper way for C/C++, propagating qualifiers down to the element type of an array. */ |