diff options
author | Haoyu Bai <divinekid@gmail.com> | 2009-02-07 19:05:19 +0000 |
---|---|---|
committer | Haoyu Bai <divinekid@gmail.com> | 2009-02-07 19:05:19 +0000 |
commit | f4c0b99c4a455e27675dfa92b9e355962b59d5aa (patch) | |
tree | ff0a192cf4dd427beb555d0bcd0673d7f3013c91 | |
parent | a4f0656fd1a88045186272f366c74d623d6c94ea (diff) | |
download | swig-f4c0b99c4a455e27675dfa92b9e355962b59d5aa.tar.gz |
Remove more C++ style comment, so code could be compiled under C compiler when it merged back to trunk.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/swig-2.0@11114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Source/Swig/error.c | 2 | ||||
-rw-r--r-- | Source/Swig/naming.c | 2 | ||||
-rw-r--r-- | Source/Swig/typeobj.c | 6 |
3 files changed, 2 insertions, 8 deletions
diff --git a/Source/Swig/error.c b/Source/Swig/error.c index f9bbd1ae5..3015e69d6 100644 --- a/Source/Swig/error.c +++ b/Source/Swig/error.c @@ -187,7 +187,7 @@ void Swig_warnfilter(const_String_or_char_ptr wlist, int add) { ++cw; } c = Char(s); - //TODO(bhy) fix later + /* TODO(bhy) fix later */ c = strtok((char*)c, ", "); while (c) { if (isdigit((int) *c) || (*c == '+') || (*c == '-')) { diff --git a/Source/Swig/naming.c b/Source/Swig/naming.c index 044bbd524..81adf8452 100644 --- a/Source/Swig/naming.c +++ b/Source/Swig/naming.c @@ -44,7 +44,7 @@ static int name_mangle(String *r) { int special; special = 0; Replaceall(r, "::", "_"); - //TODO(bhy) fix later + /* TODO(bhy) fix later */ c = (char*) Char(r); while (*c) { if (!isalnum((int) *c) && (*c != '_')) { diff --git a/Source/Swig/typeobj.c b/Source/Swig/typeobj.c index 230c91825..0fc3e4b1e 100644 --- a/Source/Swig/typeobj.c +++ b/Source/Swig/typeobj.c @@ -691,11 +691,8 @@ void SwigType_array_setdim(SwigType *t, int n, const_String_or_char_ptr rep) { n--; } if (n == 0) { - //temp = *c; - //*c = 0; result = NewStringWithSize(start, c-start); Printf(result, "a(%s)", rep); - //*c = temp; c = strchr(c, '.'); Append(result, c); } @@ -1048,10 +1045,7 @@ String *SwigType_prefix(const SwigType *t) { } if (*d == '.') { - //char t = *(d + 1); - //*(d + 1) = 0; r = NewStringWithSize(c, d+1-c); - //*(d + 1) = t; return r; } } |