Move ToPrimitive hint flags into jsvalue.h

This commit is contained in:
Tor Andersson
2014-06-11 12:58:40 +02:00
parent 3094ffc94b
commit 8f7c649985
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-c
ifeq "$(build)" "debug"
CFLAGS += -g
else
CFLAGS += -O3
CFLAGS += -O2
endif
default: build build/mujs build/mujsone
+7
View File
@@ -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,
-7
View File
@@ -50,13 +50,6 @@ enum {
JS_REGEXP_M = 4,
};
/* Hint to ToPrimitive() */
enum {
JS_HNONE,
JS_HNUMBER,
JS_HSTRING
};
/* Property attribute flags */
enum {
JS_READONLY = 1,