History

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

Masahiro Yamada committed 1 year ago

Commit 015b0bf1 parent 25ff08a1 file · +9 −9Browse files

Unified · Split

scripts/genksyms/parse.y+9−9
@@ -367,17 +367,17 @@ parameter_declaration_list: · 366 unmodified lines
367 ;367 ;
368 368
369parameter_declaration:369parameter_declaration:
370 decl_specifier_seq m_abstract_declarator370 decl_specifier_seq abstract_declarator
371 { $$ = $2 ? $2 : $1; }371 { $$ = $2 ? $2 : $1; }
372 ;372 ;
373 373
374m_abstract_declarator:374abstract_declarator:
375 ptr_operator m_abstract_declarator375 ptr_operator abstract_declarator
376 { $$ = $2 ? $2 : $1; }376 { $$ = $2 ? $2 : $1; }
377 | direct_m_abstract_declarator377 | direct_abstract_declarator
378 ;378 ;
379 379
380direct_m_abstract_declarator:380direct_abstract_declarator:
381 /* empty */ { $$ = NULL; }381 /* empty */ { $$ = NULL; }
382 | IDENT382 | IDENT
383 { /* For version 2 checksums, we don't want to remember383 { /* For version 2 checksums, we don't want to remember
@@ -391,13 +391,13 @@ direct_m_abstract_declarator: · 7 unmodified lines
391 { remove_node($1);391 { remove_node($1);
392 $$ = $1;392 $$ = $1;
393 }393 }
394 | direct_m_abstract_declarator '(' parameter_declaration_clause ')'394 | direct_abstract_declarator '(' parameter_declaration_clause ')'
395 { $$ = $4; }395 { $$ = $4; }
396 | direct_m_abstract_declarator '(' error ')'396 | direct_abstract_declarator '(' error ')'
397 { $$ = $4; }397 { $$ = $4; }
398 | direct_m_abstract_declarator BRACKET_PHRASE398 | direct_abstract_declarator BRACKET_PHRASE
399 { $$ = $2; }399 { $$ = $2; }
400 | '(' m_abstract_declarator ')'400 | '(' abstract_declarator ')'
401 { $$ = $3; }401 { $$ = $3; }
402 | '(' error ')'402 | '(' error ')'
403 { $$ = $3; }403 { $$ = $3; }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t