diff options
author | James A. Morrison <phython@gcc.gnu.org> | 2004-10-02 17:40:04 +0000 |
---|---|---|
committer | James A. Morrison <phython@gcc.gnu.org> | 2004-10-02 17:40:04 +0000 |
commit | 7e57da121ac70d0fc9a53c3b1f2a3657e11e209b (patch) | |
tree | 3b54fb65f8c0bf2e59e1b16cfe00c70ae8a79aad /gcc/treelang/lex.l | |
parent | 1abb828af191bb7b36ee17c32f253f5eec371c29 (diff) | |
download | gcc-7e57da121ac70d0fc9a53c3b1f2a3657e11e209b.zip gcc-7e57da121ac70d0fc9a53c3b1f2a3657e11e209b.tar.gz gcc-7e57da121ac70d0fc9a53c3b1f2a3657e11e209b.tar.bz2 |
lex.l: Remove random whitespace.
2004-10-02 James A. Morrison <phython@gcc.gnu.org>
* lex.l: Remove random whitespace.
* parse.y: Reformat copyright notice. Indent declarations.
Wrap long lines, unwrap short lines.
* tree1.c: Reformat copyright notice. Wrap long lines.
Remove random whitespace.
(lookup_tree_name): Use LOCATION_LINE.
* treetree.c: Reformat copyright notice. Wrap long lines.
Remove random whitespace.
From-SVN: r88428
Diffstat (limited to 'gcc/treelang/lex.l')
-rw-r--r-- | gcc/treelang/lex.l | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/treelang/lex.l b/gcc/treelang/lex.l index a93432f..41be1e0 100644 --- a/gcc/treelang/lex.l +++ b/gcc/treelang/lex.l @@ -29,9 +29,7 @@ --------------------------------------------------------------------- Written by Tim Josling 1999-2001, based in part on other parts of - the GCC compiler. - -*/ + the GCC compiler. */ %{ #include "config.h" @@ -51,7 +49,7 @@ extern int option_lexer_trace; int yylex (void); void update_yylval (int a); -static int next_tree_charno=1; +static int next_tree_charno = 1; static void update_lineno_charno (void); static void dump_lex_value (int lexret); @@ -80,13 +78,13 @@ static void dump_lex_value (int lexret); [ \n\t]+ { update_lineno_charno (); - NOT_RETURN (WHITESPACE); + NOT_RETURN (WHITESPACE); } "//".* { /* Comment. */ - update_lineno_charno (); - NOT_RETURN (COMMENT); + update_lineno_charno (); + NOT_RETURN (COMMENT); } "{" { @@ -254,7 +252,7 @@ void update_yylval (int a) { struct prod_token_parm_item * tok; - tok=yylval; + tok = yylval; tok->category = token_category; tok->type = a; |