Removed spurious junk so the file compiles
strdup removed - not ANSI and not on my system git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1924a31659
commit
b4a002dad0
1 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "swigmod.h"
|
||||
char cvsroot_allegrocl_cxx[] = "$Header$";
|
||||
|
||||
;; $Id$
|
||||
#include "swigmod.h"
|
||||
|
||||
class ALLEGROCL : public Language {
|
||||
public:
|
||||
|
|
@ -179,7 +179,8 @@ void ALLEGROCL :: main(int argc, char *argv[]) {
|
|||
identifier_converter="identifier-convert-null";
|
||||
} else {
|
||||
/* Must be user defined */
|
||||
identifier_converter=strdup(conv);
|
||||
identifier_converter = (char *)malloc(strlen(conv)+1);
|
||||
strcpy(identifier_converter, conv);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue