Correct prefix handling - bug introduced in rev 13886
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7ca0497647
commit
6cd247d653
3 changed files with 3 additions and 5 deletions
|
|
@ -280,7 +280,7 @@ public:
|
||||||
// Make sure `prefix' ends in an underscore
|
// Make sure `prefix' ends in an underscore
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
const char *px = Char(prefix);
|
const char *px = Char(prefix);
|
||||||
if (px[Len(prefix)] != '_')
|
if (px[Len(prefix) - 1] != '_')
|
||||||
Printf(prefix, "_");
|
Printf(prefix, "_");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,10 +101,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a prefix has been specified make sure it ends in a '_' (not actually used!)
|
// If a prefix has been specified make sure it ends in a '_' (not actually used!)
|
||||||
|
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
const char *px = Char(prefix);
|
const char *px = Char(prefix);
|
||||||
if (px[Len(prefix)] != '_')
|
if (px[Len(prefix) - 1] != '_')
|
||||||
Printf(prefix, "_");
|
Printf(prefix, "_");
|
||||||
} else
|
} else
|
||||||
prefix = NewString("swig_");
|
prefix = NewString("swig_");
|
||||||
|
|
|
||||||
|
|
@ -130,10 +130,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a prefix has been specified make sure it ends in a '_' (not actually used!)
|
// If a prefix has been specified make sure it ends in a '_' (not actually used!)
|
||||||
|
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
const char *px = Char(prefix);
|
const char *px = Char(prefix);
|
||||||
if (px[Len(prefix)] != '_')
|
if (px[Len(prefix) - 1] != '_')
|
||||||
Printf(prefix, "_");
|
Printf(prefix, "_");
|
||||||
} else
|
} else
|
||||||
prefix = NewString("swig_");
|
prefix = NewString("swig_");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue