diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-01-03 21:43:09 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-01-03 21:43:09 +0000 |
commit | 5d8ebbd862cb31e73a3a3c9f16adc274cc6ef924 (patch) | |
tree | 3504047f1de0b4702b0d0d4991c780df4a3aad89 /gcc/cppexp.c | |
parent | 518c131126e5829ed7e911b3421327ebef4dfb00 (diff) | |
download | gcc-5d8ebbd862cb31e73a3a3c9f16adc274cc6ef924.zip gcc-5d8ebbd862cb31e73a3a3c9f16adc274cc6ef924.tar.gz gcc-5d8ebbd862cb31e73a3a3c9f16adc274cc6ef924.tar.bz2 |
cpperror.c: Update comments and copyright.
* cpperror.c: Update comments and copyright.
* cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
From-SVN: r48522
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index f7fe054..1f225c3 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -1,6 +1,6 @@ /* Parse C expressions for cpplib. - Copyright (C) 1987, 1992, 1994, 1995, 1997, 1998, 1999, 2000, 2001 - Free Software Foundation. + Copyright (C) 1987, 1992, 1994, 1995, 1997, 1998, 1999, 2000, 2001, + 2002 Free Software Foundation. Contributed by Per Bothner, 1994. This program is free software; you can redistribute it and/or modify it @@ -85,10 +85,9 @@ static const struct suffix vsuf_3[] = { }; #define Nsuff(tab) (sizeof tab / sizeof (struct suffix)) -/* Parse and convert an integer for #if. Accepts decimal, hex, or - octal with or without size suffixes. Returned op is CPP_ERROR on - error, otherwise it is a CPP_NUMBER. */ - +/* Parse and convert what is presumably an integer in TOK. Accepts + decimal, hex, or octal with or without size suffixes. Returned op + is CPP_ERROR on error, otherwise it is a CPP_NUMBER. */ static struct op parse_number (pfile, tok) cpp_reader *pfile; @@ -206,6 +205,7 @@ parse_number (pfile, tok) return op; } +/* Handle meeting "defined" in a preprocessor expression. */ static struct op parse_defined (pfile) cpp_reader *pfile; @@ -275,7 +275,6 @@ parse_defined (pfile) (an interpreted preprocessing number or character constant, or the result of the "defined" or "#" operators), CPP_ERROR on error, CPP_EOF, or the type of an operator token. */ - static struct op lex (pfile, skip_evaluation) cpp_reader *pfile; @@ -372,6 +371,7 @@ lex (pfile, skip_evaluation) return op; } +/* Warn if appropriate on overflow. */ static void integer_overflow (pfile) cpp_reader *pfile; @@ -380,6 +380,8 @@ integer_overflow (pfile) cpp_pedwarn (pfile, "integer overflow in preprocessor expression"); } +/* Handle shifting A left by B bits. UNSIGNEDP is non-zero if A is + unsigned. */ static HOST_WIDEST_INT left_shift (pfile, a, unsignedp, b) cpp_reader *pfile; @@ -404,6 +406,8 @@ left_shift (pfile, a, unsignedp, b) } } +/* Handle shifting A right by B bits. UNSIGNEDP is non-zero if A is + unsigned. */ static HOST_WIDEST_INT right_shift (pfile, a, unsignedp, b) cpp_reader *pfile ATTRIBUTE_UNUSED; @@ -547,7 +551,6 @@ op_to_prio[] = /* Parse and evaluate a C expression, reading from PFILE. Returns the truth value of the expression. */ - int _cpp_parse_expr (pfile) cpp_reader *pfile; @@ -870,6 +873,7 @@ _cpp_parse_expr (pfile) return result; } +/* Output OP as text for diagnostics. */ static const unsigned char * op_as_text (pfile, op) cpp_reader *pfile; |