shithub: libmujs

Download patch

ref: 8f7c64998581b5ee3889e6d847fdb1164fdf4d5c
parent: 3094ffc94b9fb6d1335424f9f0497b278d832f38
author: Tor Andersson <[email protected]>
date: Wed Jun 11 08:58:14 EDT 2014

Move ToPrimitive hint flags into jsvalue.h

--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@
 ifeq "$(build)" "debug"
 CFLAGS += -g
 else
-CFLAGS += -O3
+CFLAGS += -O2
 endif
 
 default: build build/mujs build/mujsone
--- a/jsvalue.h
+++ b/jsvalue.h
@@ -4,6 +4,13 @@
 typedef struct js_Property js_Property;
 typedef struct js_Iterator js_Iterator;
 
+/* Hint to ToPrimitive() */
+enum {
+	JS_HNONE,
+	JS_HNUMBER,
+	JS_HSTRING
+};
+
 enum js_Type {
 	JS_TUNDEFINED,
 	JS_TNULL,
--- a/mujs.h
+++ b/mujs.h
@@ -50,13 +50,6 @@
 	JS_REGEXP_M = 4,
 };
 
-/* Hint to ToPrimitive() */
-enum {
-	JS_HNONE,
-	JS_HNUMBER,
-	JS_HSTRING
-};
-
 /* Property attribute flags */
 enum {
 	JS_READONLY = 1,