From e8dfb4e624394070b89641a491d03a62eb62682b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 26 Jan 2014 17:10:15 +0100 Subject: [PATCH] Rename non-js utility sources to not have the 'js' prefix. --- Makefile | 4 ++-- jslex.c | 2 +- jsstring.c | 2 +- jsvalue.c | 2 +- jsutf.c => utf.c | 4 +--- jsutf.h => utf.h | 0 jsutftype.c => utftype.c | 2 +- 7 files changed, 7 insertions(+), 9 deletions(-) rename jsutf.c => utf.c (99%) rename jsutf.h => utf.h (100%) rename jsutftype.c => utftype.c (99%) diff --git a/Makefile b/Makefile index bc0d01b..85f9837 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -SRCS := $(wildcard js*.c) -HDRS := $(wildcard js*.h) +SRCS := $(wildcard js*.c utf*.c) +HDRS := $(wildcard js*.h utf.h) OBJS := $(SRCS:%.c=build/%.o) CFLAGS = -Wall -g diff --git a/jslex.c b/jslex.c index 0d4f33d..b03296d 100644 --- a/jslex.c +++ b/jslex.c @@ -1,6 +1,6 @@ #include "jsi.h" #include "jslex.h" -#include "jsutf.h" +#include "utf.h" #define nelem(a) (sizeof (a) / sizeof (a)[0]) diff --git a/jsstring.c b/jsstring.c index 5a526ef..0e6456b 100644 --- a/jsstring.c +++ b/jsstring.c @@ -1,7 +1,7 @@ #include "jsi.h" #include "jsvalue.h" #include "jsbuiltin.h" -#include "jsutf.h" +#include "utf.h" static int jsB_new_String(js_State *J, int argc) { diff --git a/jsvalue.c b/jsvalue.c index 1d8d129..02a3405 100644 --- a/jsvalue.c +++ b/jsvalue.c @@ -1,7 +1,7 @@ #include "jsi.h" #include "jscompile.h" #include "jsvalue.h" -#include "jsutf.h" +#include "utf.h" double jsV_numbertointeger(double n) { diff --git a/jsutf.c b/utf.c similarity index 99% rename from jsutf.c rename to utf.c index 462f5f5..6a93a19 100644 --- a/jsutf.c +++ b/utf.c @@ -14,9 +14,7 @@ #include #include -#include "jsutf.h" - -#define uchar jsU_uchar +#include "utf.h" typedef unsigned char uchar; diff --git a/jsutf.h b/utf.h similarity index 100% rename from jsutf.h rename to utf.h diff --git a/jsutftype.c b/utftype.c similarity index 99% rename from jsutftype.c rename to utftype.c index 69b96b5..3def578 100644 --- a/jsutftype.c +++ b/utftype.c @@ -1,4 +1,4 @@ -#include "jsutf.h" +#include "utf.h" #define bsearch jsU_bsearch #define nelem(a) (sizeof (a) / sizeof (a)[0])