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/SWIG@5904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d5dda10c12
commit
ae8e4a8a6c
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 {
|
class ALLEGROCL : public Language {
|
||||||
public:
|
public:
|
||||||
|
|
@ -179,7 +179,8 @@ void ALLEGROCL :: main(int argc, char *argv[]) {
|
||||||
identifier_converter="identifier-convert-null";
|
identifier_converter="identifier-convert-null";
|
||||||
} else {
|
} else {
|
||||||
/* Must be user defined */
|
/* 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