]> git.xonotic.org Git - xonotic/darkplaces.git/commit
cvar: Use the generic linked list for cvars. Made virtual cvars actual cvar_t's
authorCloudwalk <cloudwalk009@gmail.com>
Sun, 18 Jul 2021 04:34:11 +0000 (00:34 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Sun, 18 Jul 2021 04:34:11 +0000 (00:34 -0400)
commit4ae5fd3802a78c22f333232889f5a8f674f1d81c
tree2cb60531d076f0edc63892b0049729c2a437eef5
parent3f1a6f4ef01a194e2f48ccc26c9e136c6057e8bb
cvar: Use the generic linked list for cvars. Made virtual cvars actual cvar_t's

* cvar_hash_t is gone
* Virtual cvars now use a linked list around their parent and have a
  pointer to their parent.
* Cvars will now store their own hashindex to make deletions from the
  hashtable easier. Implemented Cvar_Delete where this is leveraged.
  Cvar_FindVarLink is eliminated also. Not needed anymore.
* Implemented Cvar_DeleteVirtual and Cvar_DeleteVirtual_All
  to... delete virtual cvars.
* Eliminated redundancy of Cvar_SetQuick_Internal by merging it with
  Cvar_SetQuick.
* Misc cleanups
cl_cmd.c
cmd.c
cvar.c
cvar.h
prvm_cmds.c
prvm_edict.c