Skip to content

Commit 015b0bf

Browse files
committed
genksyms: rename m_abstract_declarator to abstract_declarator
This is called "abstract-declarator" in K&R. [1] I am not sure what "m_" stands for, but the name is clear enough without it. No functional changes are intended. [1] https://cs.wmich.edu/~gupta/teaching/cs4850/sumII06/The%20syntax%20of%20C%20in%20Backus-Naur%20form.htm Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Nicolas Schier <[email protected]>
1 parent 25ff08a commit 015b0bf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/genksyms/parse.y

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,17 +367,17 @@ parameter_declaration_list:
367367
;
368368

369369
parameter_declaration:
370-
decl_specifier_seq m_abstract_declarator
370+
decl_specifier_seq abstract_declarator
371371
{ $$ = $2 ? $2 : $1; }
372372
;
373373

374-
m_abstract_declarator:
375-
ptr_operator m_abstract_declarator
374+
abstract_declarator:
375+
ptr_operator abstract_declarator
376376
{ $$ = $2 ? $2 : $1; }
377-
| direct_m_abstract_declarator
377+
| direct_abstract_declarator
378378
;
379379

380-
direct_m_abstract_declarator:
380+
direct_abstract_declarator:
381381
/* empty */ { $$ = NULL; }
382382
| IDENT
383383
{ /* For version 2 checksums, we don't want to remember
@@ -391,13 +391,13 @@ direct_m_abstract_declarator:
391391
{ remove_node($1);
392392
$$ = $1;
393393
}
394-
| direct_m_abstract_declarator '(' parameter_declaration_clause ')'
394+
| direct_abstract_declarator '(' parameter_declaration_clause ')'
395395
{ $$ = $4; }
396-
| direct_m_abstract_declarator '(' error ')'
396+
| direct_abstract_declarator '(' error ')'
397397
{ $$ = $4; }
398-
| direct_m_abstract_declarator BRACKET_PHRASE
398+
| direct_abstract_declarator BRACKET_PHRASE
399399
{ $$ = $2; }
400-
| '(' m_abstract_declarator ')'
400+
| '(' abstract_declarator ')'
401401
{ $$ = $3; }
402402
| '(' error ')'
403403
{ $$ = $3; }

0 commit comments

Comments
 (0)