From 1cc7f2cdb12c5286b552909c548b667a08cd1c57 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 30 Dec 2005 09:14:30 +0000 Subject: [PATCH] add built-in macro and flag 'empty' as a built-in name instead of a kw git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8135 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/php4/php4kw.swg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/php4/php4kw.swg b/Lib/php4/php4kw.swg index 55bd111ca..f3582ad48 100644 --- a/Lib/php4/php4kw.swg +++ b/Lib/php4/php4kw.swg @@ -3,6 +3,7 @@ /* Warnings for Php keywords */ #define PHPKW(x) %namewarn("314:" #x " is a php keyword") #x +#define PHPBN(x) %namewarn("321:" `x` " conflicts with a built-in name in php") "::" `x` /* from @@ -83,8 +84,8 @@ PHPKW(while); PHPKW(xor); -// This is conflicting with _std_deque.i!. -PHPKW(empty); +// This is a bad name only if is global, but is ok as member. +PHPBN(empty); #undef PHPKW