Commit graph

1140 commits

Author SHA1 Message Date
Bill Currie
9cab099383 more inline stuff 2003-05-07 07:18:36 +00:00
Bill Currie
6fb5acc868 more auto-inline avoidance 2003-05-07 02:45:17 +00:00
Bill Currie
4dcc29a136 bloody gcc deciding #import isn't good enough :P 2003-05-06 21:52:58 +00:00
Bill Currie
b6b5089ccc add a "nosave" flag to defs making it easier to make defs that don't get
saved automaticly
2003-04-25 17:00:22 +00:00
Bill Currie
2a127dd702 allow sorting defs by address 2003-04-23 20:10:51 +00:00
Bill Currie
19980964d7 don't create defs for the components of vector or quaternion defs 2003-04-23 19:50:16 +00:00
Bill Currie
8f4308c86a get .param_size and .debug_file linked in properly 2003-04-23 18:25:09 +00:00
Bill Currie
57254e5d33 fix a double ; 2003-04-23 06:17:36 +00:00
Bill Currie
8b24578547 print the operator for the precedence notice properly 2003-04-23 01:56:44 +00:00
Bill Currie
f7d806e8d5 can now handle > vector sized parameters 2003-04-22 20:11:16 +00:00
Bill Currie
e732cf591d remove all references to OFS_* from the C code. only the macros in progs.h
use them now
2003-04-22 18:20:15 +00:00
Bill Currie
a21054fdfc handle def aliases properly in emit_move_expr 2003-04-22 17:26:49 +00:00
Bill Currie
6a0b74ca10 detect type mismatches in method declarations and definitions 2003-04-22 15:48:39 +00:00
Bill Currie
2f6fc5d80c general revamp so params and the return value use proper defs rather than
hardcoded locations. this will allow use of quaternions in the future.
2003-04-22 15:29:32 +00:00
Bill Currie
47d4fec5ec allow a named def with 0 offset to be printed 2003-04-22 05:39:12 +00:00
Bill Currie
9a40bf2956 get the fix right 2003-04-17 00:25:55 +00:00
Bill Currie
5cb8429f04 bah, cleanup for flex versions :P 2003-04-17 00:14:13 +00:00
Bill Currie
eb099ae0d3 make qf gcc 3.3 clean 2003-04-17 00:01:48 +00:00
Bill Currie
7ca2aae6f0 fixes for latest flex 2003-04-16 19:41:52 +00:00
Brian Koropoff
e707e9bb89 Moved gib_*.h into include/ and moved the necessary declarations and struct
definitions to QF/gib.h to interface with libQFgib.
2003-04-13 22:07:58 +00:00
Bill Currie
105ef11e0e return a version for GL_VERSION 2003-04-13 05:58:22 +00:00
Bill Currie
dccff75f98 don't want to lose this 2003-04-11 23:30:26 +00:00
Brian Koropoff
d8c0f50c11 The ultimate GIB bugfix commit, including reworked semantic processing,
a fix for arguments passed to a GIB function run via rcon, and various
other fixes.
2003-04-11 02:57:11 +00:00
Bill Currie
e5a23c95dc make riff.c portable 2003-04-10 22:52:58 +00:00
Bill Currie
722c55391e read fmt chunks properly 2003-04-10 22:03:55 +00:00
Bill Currie
5e98c762ed riff namespace cleanup (sorta, it's ugly:/) 2003-04-10 21:45:12 +00:00
Bill Currie
8c13014ad9 kill the debug info 2003-04-10 21:33:43 +00:00
Bill Currie
e937fecdc1 move the riff reading code into libQFutil 2003-04-10 16:52:39 +00:00
Bill Currie
7052a6f20b work toward making the riff reader more generally useful by pluggin all the
memory leaks. next step is to get it so the data chunk isn't actually read
but rather its location and size stored.
2003-04-10 05:20:59 +00:00
Bill Currie
a9fb183d19 fix another struct type parsing bug 2003-04-07 22:24:15 +00:00
Bill Currie
b7d7e7e87f allow assignment from void pointer to any pointer type 2003-04-07 21:57:26 +00:00
Bill Currie
55eb6c3ab1 plug a memory leak 2003-04-07 18:30:47 +00:00
Bill Currie
66ff0cfd4d fix some type parsing errors for structs and arrays 2003-04-07 18:17:43 +00:00
Bill Currie
ee821705cc implement nested (and struct) block initializers 2003-04-07 17:44:18 +00:00
Bill Currie
3c58b712d9 don't subdivide hint or skip brushes 2003-04-04 21:48:47 +00:00
Bill Currie
87e73b6e26 portability fixes from freebsd (MrFixit? q@uni.de) 2003-03-31 16:30:23 +00:00
Bill Currie
87a31439e4 don't warn for ! precedence 2003-03-25 17:47:52 +00:00
Bill Currie
0550741fb9 catch ! == bogosity 2003-03-25 17:18:58 +00:00
Bill Currie
81cf1cc99d don't seg on hint and skip brushs. hint and clip brushes are now known to
work (what is a skip brush?)
2003-03-25 16:34:07 +00:00
Bill Currie
eb5f2137b4 don't create temp files when only preprocessing 2003-03-24 17:40:27 +00:00
Bill Currie
fc553cefbc don't seg if there's no texture data 2003-03-22 04:33:52 +00:00
Bill Currie
29ab911ad4 this might come in handy 2003-03-18 19:49:23 +00:00
Bill Currie
48a5ad0d36 my WIP on porting QuakeEd to GNUstep/QuakeForge 2003-03-18 19:48:24 +00:00
Bill Currie
d7a3608943 can now convert v3 models to v6 2003-03-17 19:54:57 +00:00
Bill Currie
067405b461 finally have v3 mdl figured out 2003-03-17 18:41:07 +00:00
Bill Currie
27a02de1cc fix a double fclose 2003-03-17 04:36:06 +00:00
Bill Currie
3a85d98f83 fix an out-by-one error 2003-03-17 00:52:16 +00:00
Bill Currie
dc74519205 no flags for mdl v3, but yes to skin type 2003-03-14 01:00:53 +00:00
Bill Currie
f604a84363 attempting to reverse engineer mdl ver 3 2003-03-14 00:43:33 +00:00
Bill Currie
1e423b9645 make certain classes get referenced when inheriting from them 2003-03-13 19:16:45 +00:00
Bill Currie
5cb79f423c fix missing break 2003-03-13 17:31:01 +00:00
Bill Currie
6a79ee57c4 the correct fix for overzealous linking: preemptively turf unused externs 2003-03-13 03:18:34 +00:00
Bill Currie
bb1b7c481c don't pull in a lib object file due to an /unused/ undefined def. 2003-03-13 01:50:49 +00:00
Bill Currie
71a60717d9 make pr_source_path a ; separated list of dirs and make it controllable in
qfprogs
2003-03-12 22:31:44 +00:00
Bill Currie
15781b2f19 make vector.x work in classes work and don't give an uninitialized warning
for vec.x = 0;
2003-03-12 21:58:24 +00:00
Bill Currie
664e121444 make the output a little more readable 2003-03-12 02:22:06 +00:00
Bill Currie
63edd414d6 use the command line for the file name rather than hardcoding it 2003-03-11 02:55:22 +00:00
Bill Currie
2d796e09f4 ignore dvi files 2003-03-10 21:26:57 +00:00
Bill Currie
627c6f70f5 allow casting between function types 2003-03-10 21:23:05 +00:00
Bill Currie
e3ad60f142 add WildCode's error checking for win32 cpp handling 2003-03-10 21:00:48 +00:00
Bill Currie
6b20862865 disable some debug 2003-03-04 21:13:10 +00:00
Bill Currie
4de6a20856 fix a bug with \\ handling just before the end of a string constant 2003-03-04 17:03:49 +00:00
Bill Currie
1c774bc10c remove some debug code :P 2003-03-03 21:10:29 +00:00
Bill Currie
4c5c711ff5 fix a nasty bug where immediates would get aliased. (eg, 2 and 1073741824). 2003-03-03 21:09:41 +00:00
Bill Currie
90752b33fe make TYPE (void) NAME valid (no args) 2003-02-28 23:36:56 +00:00
Bill Currie
a45223da6c d'oh, forgot about "default" 2003-02-28 05:18:49 +00:00
Bill Currie
ef762e21eb allow initialized globals (since they're constant) to be used in most places
constants are required (switch, initializing globals, enums)
2003-02-28 04:54:07 +00:00
Brian Koropoff
ce80fffe69 Massive bug and memory leak fixing. 2003-02-26 07:44:34 +00:00
Bill Currie
382f13f7ce fix a decl mismatch 2003-02-26 05:01:18 +00:00
Bill Currie
106fb77eb3 need AppKit/NSImage.h now 2003-02-25 20:54:24 +00:00
Bill Currie
05fb5fe08b make syntax errors a little easier to understand 2003-02-25 07:48:12 +00:00
Bill Currie
2ba8e871f3 convert \ to / in paths in windows 2003-02-24 21:51:08 +00:00
Bill Currie
b928f94440 produce a warning if both @self and self are used in the same progs 2003-02-24 20:10:33 +00:00
Bill Currie
5a58c58e7a don't initialize external defs. this broke source line/file tracking for
@extern defs in headers.
2003-02-24 19:13:56 +00:00
Bill Currie
c145fdb20f make the line number dump more useful 2003-02-24 18:51:12 +00:00
Bill Currie
5f75aa024a don't relocate a null function constant 2003-02-24 15:33:57 +00:00
Bill Currie
44285ba5de speed up qfo writing by about 12.5:1 (for large object files, anyway) by
making compression optional (compressed qfo files will still be handled
transparently)
2003-02-23 23:43:43 +00:00
Bill Currie
599ae15490 give the hash functions more unique names 2003-02-22 22:38:55 +00:00
Bill Currie
af44b129d6 don't store pointers to defs in the hash table as the defs can move around
due to realloc. can now link large progs
2003-02-21 22:31:40 +00:00
Bill Currie
132bd4ac8d remove some incorrect comments 2003-02-21 22:30:49 +00:00
Jeff Teunissen
5b79b7512a Updates to the Ruamoko manual, still very much in progress. 2003-02-18 20:08:05 +00:00
Bill Currie
6a687f5e45 rename all the globals in quakefs.[ch] to be QFS_* or qfs_* 2003-02-14 19:46:07 +00:00
Brian Koropoff
3c522a83bc Various cleanups and bugfixes. Added proper line number reporting to
errors.  A few new builtin functions, such as slice::find and thread::list.
2003-02-14 08:06:01 +00:00
Bill Currie
c46b58f4b5 fix an oopsie 2003-02-05 05:16:51 +00:00
Bill Currie
c5f7138db8 emit clipnodes in the correct order 2003-02-05 05:06:14 +00:00
Bill Currie
7073afc0a4 port in OQ's detail, hint and skip brush/texture enhancements 2003-02-04 23:26:26 +00:00
Bill Currie
2dd8a6c39d grok quest's "map2" format (as well as the original) 2003-02-04 18:19:57 +00:00
Bill Currie
ab2aa3ae92 start merging in "map2" (quest) support 2003-02-03 22:42:13 +00:00
Brian Koropoff
580ca17546 GIB: Added proper reference counting on parse trees, got threads working
again, added a few new builtins and renamed some others, made misc. fixes
and enhancements.
2003-01-30 23:26:43 +00:00
Bill Currie
2d766710b6 detect multiple initializations of globals 2003-01-29 22:29:37 +00:00
Bill Currie
8a9cd78072 fix up a couple of error cases (and catch them!) 2003-01-29 20:32:44 +00:00
Brian Koropoff
59fbd48a81 Overhauled GIB to parse scripts in advance, among other design and language
changes.  There still remains some bugs to be squashed, a feature or two to
add, and some polishing to be done.  However, it seems to be in a workable
state.
2003-01-28 21:16:21 +00:00
Bill Currie
26c06c09a2 s/__attribute/__attribute__/ 2003-01-27 23:14:07 +00:00
Bill Currie
761a7546dd re-arrange things so __attribute__ and __builtin_expect are properly
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Bill Currie
a4dfef63c3 make all files with rcsid include config.h 2003-01-14 20:18:29 +00:00
Bill Currie
e32dc4cdb7 missed the new headers 2003-01-08 16:07:45 +00:00
Bill Currie
71196fedf6 make gcc more anal about prototypes, string constants and function
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
122b0d81e7 values.h doesn't seem to be needed and doesn't exist on darwin anyway 2002-12-20 23:41:24 +00:00
Bill Currie
2a5ac8c42d returning value for void function now a warning for traditional 2002-12-13 23:21:09 +00:00
Bill Currie
64a9a8199c allow if (void expr) (with warning) in traditional mode 2002-12-13 23:16:42 +00:00