From 9bec482e399ce3cfa2d395a294f4758726c13e40 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 20 Dec 2004 03:44:10 +0000 Subject: [PATCH] (YYLLOC_DEFAULT): Use GNU spacing conventions. --- ChangeLog | 5 +++++ data/glr.c | 12 ++++++------ data/yacc.c | 12 ++++++------ 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 727be141..02a72289 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-19 Paul Eggert + + * data/glr.c (YYLLOC_DEFAULT): Use GNU spacing conventions. + * data/yacc.c (YYLLOC_DEFAULT): Likewise. + 2004-12-17 Paul Eggert Remove uses of 'short int' and 'unsigned short int'. This raises diff --git a/data/glr.c b/data/glr.c index bed15214..97c43bc7 100644 --- a/data/glr.c +++ b/data/glr.c @@ -429,17 +429,17 @@ static const ]b4_int_type_for([b4_stos])[ yystos[] = do \ if (N) \ { \ - (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC(Rhs, N).last_column; \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ - YYRHSLOC(Rhs, 0).last_line; \ + YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ - YYRHSLOC(Rhs, 0).last_column; \ + YYRHSLOC (Rhs, 0).last_column; \ } \ while (0) diff --git a/data/yacc.c b/data/yacc.c index 5d9b8bd1..7a416b61 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -515,17 +515,17 @@ while (0) do \ if (N) \ { \ - (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC(Rhs, N).last_column; \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ - YYRHSLOC(Rhs, 0).last_line; \ + YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ - YYRHSLOC(Rhs, 0).last_column; \ + YYRHSLOC (Rhs, 0).last_column; \ } \ while (0) #endif -- 2.47.2