[ruby-cvs:68999] mame:r61818 (trunk): parse.y: Remove almost all *_gen macros by passing parser_params explicitly

mame at ruby-lang.org mame at ruby-lang.org
Sun Jan 14 22:51:44 JST 2018


mame	2018-01-14 22:51:44 +0900 (Sun, 14 Jan 2018)

  New Revision: 61818

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61818

  Log:
    parse.y: Remove almost all *_gen macros by passing parser_params explicitly
    
    In parse.y many functions were suffixed "_gen" and had companion macros
    to pass struct parser_params implicitly, which made parse.c bigger and
    more obscure.
    
    This change expands and removes almost all "*_gen" macros.  This
    requires explicit passing of struct parser_params, i.e., we need to
    write "foo(p, ..)" instead of "foo(..)".  However, it is just extra
    three letters.  I believe that this is easier to understand.

  Modified files:
    trunk/node.h
    trunk/parse.y


More information about the ruby-cvs mailing list