Commit e735e99a

e735e99a1233Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

chore: drop the --lonig option from the spinel command

The --lonig option appended -lonig to link oniguruma, dating from when Spinel's regexp support was a thin wrapper over oniguruma. The in-tree regexp engine (lib/regexp/re_compile.c, re_exec.c, re_utf8.c) is now bundled into lib/libspinel_rt.a — already linked by the script at line 131 — and there are no other consumers of -lonig in the build.

The only file in the tree that still includes <oniguruma.h> is lib/strscan.c (StringScanner support), but it isn't wired into the codegen and isn't referenced from any test, benchmark, or generated output. Leaving the file in place; just removing the dead CLI option.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
e735e99a1233
Parent
f411b843fab0

spinelmodifiedView file

@@ -14,7 +14,6 @@
1414 # -S Print generated C to stdout
1515 # -O LEVEL Optimization level for cc (default: 2)
1616 # --cc=CMD C compiler command (default: cc)
17-# --lonig Link with oniguruma (for regexp programs)
1817
1918 DIR="$(cd "$(dirname "$(readlink -f "$0" 2>/dev/null || realpath "$0" 2>/dev/null || echo "$0")")" && pwd)"
2019 PARSE_BIN="$DIR/spinel_parse"
@@ -48,7 +47,6 @@
4847 -O) shift; OPT_LEVEL="$1" ;;
4948 -c) C_ONLY=1 ;;
5049 -S) STDOUT_MODE=1 ;;
51- --lonig) EXTRA_FLAGS="$EXTRA_FLAGS -lonig" ;;
5250 *.rb) [ -z "$SOURCE" ] && SOURCE="$1" ;;
5351 esac
5452 shift
@@ -68,7 +66,6 @@
6866 echo " -S Print C to stdout" >&2
6967 echo " -O LEVEL Optimization level (default: 2)" >&2
7068 echo " --cc=CMD C compiler (default: cc)" >&2
71- echo " --lonig Link with oniguruma (regexp)" >&2
7269 exit 1
7370 fi
7471