Make sure that all fields of the swig_type_info struct are initialized
to something, to avoid numerous compiler warnings. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b0bb8b7158
commit
4328d45859
1 changed files with 4 additions and 4 deletions
|
|
@ -1660,7 +1660,7 @@ SwigType_emit_type_table(File *f_forward, File *f_table) {
|
||||||
|
|
||||||
cd = SwigType_clientdata_collect(ki.key,0);
|
cd = SwigType_clientdata_collect(ki.key,0);
|
||||||
if (!cd) cd = "0";
|
if (!cd) cd = "0";
|
||||||
Printv(types,"{\"", ki.key, "\", 0, \"", SwigType_str(Getattr(r_ltype,ki.key),0),"\", ", cd, "},", NIL);
|
Printv(types,"{\"", ki.key, "\", 0, \"", SwigType_str(Getattr(r_ltype,ki.key),0),"\", ", cd, ", 0, 0, 0},", NIL);
|
||||||
el = SwigType_equivalent_mangle(ki.key,0,0);
|
el = SwigType_equivalent_mangle(ki.key,0,0);
|
||||||
for (ei = First(el); ei.item; ei = Next(ei)) {
|
for (ei = First(el); ei.item; ei = Next(ei)) {
|
||||||
String *ckey;
|
String *ckey;
|
||||||
|
|
@ -1668,14 +1668,14 @@ SwigType_emit_type_table(File *f_forward, File *f_table) {
|
||||||
ckey = NewStringf("%s+%s", ei.item, ki.key);
|
ckey = NewStringf("%s+%s", ei.item, ki.key);
|
||||||
conv = Getattr(conversions,ckey);
|
conv = Getattr(conversions,ckey);
|
||||||
if (conv) {
|
if (conv) {
|
||||||
Printf(types,"{\"%s\", %s},", ei.item, conv);
|
Printf(types,"{\"%s\", %s, 0, 0, 0, 0, 0},", ei.item, conv);
|
||||||
} else {
|
} else {
|
||||||
Printf(types,"{\"%s\"},", ei.item);
|
Printf(types,"{\"%s\", 0, 0, 0, 0, 0, 0},", ei.item);
|
||||||
}
|
}
|
||||||
Delete(ckey);
|
Delete(ckey);
|
||||||
}
|
}
|
||||||
Delete(el);
|
Delete(el);
|
||||||
Printf(types,"{0}};\n");
|
Printf(types,"{0, 0, 0, 0, 0, 0, 0}};\n");
|
||||||
Printv(table, "_swigt_", ki.key, ", \n", NIL);
|
Printv(table, "_swigt_", ki.key, ", \n", NIL);
|
||||||
ki = Next(ki);
|
ki = Next(ki);
|
||||||
i++;
|
i++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue