bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

yacc.c: simplify yyparse_context_t member names


From: Akim Demaille
Subject: yacc.c: simplify yyparse_context_t member names
Date: Thu, 5 Mar 2020 18:00:25 +0100

I don't know why I added _p in the first place.

commit 2353ce721637c7a2e42bb384beb1d6fd7ece4aa5
Author: Akim Demaille <address@hidden>
Date:   Wed Mar 4 00:38:14 2020 +0100

    yacc.c: simplify yyparse_context_t member names
    
    * data/skeletons/yacc.c (yyparse_context_t): Rename yyes_p and
    yyes_capacity_p as...
    (yyes, yyes_capacity): These.

diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 0cc2cf1a..7ef0b218 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -1114,8 +1114,8 @@ yy_lac (yy_state_t *yyesa, yy_state_t **yyes,
   int yytoken;]b4_locations_if([[
   YYLTYPE *yylloc;]])[]b4_lac_if([[
   yy_state_t *yyesa;
-  yy_state_t **yyes_p;
-  YYPTRDIFF_T *yyes_capacity_p;]])[
+  yy_state_t **yyes;
+  YYPTRDIFF_T *yyes_capacity;]])[
 } yyparse_context_t;
 
 /* Put in YYARG at most YYARGN of the expected tokens given the
@@ -1134,7 +1134,7 @@ yyexpected_tokens (const yyparse_context_t *yyctx,
     if (yyx != YYTERROR && yyx != YYUNDEFTOK)
       {
         {
-          int yy_lac_status = yy_lac (yyctx->yyesa, yyctx->yyes_p, 
yyctx->yyes_capacity_p,
+          int yy_lac_status = yy_lac (yyctx->yyesa, yyctx->yyes, 
yyctx->yyes_capacity,
                                       yyctx->yyssp, yyx);
           if (yy_lac_status == 2)
             return -2;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]