fixes some compiler warnings, and add better support

for member variables (in C++/python).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-03-28 14:04:36 +00:00
commit 2e50998bd0
4 changed files with 24 additions and 9 deletions

View file

@ -211,7 +211,7 @@ String *Swig_string_typecode(String *s) {
* A_get_value.
* ----------------------------------------------------------------------------- */
String *Swig_string_mangle(String *s) {
String *Swig_string_mangle(const String *s) {
#if 0
/* old mangling, not suitable for using in macros */
String *t = Copy(s);
@ -241,7 +241,7 @@ String *Swig_string_mangle(String *s) {
Printf(result,"_SS_");
}
space = 0;
Printf(result,"%c",c);
Printf(result,"%c",(int)c);
} else {
if (isspace((int)c)) {
@ -267,8 +267,6 @@ String *Swig_string_mangle(String *s) {
Append(result,"_");
++pc; ++pc;
continue;
} else {
c = 's';
}
break;
case '*':