Fixed constant creation bug with pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
384f9a82da
commit
7e5a1db735
1 changed files with 1 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ TCL8::declare_const(char *name, char *, SwigType *type, char *value) {
|
|||
break;
|
||||
|
||||
case T_POINTER: case T_ARRAY: case T_REFERENCE:
|
||||
Printf(f_header,"static %s %s = %s;\n", SwigType_lstr(type,0), var_name, value);
|
||||
Printf(f_header,"static %s = %s;\n", SwigType_lstr(type,var_name), value);
|
||||
Printf(f_header,"static char *%s_char;\n", var_name);
|
||||
if (CPlusPlus)
|
||||
Printf(f_init,"\t %s_char = new char[%d];\n",var_name,(int) Len(SwigType_manglestr(type))+ 20);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue