quakeforge/tools
Bill Currie 12c84046f3 [cvar] Make cvars properly typed
This is an extremely extensive patch as it hits every cvar, and every
usage of the cvars. Cvars no longer store the value they control,
instead, they use a cexpr value object to reference the value and
specify the value's type (currently, a null type is used for strings).
Non-string cvars are passed through cexpr, allowing expressions in the
cvars' settings. Also, cvars have returned to an enhanced version of the
original (id quake) registration scheme.

As a minor benefit, relevant code having direct access to the
cvar-controlled variables is probably a slight optimization as it
removed a pointer dereference, and the variables can be located for data
locality.

The static cvar descriptors are made private as an additional safety
layer, though there's nothing stopping external modification via
Cvar_FindVar (which is needed for adding listeners).

While not used yet (partly due to working out the design), cvars can
have a validation function.

Registering a cvar allows a primary listener (and its data) to be
specified: it will always be called first when the cvar is modified. The
combination of proper listeners and direct access to the controlled
variable greatly simplifies the more complex cvar interactions as much
less null checking is required, and there's no need for one cvar's
callback to call another's.

nq-x11 is known to work at least well enough for the demos. More testing
will come.
2022-04-24 19:15:22 +09:00
..
3dfx_stub Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
bsp2img [image] Make WritePNG take settings from tex_t 2022-04-01 01:01:53 +09:00
build_scripts Strip the executables. 2013-01-23 22:09:54 +09:00
carne Get QF cross-compiling using MXE/mingw32 2021-03-27 20:09:37 +09:00
cross [vulkan] Pick up vulkan.h from correct location 2021-11-19 22:36:19 +09:00
cvs2cl audit the usage of "only" 2010-01-13 06:42:26 +00:00
Forge Handle quest format brushes. 2012-09-12 08:24:17 +09:00
gas2masm Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
gl_stub [glstub] Add functions needed to get glsl working 2021-07-22 10:12:41 +09:00
io_mesh_qfmdl [qfmdl] Speed up vertex import slightly 2022-03-14 11:11:18 +09:00
io_qfmap [qfmap] Update script.py from io_object_mu 2020-07-17 20:11:44 +09:00
misc [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
pak [build] Fix selective build of tools 2021-03-26 16:11:29 +09:00
qfbsp [qfbsp] Print the number of textures in the bsp 2021-12-17 08:28:02 +09:00
qfcc [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
qflight Fix a bunch of float vs int bugs 2022-03-31 00:28:26 +09:00
qflmp [build] Fix selective build of tools 2021-03-26 16:11:29 +09:00
qfmodelgen [build] Fix selective build of tools 2021-03-26 16:11:29 +09:00
qfspritegen Get QF cross-compiling using MXE/mingw32 2021-03-27 20:09:37 +09:00
qfvis [qfvis] Fix a vector type error 2022-03-31 01:17:47 +09:00
quaketoascii Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
texpaint Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
wad [build] Fix selective build of tools 2021-03-26 16:11:29 +09:00
wav [build] Fix selective build of tools 2021-03-26 16:11:29 +09:00
Makemodule.am [build] Move to non-recursive make 2020-06-25 11:35:37 +09:00