Project

General

Profile

« Previous | Next » 

Revision be1ceb27

Added by nobu (Nobuyoshi Nakada) about 9 years ago

fix non-static rb_scan_args

  • include/ruby/ruby.h (rb_scan_args): remove nul padding which
    caused syntax error if fmt is not a string literal.
  • include/ruby/ruby.h (rb_scan_args_verify): suppress array-bounds
    warnings by old clang.
  • include/ruby/ruby.h (rb_scan_args0): make extractor macros
    inline functions, which do not varidate the format and are
    unnecessary to be expanded.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e