Skip to content

Remove standalone programs lua.c and luac.c (move to lua370-app)#4

Merged
mgrossmann merged 1 commit into
mainfrom
feature/remove-standalone-programs
Mar 10, 2026
Merged

Remove standalone programs lua.c and luac.c (move to lua370-app)#4
mgrossmann merged 1 commit into
mainfrom
feature/remove-standalone-programs

Conversation

@mgrossmann

Copy link
Copy Markdown
Contributor

Closes #3

Changes

  • src/lua.c removed
  • src/luac.c removed

Notes

No build config changes needed. project.toml stays as-is (type library, no link section).

After merge: release v1.0.1 — first version without standalone modules. The new lua370-app project will depend on lua370 >=1.0.1.

LUA and LUAC are standalone programs, not library code. They are being
moved to the new lua370-app project. This makes lua370 a pure library
and eliminates IEW0241 doubly-defined warnings for embedders.

Closes #3
@mgrossmann mgrossmann merged commit d0ec6ce into main Mar 10, 2026
1 check passed
@mgrossmann mgrossmann deleted the feature/remove-standalone-programs branch March 10, 2026 08:45
mgrossmann added a commit that referenced this pull request Jun 30, 2026
lctype.c was never carried in the repo, so the Lua ctype table luai_ctype_
(asm label LUAI0001, declared in lctype.h) was never defined. It went unnoticed
because lua370 has only been built as a library (incomplete archives tolerate
undefined symbols) and never fully linked since the standalone lua.c/luac.c were
removed (#4). The first real consumer doing a full link (httplua) exposed it.

Restore the standard Lua 5.4 lctype.c so the archive is self-contained.

Refs #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove standalone programs lua.c and luac.c (move to lua370-app)

1 participant