OSDN Git Service

Major change; Object oriented re-design, re-structure.
authorYoshinobu Date <yoshi@host-77-89.menzies.latrobe.edu.au>
Tue, 14 Jun 2011 19:31:33 +0000 (05:31 +1000)
committerYoshinobu Date <yoshi@host-77-89.menzies.latrobe.edu.au>
Tue, 14 Jun 2011 19:31:33 +0000 (05:31 +1000)
 Committer: Yoshinobu Date
modified:   interpreter.c
modified:   js.c
modified:   js.h
modified:   makefile
modified:   test.js
modified:   xaw.c
modified:   xaw.h

check_bool_type.sh [new file with mode: 0755]
interpreter.h [new file with mode: 0644]

diff --git a/check_bool_type.sh b/check_bool_type.sh
new file mode 100755 (executable)
index 0000000..7a6f321
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+echo "Mac type. If boolean is typedef'd as unsigned char, make it signed."
+cat /System/Library/Frameworks/CoreServices.framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h | grep Boolean | grep typedef
+echo "Xorg type. Confirm theres no conlict anymore."
+cat /usr/include/X11/Intrinsic.h | grep Boolean | grep typedef
+
diff --git a/interpreter.h b/interpreter.h
new file mode 100644 (file)
index 0000000..755b23c
--- /dev/null
@@ -0,0 +1,18 @@
+
+#include <JavascriptCore/JavascriptCore.h>//-framework JavaScriptCoreオプションを使用の事
+#define ARG_ERR_MSG "Wrong argument. Aborting…\n"
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+       extern void functionLoader(JSGlobalContextRef ctx, JSObjectRef jobjGlobal);
+       void classWrapper(JSGlobalContextRef ctx, JSObjectRef jobjGlobal, char* name, JSObjectRef* classObject, JSObjectCallAsConstructorCallback callAsConstructor);
+       void functionWrapper(JSGlobalContextRef ctx, JSObjectRef parentObj, char* name, JSObjectCallAsFunctionCallback jsGlobalFunction);
+
+#ifdef __cplusplus
+}
+#endif