[ruby-cvs:73239] duerst:r66139 (trunk): remove unnecessary settings with NULL_NODE in \X implementation

duerst at ruby-lang.org duerst at ruby-lang.org
Mon Dec 3 08:28:42 JST 2018


duerst	2018-12-03 08:28:42 +0900 (Mon, 03 Dec 2018)

  New Revision: 66139

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

  Log:
    remove unnecessary settings with NULL_NODE in \X implementation
    
    Remove unnecessary settings of node_array elements to NULL_NODE.
    We can do this because we initialize the whole array to NULL_NODEs
    and set everything again to NULL_NODEs when creating a sequence or
    alternative node.
    
    Also, fix an index error in the initialization of node_array.
    (issue #15343)

  Modified files:
    trunk/regparse.c


More information about the ruby-cvs mailing list