Name the library: MuJS!

This commit is contained in:
Tor Andersson
2014-03-19 23:07:33 +01:00
parent 83dd92f085
commit 48aed4bbb6
5 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
SRCS := $(wildcard js*.c utf*.c regex.c)
HDRS := $(wildcard js*.h utf.h regex.h)
HDRS := $(wildcard js*.h mujs.h utf.h regex.h)
OBJS := $(SRCS:%.c=build/%.o)
CC := clang
CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wunreachable-code -Wno-unused-parameter -g
default: build build/js build/jsone build/re
default: build build/mujs build/mujsone
astnames.h: jsparse.h
grep '\(AST\|EXP\|STM\)_' jsparse.h | sed 's/^[ \t]*\(AST_\)\?/"/;s/,.*/",/' | tr A-Z a-z > $@
@@ -24,13 +24,13 @@ build:
build/%.o: %.c $(HDRS)
$(CC) $(CFLAGS) -o $@ -c $<
build/libjs.a: $(OBJS)
build/libmujs.a: $(OBJS)
ar cru $@ $^
build/js: build/main.o build/libjs.a
build/mujs: build/main.o build/libmujs.a
$(CC) -o $@ $^ -lm
build/jsone: build/main.o build/one.o
build/mujsone: build/main.o build/one.o
$(CC) -o $@ $^ -lm
build/re: regex.c utf.c utftype.c
+1 -1
View File
@@ -1 +1 @@
libjs: An embeddable Javascript interpreter in C.
MuJS: An embeddable Javascript interpreter in C.
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef jsi_h
#define jsi_h
#include "js.h"
#include "mujs.h"
#include <stdio.h>
#include <stdlib.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include <stdio.h>
#include "js.h"
#include "mujs.h"
#define PS1 "> "
+2 -2
View File
@@ -1,5 +1,5 @@
#ifndef js_h
#define js_h
#ifndef mujs_h
#define mujs_h
/* noreturn is a GCC extension */
#ifdef __GNUC__