Skip to content

Commit 70335ea

Browse files
authored
Merge branch 'actboy168:master' into luajit-jit-support
2 parents a64950e + 2bae990 commit 70335ea

File tree

165 files changed

+2930
-2609
lines changed

Some content is hidden

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

165 files changed

+2930
-2609
lines changed

.clang-format

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ IndentPPDirectives: AfterHash
1313
IndentWidth: 4
1414
NamespaceIndentation: All
1515
PackConstructorInitializers: Never
16+
QualifierAlignment: Left
1617
SpaceBeforeCpp11BracedList: true
17-
18-
BreakBeforeBraces: Custom
19-
BraceWrapping:
20-
BeforeElse: true

.github/workflows/build.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,25 @@ jobs:
1515
include:
1616
- os: windows-latest
1717
platform: win32-x64
18-
- os: ubuntu-20.04
18+
- os: ubuntu-22.04
1919
platform: linux-x64
20-
- os: ubuntu-20.04
20+
- os: ubuntu-22.04-arm
2121
platform: linux-arm64
2222
- os: macos-latest
2323
platform: darwin-x64
2424
- os: macos-latest
2525
platform: darwin-arm64
2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
submodules : recursive
3030
- uses: actboy168/setup-luamake@master
31-
- if: matrix.platform == 'linux-arm64'
32-
run: |
33-
sudo apt-get update
34-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
3531
- run: luamake lua compile/download_deps.lua
3632
- run: luamake -mode release -platform ${{ matrix.platform }}
37-
- run: npm install -g vsce ovsx
33+
- run: npm install -g @vscode/vsce ovsx
3834
- run: npx vsce publish --target ${{ matrix.platform }} -p ${{ secrets.VSCE_KEY }}
3935
working-directory: publish
4036
continue-on-error: true
4137
- run: npx ovsx publish --target ${{ matrix.platform }} -p ${{ secrets.OVSX_KEY }}
4238
working-directory: publish
4339
continue-on-error: true
44-
- if: matrix.platform == 'win32-x64'
45-
run: npx vsce publish --target win32-ia32 -p ${{ secrets.VSCE_KEY }}
46-
working-directory: publish
47-
continue-on-error: true
48-
- if: matrix.platform == 'win32-x64'
49-
run: npx ovsx publish --target win32-ia32 -p ${{ secrets.OVSX_KEY }}
50-
working-directory: publish
51-
continue-on-error: true

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"recommendations": [
33
"actboy168.tasks",
4-
"actboy168.extension-path",
54
"actboy168.lua-debug"
65
]
76
}

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"console": "integratedTerminal",
99
"luaVersion": "lua-latest",
1010
"windows": {
11-
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.4-win32-x64/bin/lua-debug"
11+
"luaexe": "${extensionInstallFolder:actboy168.lua-debug}/bin/lua-debug.exe"
1212
},
1313
"linux": {
14-
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.4-linux-x64/bin/lua-debug",
14+
"luaexe": "${extensionInstallFolder:actboy168.lua-debug}/bin/lua-debug",
1515
},
1616
"osx": {
17-
"luaexe": "${command:extensionPath}actboy168.lua-debug-2.0.4-darwin-arm64/bin/lua-debug",
17+
"luaexe": "${extensionInstallFolder:actboy168.lua-debug}/bin/lua-debug",
1818
},
1919
"outputCapture": [
2020
],
@@ -34,7 +34,7 @@
3434
"--extensionDevelopmentPath=${workspaceFolder}/extension/"
3535
],
3636
"env": {
37-
"VSCODE_EXTENSION_PATH" : "${command:extensionPath}actboy168.lua-debug-2.0.4"
37+
"VSCODE_EXTENSION_PATH" : "${extensionInstallFolder:actboy168.lua-debug}"
3838
}
3939
}
4040
]

.vscode/settings.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
{
2-
"[c]": {
3-
"editor.formatOnSave": true,
4-
},
5-
"[cpp]": {
6-
"editor.formatOnSave": true,
7-
},
82
"C_Cpp.autoAddFileAssociations": false,
93
}

.vscode/tasks.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"lua",
3333
"compile/copy.lua",
3434
"extension",
35-
"extension",
36-
"${command:extensionPath}"
35+
"${extensionInstallFolder:actboy168.lua-debug}"
3736
]
3837
},
3938
{
@@ -43,8 +42,7 @@
4342
"lua",
4443
"compile/copy.lua",
4544
"publish",
46-
"publish",
47-
"${command:extensionPath}"
45+
"${extensionInstallFolder:actboy168.lua-debug}"
4846
]
4947
}
5048
]

3rd/bee.lua

Submodule bee.lua updated 294 files

3rd/lua/lua-latest/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CMCFLAGS=
3030

3131
# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
3232

33-
PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
33+
PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx mingw posix solaris
3434

3535
LUA_A= liblua.a
3636
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
@@ -79,7 +79,7 @@ echo:
7979
@echo "PLAT= $(PLAT)"
8080
@echo "CC= $(CC)"
8181
@echo "CFLAGS= $(CFLAGS)"
82-
@echo "LDFLAGS= $(SYSLDFLAGS)"
82+
@echo "LDFLAGS= $(LDFLAGS)"
8383
@echo "LIBS= $(LIBS)"
8484
@echo "AR= $(AR)"
8585
@echo "RANLIB= $(RANLIB)"
@@ -117,6 +117,9 @@ FreeBSD NetBSD OpenBSD freebsd:
117117

118118
generic: $(ALL)
119119

120+
ios:
121+
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_IOS"
122+
120123
Linux linux: linux-noreadline
121124

122125
linux-noreadline:

3rd/lua/lua-latest/lapi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
417417
o = index2value(L, idx); /* previous call may reallocate the stack */
418418
}
419419
if (len != NULL)
420-
*len = vslen(o);
420+
*len = tsslen(tsvalue(o));
421421
lua_unlock(L);
422-
return svalue(o);
422+
return getstr(tsvalue(o));
423423
}
424424

425425

@@ -1343,7 +1343,7 @@ void lua_warning (lua_State *L, const char *msg, int tocont) {
13431343
LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) {
13441344
Udata *u;
13451345
lua_lock(L);
1346-
api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value");
1346+
api_check(L, 0 <= nuvalue && nuvalue < SHRT_MAX, "invalid value");
13471347
u = luaS_newudata(L, size, nuvalue);
13481348
setuvalue(L, s2v(L->top.p), u);
13491349
api_incr_top(L);

0 commit comments

Comments
 (0)