diff options
author | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-02 17:40:04 +0000 |
---|---|---|
committer | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-02 17:40:04 +0000 |
commit | 33cfe654eb032c3567308979826bcf14e9305e1b (patch) | |
tree | 3b54fb65f8c0bf2e59e1b16cfe00c70ae8a79aad /gcc/treelang/lex.l | |
parent | e644ba93ca29da895abb7ec57e0cac33e53d32a7 (diff) | |
download | gcc-33cfe654eb032c3567308979826bcf14e9305e1b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88428 138bc75d-0d04-0410-961f-82ee72b054a4
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 a93432f94ba..41be1e07ea7 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; |