diff options
author | Craig Burley <burley@gnu.org> | 1998-06-15 22:23:44 -0400 |
---|---|---|
committer | Dave Love <fx@gcc.gnu.org> | 1998-06-16 02:23:44 +0000 |
commit | 8b45da67d0eaa8d7fec5913d9439d88865edfc55 (patch) | |
tree | c5d64b68c6b98dba2288a4954b8f7a54c140001e /gcc/f/lex.c | |
parent | 92a3a8d00dbfbf75862836a1b00db408f1ed633b (diff) | |
download | gcc-8b45da67d0eaa8d7fec5913d9439d88865edfc55.zip gcc-8b45da67d0eaa8d7fec5913d9439d88865edfc55.tar.gz gcc-8b45da67d0eaa8d7fec5913d9439d88865edfc55.tar.bz2 |
Cutover to system.h:
Mon Jun 15 22:21:57 1998 Craig Burley <burley@gnu.org>
Cutover to system.h:
* Make-lang.in:
* Makefile.in:
* ansify.c:
* bad.c:
* bld.c:
* com.c:
* com.h:
* expr.c:
* fini.c:
* g77spec.c:
* implic.c:
* intdoc.c:
* intrin.c:
* lex.c:
* lex.h:
* parse.c:
* proj.c:
* proj.h:
* src.c:
* src.h:
* stb.c:
* ste.c:
* target.c:
* top.c:
* system.j: New file.
Use toplev.h where appropriate:
* Make-lang.in:
* Makefile.in:
* bad.c:
* bld.c:
* com.c:
* lex.c:
* ste.c:
* top.c:
* toplev.j: New file.
Conditionalize all dumping/reporting routines so they don't
get built for gcc/egcs:
* bld.c:
* bld.h:
* com.c:
* equiv.c:
* equiv.h:
* sta.c:
* stt.c:
* stt.h:
* symbol.c:
* symbol.h:
Use hconfig.h instead of config.h where appropriate:
* Makefile.in (proj-h.o): Compile with -DUSE_HCONFIG.
* fini.c: Define USE_HCONFIG before including proj.h.
* Makefile.in (deps-kinda): Redirect stderr to stdout,
to eliminate diagnostics vis-a-vis g77spec.c.
* Makefile.in: Regenerate dependencies via deps-kinda.
* lex.c (ffelex_file_fixed, ffelex_file_free): Eliminate
apparently spurious warnings about uninitialized variables
`c', `column', and so on.
From-SVN: r20520
Diffstat (limited to 'gcc/f/lex.c')
-rw-r--r-- | gcc/f/lex.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gcc/f/lex.c b/gcc/f/lex.c index 2ce6b8b..c62e5b2 100644 --- a/gcc/f/lex.c +++ b/gcc/f/lex.c @@ -20,7 +20,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "proj.h" -#include <ctype.h> #include "top.h" #include "bad.h" #include "com.h" @@ -28,9 +27,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "malloc.h" #include "src.h" #if FFECOM_targetCURRENT == FFECOM_targetGCC -#include "config.j" #include "flags.j" #include "input.j" +#include "toplev.j" #include "tree.j" #include "output.j" /* Must follow tree.j so TREE_CODE is defined! */ #endif @@ -770,7 +769,7 @@ ffelex_cfelex_ (ffelexToken *xtoken, FILE *finput, int c) r = &q[buffer_length]; } c = ffelex_getc_ (finput); - if (!isdigit (c)) + if (! ISDIGIT (c)) break; } *p = '\0'; @@ -1812,10 +1811,10 @@ ffelex_expecting_character () ffelexHandler ffelex_file_fixed (ffewhereFile wf, FILE *f) { - register int c; /* Character currently under consideration. */ - register ffewhereColumnNumber column; /* Not really; 0 means column 1... */ + register int c = 0; /* Character currently under consideration. */ + register ffewhereColumnNumber column = 0; /* Not really; 0 means column 1... */ bool disallow_continuation_line; - bool ignore_disallowed_continuation; + bool ignore_disallowed_continuation = FALSE; int latest_char_in_file = 0; /* For getting back into comment-skipping code. */ ffelexType lextype; @@ -3033,11 +3032,11 @@ ffelex_file_fixed (ffewhereFile wf, FILE *f) ffelexHandler ffelex_file_free (ffewhereFile wf, FILE *f) { - register int c; /* Character currently under consideration. */ - register ffewhereColumnNumber column; /* Not really; 0 means column 1... */ - bool continuation_line; + register int c = 0; /* Character currently under consideration. */ + register ffewhereColumnNumber column = 0; /* Not really; 0 means column 1... */ + bool continuation_line = FALSE; ffewhereColumnNumber continuation_column; - int latest_char_in_file; /* For getting back into comment-skipping + int latest_char_in_file = 0; /* For getting back into comment-skipping code. */ /* Lex is called for a particular file, not for a particular program unit. @@ -4314,7 +4313,7 @@ ffelex_splice_tokens (ffelexHandler first, ffelexToken master, while (*p != '\0') { - if (isdigit (*p)) + if (ISDIGIT (*p)) { t = ffelex_token_number_from_names (master, i); p += ffelex_token_length (t); |