quakeforge/libs/util
Bill Currie 1a83fe21c1 [util] Add Sys_setjmp and Sys_longjmp
Host_Error and Host_EndGame use setjmp/longjmp to implement an exception
of sorts, but this messes with tracy's state even with cleanup
attributes. However, it turns out that those cleanup attributes are
exactly how gcc implements C++ destructors, and so the standard Unwind
api (part of libgcc) respects them (so long as -fexceptions is enabled
for C). Thus... replace longjmp with an implementation that uses Unwind
to unwind the stack and call the cleanup functions as needed. This is
actually important for more than just tracy as the cleanup attributed
vars can be thread locks.
2023-12-01 12:13:26 +09:00
..
test Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
bsearch.c [util] Fix an out-by-one in QF_bsearch_r 2023-03-05 18:31:30 +09:00
bspfile.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
buildnum.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
cbuf.c [util] Add a function to reverse delete cbuf stacks 2023-03-05 18:31:30 +09:00
cexpr-lex.l [cexpr] Fall back to a linear search if no hash 2023-06-26 11:51:12 +09:00
cexpr-lib.c [cexpr] Add support for casting plitems 2021-12-24 06:45:13 +09:00
cexpr-parse.y [cexpr] Use func instead of result type for end of list 2023-02-14 12:45:04 +09:00
cexpr-type.c [cexpr] Fix bool printing and support int casts 2023-06-30 21:48:22 +09:00
cexpr-vars.c [hash] Rename the publicly visible hashlink_t to hashctx_t 2022-05-12 18:02:01 +09:00
checksum.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
cmd.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
cmem.c Fix some null pointer shenanigans 2022-03-31 00:25:22 +09:00
crc.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
cvar.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
dirent.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
dstring.c [glsl] Be more null-safe for free/destroy functions 2023-03-06 18:21:13 +09:00
fendian.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
fnmatch.c [libs] Fix some c23 build errors for mxe 2023-10-15 18:22:06 +09:00
getopt.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
getopt1.c Massive whitespace cleanup. 2012-05-22 08:23:22 +09:00
hash.c [glsl] Be more null-safe for free/destroy functions 2023-03-06 18:21:13 +09:00
heapsort.c [util] Support custom swap function for heapsort 2022-10-31 10:52:03 +09:00
idparse.c [util] Fix a pile of memory leaks 2023-03-05 18:31:30 +09:00
info.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
link.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
llist.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
Makemodule.am [util] Integrate sys_mem into the build 2023-07-04 14:39:36 +09:00
math.S Add GNU-stack notes to assembly files 2021-06-13 10:12:03 -04:00
mathlib.c [util] Clarify the comment for AngleVectors 2023-08-13 17:33:46 +09:00
mdfour.c [util] Fix a local variable address warning 2023-06-13 18:11:11 +09:00
mersenne.c [util] Add mtwist float random number functions 2021-12-24 06:45:13 +09:00
msg.c [util] Add leb123 signed and unsigned message readers 2023-12-01 02:55:08 +09:00
pakfile.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
plist.c [plist] Put quotes around the unknown field name 2023-06-16 18:47:24 +09:00
plugin.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
qargs.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
qendian.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
qsort_r.c [util] Add strndup and reentrant quicksort 2021-03-27 20:03:39 +09:00
quakefs.c [plist] Use reference counts for items 2023-03-13 11:26:13 +09:00
quakeio.c [util] Fix incorrect check for result of Qgetc 2023-03-25 21:21:13 +09:00
riff.c Fix a bunch of dead increments. 2018-09-09 11:12:04 +09:00
script.c Nuke qboolean from orbit 2023-06-13 18:06:11 +09:00
segtext.c Merge branch 'master' into wip-trails 2023-07-12 21:12:01 +09:00
set.c [set] Check for 0 count correctly 2023-05-27 00:55:22 +09:00
simd.c [simd] Split out the ivec implementations 2022-01-02 16:02:57 +09:00
sizebuf.c [util] Make hunk (optionally) thread-safe 2021-07-29 11:43:27 +09:00
string.c [util] Add strndup and reentrant quicksort 2021-03-27 20:03:39 +09:00
sys.c [util] Add Sys_setjmp and Sys_longjmp 2023-12-01 12:13:26 +09:00
sys_ia32.S Add GNU-stack notes to assembly files 2021-06-13 10:12:03 -04:00
sys_mem.c [util] Integrate sys_mem into the build 2023-07-04 14:39:36 +09:00
va.c [util] Fix a pile of memory leaks 2023-03-05 18:31:30 +09:00
ver_check.c Nuke the rcsid stuff. 2012-04-22 10:56:32 +09:00
wad.c [util] Return null for missing wad lumps 2022-11-10 14:44:08 +09:00
wadfile.c [util] Make hash-tables semi-thread-safe 2020-03-25 15:43:16 +09:00
zone.c Implement clang support 2023-08-11 14:25:01 +09:00