https://gitlab.synchro.net/main/sbbs/-/commit/d77c6d4a938937976840d835
Modified Files:
src/doors/clans-src/data/GNUmakefile strings.txt src/doors/clans-src/docs/todo.txt src/doors/clans-src/src/GNUmakefile defines.h langcomp.c
Removed Files:
src/doors/clans-src/src/mstrings.h
Log Message:
Make strings.txt the single source of truth for language strings.
Previously developers had to manually keep data/strings.txt and
src/mstrings.h in sync. Now:
- langcomp accepts an optional third argument and auto-generates
mstrings.h as a side effect of compiling strings.xl
- strings.txt embeds the ST_MACRONAME token on each line so the
macro names live alongside the strings themselves
- data/GNUmakefile passes the header path to langcomp when building
strings.xl, regenerating mstrings.h automatically
- src/GNUmakefile gains a mstrings.h target that calls native langcomp
directly (NATIVEEXEFILE = .$(os).$(mach).$(FLAVOUR)), avoiding the
recursive-make cycle that arose when delegating to data/GNUmakefile
- ERRORBASE moved from mstrings.h to defines.h since it is a compile-
time constant, not a generated string offset
- Two previously missing strings (ST_T2MENUSTAT3 id=163,
ST_FMENUNOAFFORD id=435) added to strings.txt; these were silent
bugs outputting empty strings
- docs/todo.txt reformatted to developer doc standard and a cleanup
note added for the mstrings.h GNUmakefile dependencies
Co-Authored-By: Claude Sonnet 4.6 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net