Fixed [ 649022 ] Compilation problems with KAI/KCC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c95025bc43
commit
2763445c81
4 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ class Allocate : public Dispatcher {
|
||||||
if (!dn) {
|
if (!dn) {
|
||||||
Printf(stdout,"node: %x '%s'. base: %x '%s'. member '%s'\n", n, Getattr(n,"name"), base, Getattr(base,"name"), name);
|
Printf(stdout,"node: %x '%s'. base: %x '%s'. member '%s'\n", n, Getattr(n,"name"), base, Getattr(base,"name"), name);
|
||||||
}
|
}
|
||||||
assert(dn); // Assertion of doom
|
assert(dn != 0); // Assertion of doom
|
||||||
while (dn && !implemented) {
|
while (dn && !implemented) {
|
||||||
String *local_decl = Getattr(dn,"decl");
|
String *local_decl = Getattr(dn,"decl");
|
||||||
if (local_decl && !Strcmp(local_decl, base_decl)) {
|
if (local_decl && !Strcmp(local_decl, base_decl)) {
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ void emit_action(Node *n, Wrapper *f) {
|
||||||
action = Getattr(n,"feature:action");
|
action = Getattr(n,"feature:action");
|
||||||
if (!action)
|
if (!action)
|
||||||
action = Getattr(n,"wrap:action");
|
action = Getattr(n,"wrap:action");
|
||||||
assert(action);
|
assert(action != 0);
|
||||||
|
|
||||||
/* Get the return type */
|
/* Get the return type */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1161,7 +1161,7 @@ public:
|
||||||
String *namestr = SwigType_namestr(name); // does template expansion
|
String *namestr = SwigType_namestr(name); // does template expansion
|
||||||
|
|
||||||
klass = RCLASS(classes, Char(namestr));
|
klass = RCLASS(classes, Char(namestr));
|
||||||
assert(klass);
|
assert(klass != 0);
|
||||||
Delete(namestr);
|
Delete(namestr);
|
||||||
String *valid_name = NewString(symname);
|
String *valid_name = NewString(symname);
|
||||||
validate_const_name(Char(valid_name), "class");
|
validate_const_name(Char(valid_name), "class");
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ public:
|
||||||
// Following is a silly hack. It works around the limitation of
|
// Following is a silly hack. It works around the limitation of
|
||||||
// DOH's hash tables that only work with string keys!
|
// DOH's hash tables that only work with string keys!
|
||||||
char address[16];
|
char address[16];
|
||||||
sprintf(address, "%x%c", (unsigned int)obj, list_p ? 'L' : 'O');
|
sprintf(address, "%x%c", obj, list_p ? 'L' : 'O');
|
||||||
DOH *placeholder = Getattr(print_circle_hash, address);
|
DOH *placeholder = Getattr(print_circle_hash, address);
|
||||||
if (placeholder) {
|
if (placeholder) {
|
||||||
Printv(out, placeholder, NIL);
|
Printv(out, placeholder, NIL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue