Clean-up remnants of SWIG_GE, etc workaround which is no longer used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a2229a45fc
commit
7df94f65e5
1 changed files with 2 additions and 5 deletions
|
|
@ -5608,18 +5608,15 @@ exprcompound : expr PLUS expr {
|
|||
}
|
||||
/* Sadly this causes 2 reduce-reduce conflicts with templates. FIXME resolve these.
|
||||
| expr GREATERTHAN expr {
|
||||
$$.val = NewStringf("%s SWIG_LT %s", $1.val, $3.val);
|
||||
$$.val = NewStringf("%s < %s", $1.val, $3.val);
|
||||
$$.type = cparse_cplusplus ? T_BOOL : T_INT;
|
||||
}
|
||||
| expr LESSTHAN expr {
|
||||
$$.val = NewStringf("%s SWIG_GT %s", $1.val, $3.val);
|
||||
$$.val = NewStringf("%s > %s", $1.val, $3.val);
|
||||
$$.type = cparse_cplusplus ? T_BOOL : T_INT;
|
||||
}
|
||||
*/
|
||||
| expr GREATERTHANOREQUALTO expr {
|
||||
/* Putting >= in the expression literally causes an infinite
|
||||
* loop somewhere in the type system. Just workaround for now
|
||||
* - SWIG_GE is defined in swiglabels.swg. */
|
||||
$$.val = NewStringf("%s >= %s", $1.val, $3.val);
|
||||
$$.type = cparse_cplusplus ? T_BOOL : T_INT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue