Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4d8d05a
Delete .github/workflows directory
CoolyDucks Jun 23, 2026
81fdcd7
Delete .gitattributes
CoolyDucks Jun 23, 2026
6513eb2
Delete Dockerfile
CoolyDucks Jun 23, 2026
f706740
Delete superstring.lua
CoolyDucks Jun 23, 2026
9ca10ad
Delete lua.mod
CoolyDucks Jun 23, 2026
0e3b7e7
Delete json.lua
CoolyDucks Jun 23, 2026
7dd1c84
Delete greaterror.lua
CoolyDucks Jun 23, 2026
bfffd46
Delete PathFiles.lua
CoolyDucks Jun 23, 2026
90c5463
Update README for CluaJIT library details
CoolyDucks Jun 23, 2026
83d46c2
Update warning message in README
CoolyDucks Jun 23, 2026
290cd48
Add Makefile for cross-platform Lua project
CoolyDucks Jun 23, 2026
becbc94
Add initial module configuration for cluajit
CoolyDucks Jun 23, 2026
bd7b4f6
Add JSON encoding and decoding functions
CoolyDucks Jun 23, 2026
73daac6
Add superstring module for JSON encoding/decoding
CoolyDucks Jun 23, 2026
09e34c3
Add initial implementation of cluajit.c
CoolyDucks Jun 23, 2026
95c56ab
Implement JSON encoding and decoding functions
CoolyDucks Jun 23, 2026
a61f6de
Rename cluajit.c to cluajit.h
CoolyDucks Jun 23, 2026
de41cee
Joke class
CoolyDucks Jun 23, 2026
6d2ec8e
Update cluajit.h
CoolyDucks Jun 23, 2026
cb2cc23
Refactor json.c for improved readability and structure
CoolyDucks Jun 23, 2026
7a20195
Revise README for CluaJIT project updates
CoolyDucks Jun 27, 2026
001fa11
Delete cluajit.h
CoolyDucks Jun 30, 2026
0caf594
Delete PathFiles.c
CoolyDucks Jun 30, 2026
aa991d4
Delete superstring.c
CoolyDucks Jun 30, 2026
f6ef3f9
Delete json.c
CoolyDucks Jun 30, 2026
63a095b
Add JSON library implementation for Lua
CoolyDucks Jun 30, 2026
06f944a
Optimize CFLAGS and simplify Makefile targets
CoolyDucks Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/docker-publish.yml

This file was deleted.

12 changes: 0 additions & 12 deletions Dockerfile

This file was deleted.

65 changes: 65 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
CC ?= gcc
CFLAGS ?= -O3 -std=c99 -Wall -Wextra -fPIC
TARGET = json

UNAME := $(shell uname -s 2>/dev/null || echo Windows)
ARCH := $(shell uname -m 2>/dev/null || echo unknown)

ifeq ($(UNAME),Linux)
ifeq ($(ARCH),aarch64)
PLATFORM = android
else
PLATFORM = linux
endif
else ifeq ($(UNAME),Darwin)
PLATFORM = macos
else
PLATFORM = windows
endif

ifeq ($(PLATFORM),linux)
EXT = .so
LDFLAGS = -shared -fPIC
LUA_INC ?= $(shell pkg-config --cflags lua 2>/dev/null || echo -I/usr/include/lua5.4)
LUA_LIB ?= $(shell pkg-config --libs lua 2>/dev/null || echo -llua5.4)
endif
ifeq ($(PLATFORM),android)
EXT = .so
LDFLAGS = -shared -fPIC
LUA_INC ?= -I$(PREFIX)/include
LUA_LIB ?= -llua
endif
ifeq ($(PLATFORM),macos)
EXT = .dylib
LDFLAGS = -dynamiclib -undefined dynamic_lookup
LUA_INC ?= $(shell pkg-config --cflags lua 2>/dev/null || echo -I/usr/local/include/lua5.4)
LUA_LIB ?=
endif
ifeq ($(PLATFORM),windows)
EXT = .dll
LDFLAGS = -shared
LUA_INC ?= -IC:/lua/include
LUA_LIB ?= -LC:/lua -llua54
endif

OUT = $(TARGET)$(EXT)

.PHONY: all linux android macos windows clean info

all: $(OUT)
linux: ; $(MAKE) PLATFORM=linux
android: ; $(MAKE) PLATFORM=android
macos: ; $(MAKE) PLATFORM=macos
windows: ; $(MAKE) PLATFORM=windows CC=x86_64-w64-mingw32-gcc

$(OUT): json.c
$(CC) $(CFLAGS) $(LUA_INC) $(LDFLAGS) -o $@ $< $(LUA_LIB) -lm

clean:
rm -f $(TARGET).so $(TARGET).dylib $(TARGET).dll *.o

info:
@echo "Platform : $(PLATFORM)"
@echo "Arch : $(ARCH)"
@echo "Output : $(OUT)"
@echo "CC : $(CC)"
195 changes: 0 additions & 195 deletions PathFiles.lua

This file was deleted.

Loading