Skip to content

Commit 215133b

Browse files
committed
Cleanup
1 parent 8b65d87 commit 215133b

File tree

131 files changed

+9
-121728
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+9
-121728
lines changed

src/Makevars

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
PKG_CPPFLAGS = -DNDEBUG -I"../inst/include/" -I"../inst/include/quickjs" -D_GNU_SOURCE
2-
#PKG_LIBS = ../inst/lib/$(R_ARCH)/libquickjs.a
1+
PKG_CPPFLAGS = -I"../inst/include/" -I"../inst/include/quickjs" -D_GNU_SOURCE
2+
PKG_LIBS = ../inst/lib/$(R_ARCH)/libquickjs.a
33

44
ifeq ($(OS),Windows_NT)
55
DLL := .dll
@@ -33,19 +33,19 @@ else
3333
endif
3434

3535
CPP_SOURCES = quickjsr.cpp init.cpp
36-
C_SOURCES = mask.c quickjs_copy/cutils.c quickjs_copy/libbf.c quickjs_copy/libregexp.c quickjs_copy/libunicode.c quickjs_copy/quickjs.c quickjs_copy/quickjs-libc.c
37-
SOURCES = $(CPP_SOURCES) $(C_SOURCES)
38-
OBJECTS = $(CPP_SOURCES:.cpp=.o) $(C_SOURCES:.c=.o)
36+
#C_SOURCES = mask.c quickjs_copy/cutils.c quickjs_copy/libbf.c quickjs_copy/libregexp.c quickjs_copy/libunicode.c quickjs_copy/quickjs.c #quickjs_copy/quickjs-libc.c
37+
SOURCES = $(CPP_SOURCES) #$(C_SOURCES)
38+
OBJECTS = $(CPP_SOURCES:.cpp=.o) #$(C_SOURCES:.c=.o)
3939

4040
$(SHLIB): $(OBJECTS)
4141
$(OBJECTS): build-static
4242

4343
build-static:
4444
@mkdir -p ../inst/include/quickjs
4545
@cp $(wildcard quickjs/*.h) ../inst/include/quickjs
46-
# $(R_CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DNDEBUG -funsigned-char -std=gnu11 -c libquickjs.c
47-
# @mkdir -p ../inst/lib/$(R_ARCH)
48-
# $(AR) -rs ../inst/lib/$(R_ARCH)/libquickjs.a libquickjs.o
46+
$(R_CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DNDEBUG -funsigned-char -std=gnu11 -c libquickjs.c
47+
@mkdir -p ../inst/lib/$(R_ARCH)
48+
$(AR) -rs ../inst/lib/$(R_ARCH)/libquickjs.a libquickjs.o
4949

5050
clean:
5151
$(RM) libquickjs.o $(OBJECTS) QuickJSR$(DLL)

src/libquickjs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ void Rf_putchar(int c) {
1717
#define _putchar Rf_putchar
1818
#define exit Rf_exit
1919
#define _exit Rf_exit
20+
#define printf Rprintf
2021

2122
#include "quickjs/cutils.c"
2223
#include "quickjs/libbf.c"

src/mask.c

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/quickjs_copy/.gitattributes

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)