[ruby-cvs:70460] shyouhei:r63370 (trunk): type func(); is different from type func(void);

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Wed May 9 15:55:11 JST 2018


shyouhei	2018-05-09 15:55:11 +0900 (Wed, 09 May 2018)

  New Revision: 63370

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

  Log:
    type func(); is different from type func(void);
    
    If a function declarator includes no parameter list, that doesn't
    mean the function takes zero parameter. rb_ast_new here does take
    zero parameter, so it should be explicitly prototypes as (void).

  Modified files:
    trunk/node.h


More information about the ruby-cvs mailing list