File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11SRCS := $(wildcard js* .c utf* .c regex.c)
2- HDRS := $(wildcard js* .h utf.h regex.h)
2+ HDRS := $(wildcard js* .h mujs.h utf.h regex.h)
33OBJS := $(SRCS:%.c=build/%.o )
44
55CC := clang
66CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wunreachable-code -Wno-unused-parameter -g
77
8- default : build build/js build/jsone build/re
8+ default : build build/mujs build/mujsone
99
1010astnames.h : jsparse.h
1111 grep ' \(AST\|EXP\|STM\)_' jsparse.h | sed ' s/^[ \t]*\(AST_\)\?/"/;s/,.*/",/' | tr A-Z a-z > $@
@@ -24,13 +24,13 @@ build:
2424build/% .o : % .c $(HDRS )
2525 $(CC ) $(CFLAGS ) -o $@ -c $<
2626
27- build/libjs .a : $(OBJS )
27+ build/libmujs .a : $(OBJS )
2828 ar cru $@ $^
2929
30- build/js : build/main.o build/libjs .a
30+ build/mujs : build/main.o build/libmujs .a
3131 $(CC ) -o $@ $^ -lm
3232
33- build/jsone : build/main.o build/one.o
33+ build/mujsone : build/main.o build/one.o
3434 $(CC ) -o $@ $^ -lm
3535
3636build/re : regex.c utf.c utftype.c
Original file line number Diff line number Diff line change 1- libjs : An embeddable Javascript interpreter in C.
1+ MuJS : An embeddable Javascript interpreter in C.
Original file line number Diff line number Diff line change 11#ifndef jsi_h
22#define jsi_h
33
4- #include "js .h"
4+ #include "mujs .h"
55
66#include <stdio.h>
77#include <stdlib.h>
Original file line number Diff line number Diff line change 11#include <stdio.h>
22
3- #include "js .h"
3+ #include "mujs .h"
44
55#define PS1 "> "
66
Original file line number Diff line number Diff line change 1- #ifndef js_h
2- #define js_h
1+ #ifndef mujs_h
2+ #define mujs_h
33
44/* noreturn is a GCC extension */
55#ifdef __GNUC__
You can’t perform that action at this time.
0 commit comments