perror("Couldn't create funge space!?");
exit(EXIT_FAILURE);
}
+#if (CFUNGE_API_VERSION < 2)
fungespace_load_string(ick_iffi_befungeString);
+#else
+ fungespace_load_string(ick_iffi_befungeString, strlen((const char*)ick_iffi_befungeString));
+#endif
iffiIP = ip_create();
if (iffiIP == NULL) {
perror("Couldn't create instruction pointer!?");
#include "../../global.h"
#include "../manager.h"
-#if !defined(CFUNGE_API_VERSION) || (CFUNGE_API_VERSION != 1)
+#if !defined(CFUNGE_API_VERSION) || (CFUNGE_API_VERSION > 2)
# error "This version of IFFI isn't compatible with this cfunge version."
#endif
CFLAGS="$CFLAGS $CFUNGE_CFLAGS"
fi
# Please enable this when making changes. Requested by the cfunge author.
-#CFLAGS="$CFLAGS -Wall -Wextra -pedantic -Wpointer-arith -Wimplicit -Wnested-externs -Wcast-align -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wshadow -Wundef -Wpacked -Wfloat-equal -Wstrict-aliasing=2 -Wformat=2 -Wdisabled-optimization -Wmissing-noreturn -Wmissing-format-attribute -Wdeclaration-after-statement -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wwrite-strings"
+#CFLAGS="$CFLAGS -Wall -Wextra -pedantic -Wpointer-arith -Wimplicit -Wnested-externs -Wcast-align -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wparentheses -Wshadow -Wundef -Wpacked -Wfloat-equal -Wstrict-aliasing=2 -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wdeclaration-after-statement -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wwrite-strings"
echo " " Duplicating cfunge source tree so that it can be modified...
cp -r $CFUNGE_PATH/src $CFUNGE_PATH/lib $CFUNGE_PATH/tools .