[LON-CAPA-cvs] cvs: modules /TexConvert/tthperl tthfunc.i tthperl.h
raeburn
raeburn@source.lon-capa.org
Sun, 02 May 2010 17:31:17 -0000
raeburn Sun May 2 17:31:17 2010 EDT
Added files:
/modules/TexConvert/tthperl tthperl.h
Modified files:
/modules/TexConvert/tthperl tthfunc.i
Log:
- Bug 6265
- Eliminate "implicit declaration of function" warnings when running swig
to create wrapper for tth.
- Prevents default to return int by tth function which cause segfault on 64 bit.
Index: modules/TexConvert/tthperl/tthfunc.i
diff -u modules/TexConvert/tthperl/tthfunc.i:1.3 modules/TexConvert/tthperl/tthfunc.i:1.4
--- modules/TexConvert/tthperl/tthfunc.i:1.3 Thu Feb 27 20:31:25 2003
+++ modules/TexConvert/tthperl/tthfunc.i Sun May 2 17:31:17 2010
@@ -1,13 +1,5 @@
%module tth
%{
-
+#include "tthperl.h"
%}
-extern char* tth(char* tex);
-extern char* ttherror();
-extern void tthinit();
-extern int tthoptions(char* args);
-extern char* ttm(char* tex);
-extern char* ttmerror();
-extern void ttminit();
-extern int ttmoptions(char* args);
-extern int tthmessedup();
+%include "tthperl.h"
Index: modules/TexConvert/tthperl/tthperl.h
+++ modules/TexConvert/tthperl/tthperl.h
char* tth(char*);