#include <map>
#include <cmath>
#include <cstring>
+// Some platforms may need malloc.h for alloca.
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
#ifdef HAVE_FFI_CALL
#ifdef HAVE_FFI_H
} else {
RawFn = RF->second;
}
-
+
FunctionsLock->release();
GenericValue Result;
// printf should return # chars printed. This is completely incorrect, but
// close enough for now.
- GenericValue GV;
+ GenericValue GV;
GV.IntVal = APInt(32, strlen(FmtStr));
while (1) {
switch (*FmtStr) {
FuncNames["lle_X_scanf"] = lle_X_scanf;
FuncNames["lle_X_fprintf"] = lle_X_fprintf;
}
-