From 8f7c64998581b5ee3889e6d847fdb1164fdf4d5c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Jun 2014 12:58:14 +0200 Subject: [PATCH] Move ToPrimitive hint flags into jsvalue.h --- Makefile | 2 +- jsvalue.h | 7 +++++++ mujs.h | 7 ------- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 7ddb58e..fd72e01 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/jsvalue.h b/jsvalue.h index c6dbe15..3add4fe 100644 --- 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, diff --git a/mujs.h b/mujs.h index 6e63dbc..ad11894 100644 --- a/mujs.h +++ b/mujs.h @@ -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,