Skip to content

Commit 48aed4b

Browse files
committed
Name the library: MuJS!
1 parent 83dd92f commit 48aed4b

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
SRCS := $(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)
33
OBJS := $(SRCS:%.c=build/%.o)
44

55
CC := clang
66
CFLAGS := -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

1010
astnames.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:
2424
build/%.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

3636
build/re: regex.c utf.c utftype.c

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
libjs: An embeddable Javascript interpreter in C.
1+
MuJS: An embeddable Javascript interpreter in C.

jsi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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>

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <stdio.h>
22

3-
#include "js.h"
3+
#include "mujs.h"
44

55
#define PS1 "> "
66

js.h renamed to mujs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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__

0 commit comments

Comments
 (0)