freebsd-src/stand/liblua
Kyle Evans 1631382cf2 loader: provide a features table for binary compatibility advertisement
liblua now provides a loader.has_feature() function to probe the loader
binary for features advertised.  name => desc mappings are provided in
loader.features to get a list of all of the features loader *can*
support.  core.hasFeature is provided as a shim to loader.has_feature
so that individual consumers don't need to think about the logic of the
loader module not providing has_feature; we know that means the feature
isn't enabled.

The first consumer of this will be EARLY_ACPI to advertise that the
loader binary probes for ACPI presence before the interpreter has
started, so that we know whether we can trust the presence of acpi.rsdp
as relatively authoritative.  In general, it's intended to be used to
avoid breaking new scripts on older loaders within reason.

This will be used in lua as `core.hasFeature("EARLY_ACPI")`, while the
C bits of loader will `feature_enable(FEATURE_EARLY_ACPI)`.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D42695
2023-12-08 15:43:19 -06:00
..
float.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
lerrno.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
lerrno.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
locale.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
lpager.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
lstd.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
lstd.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
luaconf.h lua: reduce diffs between luaconf.h copies 2023-01-26 12:38:19 -05:00
luaconf.local.h lua: Update to 5.4.4 2023-02-08 10:33:26 -07:00
lutils.c loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
lutils.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend dirdeps: Add missing dependency files 2023-10-29 17:08:29 -04:00
math.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00