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
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: · 7 unmodified lines
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; }

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