Bill Currie
2d068c0745
massive windows.h and WIN32 cleanup.
2001-10-16 21:40:45 +00:00
Bill Currie
b1f4a778f9
the rcsid commit from hell }:>
2001-09-28 06:26:31 +00:00
Bill Currie
49a85718f8
total nukage of Con_*Printf calls from libs (except for video). Sys_*Printf
...
(Sys_DPrintf is new) is now used exclusively for all lib printing. Con_Init
sets the sys printf recirection to Con_Print (which has been revamped
appropriatly) and the server sets it to SV_Print (which was SV_Printf and
the new SV_Printf calls /it/). This should fix the rcon print redirection
issues.
2001-09-21 04:22:46 +00:00
Adam Olsen
9ab9764b7a
- Change QA_alloc to use variable-arguments, allowing for a much more
...
extensible interface.
2001-09-05 18:23:38 +00:00
Adam Olsen
f1a016c8a5
- Refine the Cache_Get callback, to use a void * instead of a char *
...
- Switch alias models over to Cache_Get/Cache_Release
2001-08-31 12:22:45 +00:00
Adam Olsen
6cab8cf4e0
- change Cache_Get calls to Cache_TryGet (which I just added), so they
...
can tollerate failure.
- minor error message tweak (an emptry string is not NULL!)
2001-08-31 03:48:26 +00:00
Adam Olsen
e149094bd2
- rename Qalloc and friends to QA_alloc
...
- add a QA_strdup
- add Cache_{Add,Remove,Get,Release}, for the locking version of the
cache
- Convert libs/audio/* over to locking cache functions
2001-08-30 11:37:50 +00:00
Adam Olsen
5aceb0435e
- add a cache_print command
...
- rename flush to cache_flush
- split off freeing of cache into a seperate function, as well as
making it aware of read locks.
2001-08-29 15:29:17 +00:00
Adam Olsen
4deed9245a
- Add CACHE_WRITE_{,UN}LOCK macros, and calls to them in Cache_*. No
...
effect until other things are done.
- Make Qalloc treat no callback as a failed callback
- Add a Qstrdup
- Fix a memory leak in cl_slists.c
2001-08-29 09:14:18 +00:00
Adam Olsen
f423b8a8e0
Preliminary Qalloc implimentation. Not yet used.
2001-08-29 04:52:03 +00:00
Bill Currie
aa3442f8b0
rearange the % calc to avoid float (and an ICE in gcc 3)
2001-08-29 01:20:30 +00:00
Ragnvald Maartmann-Moe IV
dbae10f979
whitespace. grr.
2001-08-28 23:58:22 +00:00
Adam Olsen
ff0cffde48
- my proof-of-concept mmapped cache code, currently disabled via ifdef
...
- also added a cache_profile command, which sorts allocations into
power-of-2 sizes, then prints out how many are of that size, the
average amount they use, and the percent of total memory is used.
Also prints out totally allocated size, number of allocations, and
average per allocation.
2001-08-28 23:26:58 +00:00
Bill Currie
ff2b08b2fd
make the Z_Malloc zone checking depend on developer
2001-08-28 06:15:58 +00:00
Bill Currie
13ecebd6a0
make Z_Malloc and friends more useful by allowing multiple zones
2001-08-28 05:21:30 +00:00
Bill Currie
2f9fd74a31
zone.c gets its name back
2001-08-28 04:24:40 +00:00
Ragnvald Maartmann-Moe IV
edcf092b05
Whitespace, dammit. Oh, and removal of several orphaned comments. Comments in front of functions suck.
2001-08-22 22:03:16 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00
Zephaniah E. Hull
908d265212
Clean up and repair of the run time linking, does NOT work until deek
...
commits his gl_funcs.c.
2001-06-26 02:26:46 +00:00
Adam Olsen
853fbb4242
Change commented out Con_Printf statements in Cache_Move into
...
Con_DPrintf statements, so they can be used in debugging without
recompiling. And no, there's no performance issue.
2001-04-17 08:39:44 +00:00
Bill Currie
f37b007da2
nuke the memset in Hunk_HighAllocName
2001-04-12 23:39:23 +00:00
Bill Currie
f78b973978
move the api headers into include/QF and clean up (most of) the resulting mess.
...
target specific files that I don't build won't compile yet. just put QF/
infront of the offending headers.
Also move ver_check into libqfutils
2001-03-27 20:33:07 +00:00
Ragnvald Maartmann-Moe IV
c6da49206e
More typos, spelling corrections, and case fixes fed to the nearest handy fiend.
2001-02-22 00:15:03 +00:00
Bill Currie
95f6db7775
start merging stuff into libs/util and fix the concequences in nq. nq doesn't
...
build yet though (keys.c, *screen.c and *view.c) due to console fun.
2001-02-21 19:35:06 +00:00