fix ruby kw warnings, all can be methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
404abfaa11
commit
473215225d
2 changed files with 42 additions and 34 deletions
|
|
@ -82,6 +82,16 @@ public:
|
|||
{
|
||||
return true;
|
||||
}
|
||||
int begin()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int end()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
#define __ruby_rubykw_swg__
|
||||
|
||||
/* Warnings for Ruby keywords */
|
||||
#define RUBYKW(x) %keywordwarn("'" `x` "' is a ruby keyword, and it will renamed as 'C_"`x`"'",rename="C_%s") `x`
|
||||
#define RUBYBN(x) %builtinwarn("'" `x` "' is a built-in name") "::"`x`
|
||||
|
||||
#define RUBYKW(x) %keywordwarn("'" `x` "' is a ruby keyword, and it will renamed as 'C_"`x`"'",rename="C_%s",fullname=1) `x`
|
||||
|
||||
/*
|
||||
|
||||
|
|
@ -14,44 +12,44 @@
|
|||
*/
|
||||
|
||||
RUBYKW(BEGIN);
|
||||
RUBYKW(class);
|
||||
RUBYKW(ensure);
|
||||
RUBYKW(nil);
|
||||
RUBYKW(self);
|
||||
RUBYKW(when);
|
||||
RUBYKW(END);
|
||||
RUBYKW(def);
|
||||
RUBYKW(false);
|
||||
RUBYKW(not);
|
||||
RUBYKW(super);
|
||||
RUBYKW(while);
|
||||
RUBYKW(alias);
|
||||
RUBYKW(for);
|
||||
RUBYKW(or);
|
||||
RUBYKW(then);
|
||||
RUBYKW(yield);
|
||||
RUBYKW(and);
|
||||
RUBYKW(do);
|
||||
RUBYKW(if);
|
||||
RUBYKW(redo);
|
||||
RUBYKW(true);
|
||||
RUBYKW(else);
|
||||
RUBYKW(in);
|
||||
RUBYKW(rescue);
|
||||
RUBYKW(undef);
|
||||
RUBYKW(begin);
|
||||
RUBYKW(break);
|
||||
RUBYKW(elsif);
|
||||
RUBYKW(module);
|
||||
RUBYKW(retry);
|
||||
RUBYKW(unless);
|
||||
RUBYKW(case);
|
||||
RUBYKW(next);
|
||||
RUBYKW(return);
|
||||
RUBYKW(until);
|
||||
RUBYKW(class);
|
||||
RUBYKW(def);
|
||||
RUBYKW("defined");
|
||||
RUBYKW(do);
|
||||
RUBYKW(else);
|
||||
RUBYKW(elsif);
|
||||
RUBYKW(end);
|
||||
RUBYKW(ensure);
|
||||
RUBYKW(false);
|
||||
RUBYKW(for);
|
||||
RUBYKW(if);
|
||||
RUBYKW(in);
|
||||
RUBYKW(module);
|
||||
RUBYKW(next);
|
||||
RUBYKW(nil);
|
||||
RUBYKW(not);
|
||||
RUBYKW(or);
|
||||
RUBYKW(redo);
|
||||
RUBYKW(rescue);
|
||||
RUBYKW(retry);
|
||||
RUBYKW(return);
|
||||
RUBYKW(self);
|
||||
RUBYKW(super);
|
||||
RUBYKW(then);
|
||||
RUBYKW(true);
|
||||
RUBYKW(undef);
|
||||
RUBYKW(unless);
|
||||
RUBYKW(until);
|
||||
RUBYKW(when);
|
||||
RUBYKW(while);
|
||||
RUBYKW(yield);
|
||||
|
||||
RUBYBN(begin);
|
||||
RUBYBN(end);
|
||||
|
||||
#undef RUBYKW
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue