Fix bug #1878285 - unnecessary cast for C struct creation wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
77cd446a53
commit
6f497c2807
2 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
Version 1.3.35 (in progress)
|
Version 1.3.35 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
03/12/2008: wsfulton
|
||||||
|
Fix bug #1878285 - unnecessary cast for C struct creation wrappers.
|
||||||
|
|
||||||
03/12/2008: wsfulton
|
03/12/2008: wsfulton
|
||||||
[Python] Remove debugging info when using shared_ptr support
|
[Python] Remove debugging info when using shared_ptr support
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -465,14 +465,14 @@ static String *Swig_cmethod_call(String_or_char *name, ParmList *parms, String_o
|
||||||
*
|
*
|
||||||
* Creates a string that calls a C constructor function.
|
* Creates a string that calls a C constructor function.
|
||||||
*
|
*
|
||||||
* (name *) calloc(1,sizeof(name));
|
* calloc(1,sizeof(name));
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
String *Swig_cconstructor_call(String_or_char *name) {
|
String *Swig_cconstructor_call(String_or_char *name) {
|
||||||
DOH *func;
|
DOH *func;
|
||||||
|
|
||||||
func = NewStringEmpty();
|
func = NewStringEmpty();
|
||||||
Printf(func, "(%s *) calloc(1, sizeof(%s))", name, name);
|
Printf(func, "calloc(1, sizeof(%s))", name);
|
||||||
return func;
|
return func;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue