add NewStringEmpty, use more StringEuqual and less Strcmp

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-11-28 17:32:56 +00:00
commit 628dc6b32b
24 changed files with 253 additions and 218 deletions

View file

@ -71,7 +71,7 @@ Swig_warning(int wnum, const String_or_char *filename, int line, const char *fmt
va_start(ap,fmt);
out = NewString("");
out = NewStringEmpty();
vPrintf(out,fmt,ap);
{
char temp[64], *t;
@ -175,7 +175,7 @@ Swig_warnfilter(const String_or_char *wlist, int add) {
char *c;
String *s;
if (!filter) filter = NewString("");
if (!filter) filter = NewStringEmpty();
s = NewString(wlist);
c = Char(s);
c = strtok(c,", ");