07/25/2006: mutandiz
[allegrocl] more additions to std::string, some tweaks and small bug fixes -nocwrap mode. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
faa3b871fe
commit
f41560641b
4 changed files with 29 additions and 14 deletions
|
|
@ -977,13 +977,7 @@ String * convert_literal(String *literal, String *type, bool try_to_split) {
|
|||
Delete(num); Delete(trimmed);
|
||||
return NewStringf("\"%s\"", num_param);
|
||||
}
|
||||
else if (allegrocl->validIdentifier(num)) {
|
||||
/* convert C/C++ identifiers to CL symbols */
|
||||
res = NewStringf("#.(swig-insert-id \"%s\" %s :type :constant)", num, ns);
|
||||
Delete(num); Delete(trimmed); Delete(ns);
|
||||
return res;
|
||||
}
|
||||
else if (Len(num) >= 1 && isdigit(s[0])) {
|
||||
else if (Len(num) >= 1 && (isdigit(s[0]) || s[0] == '+' || s[0] == '-')) {
|
||||
/* use CL syntax for numbers */
|
||||
String *oldnum = Copy(num);
|
||||
int usuffixes = Replaceall(num, "u", "") + Replaceall(num, "U", "");
|
||||
|
|
@ -1006,6 +1000,12 @@ String * convert_literal(String *literal, String *type, bool try_to_split) {
|
|||
}
|
||||
Delete(oldnum); Delete(trimmed);
|
||||
return res;
|
||||
}
|
||||
else if (allegrocl->validIdentifier(num)) {
|
||||
/* convert C/C++ identifiers to CL symbols */
|
||||
res = NewStringf("#.(swig-insert-id \"%s\" %s :type :constant)", num, ns);
|
||||
Delete(num); Delete(trimmed); Delete(ns);
|
||||
return res;
|
||||
} else {
|
||||
Delete(trimmed);
|
||||
return num;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue