Bill Currie
|
a376e6f86d
|
make control of progdefs.h generation saner
|
2007-04-28 05:40:22 +00:00 |
|
Bill Currie
|
e8e2d3a6e5
|
make "local" optional
|
2007-04-28 05:20:47 +00:00 |
|
Bill Currie
|
cfd71b87c4
|
clean up some warnings that I think I wasn't testing for
|
2007-04-28 05:17:55 +00:00 |
|
Bill Currie
|
bf15d0cb6a
|
docs on advanced/traditional
|
2007-04-12 10:53:38 +00:00 |
|
Bill Currie
|
cfeb14fecf
|
warn when local variables are redecalred in the same scope. This won't normally cause problems, but it can save a lot of grief when converting traditional quakec code.
|
2007-04-12 09:39:42 +00:00 |
|
Bill Currie
|
8c31f12d5c
|
cover the two compilation modes
|
2007-04-12 07:42:22 +00:00 |
|
Bill Currie
|
93ee2e489b
|
more vc2005 patches from phrosty
|
2007-04-11 22:03:36 +00:00 |
|
Bill Currie
|
8353bb5886
|
add a section on compilation modes. only half done, though
|
2007-04-11 15:10:00 +00:00 |
|
Bill Currie
|
7c938b3e91
|
follow some of the roff rules...
|
2007-04-11 12:04:53 +00:00 |
|
Bill Currie
|
bac4096708
|
some doc improvements as pointed out by Hikaru and add --relocatable to the long options
|
2007-04-11 10:48:04 +00:00 |
|
Bill Currie
|
82aaa87b6b
|
fast access to code, warning and notice help.
|
2007-04-10 14:53:44 +00:00 |
|
Bill Currie
|
992aa04994
|
Forgot to coorect the adjustment of the def's offset (yet I knew I was supposed to :P)
|
2007-04-10 14:03:34 +00:00 |
|
Bill Currie
|
f48d41848a
|
*sigh*
|
2007-04-10 13:11:42 +00:00 |
|
Bill Currie
|
15dc16ff64
|
put in stubs for help for -C, -W and -N
|
2007-04-10 13:10:53 +00:00 |
|
Bill Currie
|
2e6ecd97c8
|
d'oh
|
2007-04-10 13:01:45 +00:00 |
|
Bill Currie
|
52d178b3be
|
Add a code generation option, "local-merging", to control qfcc's merging of local variable blocks into one block. Defaults to on for advanced mode and off for traditional.
|
2007-04-10 13:00:21 +00:00 |
|
Bill Currie
|
4c4281c512
|
because builtin functions now get their params dumped to the debug symbols, @va_list needs to be initialized.
|
2007-04-10 09:10:09 +00:00 |
|
Bill Currie
|
30744a555e
|
find the other place def_func relocs get emitted. I keep forgetting about the .y file when grepping source :P
|
2007-04-10 07:40:03 +00:00 |
|
Bill Currie
|
3b7c83a96f
|
uncomment some lines that shouldn't have been commented (doesn't fix the bug, though)
|
2007-04-09 14:32:47 +00:00 |
|
Bill Currie
|
845b5ab2e2
|
don't write alias defs to the qfo
|
2007-04-09 14:25:44 +00:00 |
|
Bill Currie
|
642bb0f810
|
don't create a reloc for an external function
|
2007-04-09 14:06:12 +00:00 |
|
Bill Currie
|
e53e9944b6
|
spew a lot of guff about relocs
|
2007-04-09 13:33:59 +00:00 |
|
Bill Currie
|
3cd01223dd
|
don't try to fix up function refs too early. fixes klik's segfault on firing
|
2007-04-09 08:56:23 +00:00 |
|
Bill Currie
|
a9678f1c06
|
dump globals direct from qfo
|
2007-04-09 07:47:51 +00:00 |
|
Bill Currie
|
48fdd0cb26
|
record the params for builtins, too.
|
2007-04-09 06:16:34 +00:00 |
|
Bill Currie
|
9509d0fd5e
|
make qfo files typesize safe
|
2007-04-07 12:35:03 +00:00 |
|
Bill Currie
|
2399e79ca0
|
open all files in binary mode. ^Z is evil :P
|
2007-04-07 10:24:34 +00:00 |
|
Bill Currie
|
a6104bc0fc
|
open input and output files in binary mode so ^Z doesn't bite us on windows
|
2007-04-07 10:15:17 +00:00 |
|
Bill Currie
|
cbcd2030cf
|
add a few more tests to break
|
2007-04-07 05:02:09 +00:00 |
|
Bill Currie
|
25bf40a71a
|
finish the break overloading and add some more tests (really need to get these automated)
|
2007-04-07 04:58:27 +00:00 |
|
Bill Currie
|
124506fda2
|
Fix the access alignment bug on 64 bit archs.
|
2007-04-07 01:41:23 +00:00 |
|
Bill Currie
|
c4d81cda19
|
use a proper charset instead of \w (too iffy on what it is)
|
2007-04-06 23:13:29 +00:00 |
|
Bill Currie
|
5baa6057cb
|
give windows spawn*p* :P
|
2007-04-06 22:25:16 +00:00 |
|
Bill Currie
|
9e9318a3f1
|
use spawn instead of fork/exec/wait
|
2007-04-06 22:03:28 +00:00 |
|
Bill Currie
|
3f3450df2c
|
fix a wrong name
|
2007-04-06 14:13:25 +00:00 |
|
Bill Currie
|
f6924f35e5
|
report the line of the previous declaration of the function
|
2007-04-06 12:02:34 +00:00 |
|
Bill Currie
|
a6388ee680
|
overload "break" and allow break to be used in --traditional
|
2007-04-06 11:46:21 +00:00 |
|
Bill Currie
|
6d21c50dee
|
handle #line (hopefully)
|
2007-04-06 11:27:03 +00:00 |
|
Bill Currie
|
966c337bf5
|
use the def's declaration line rather than the function's when reporting auto-initialization
|
2007-04-06 11:05:52 +00:00 |
|
Bill Currie
|
c560744270
|
"use" parent defs
|
2007-04-06 11:01:34 +00:00 |
|
Bill Currie
|
240eab4b09
|
cleanup the tempfile from a failed preprocessor run on progs.src
|
2007-04-06 09:44:08 +00:00 |
|
Bill Currie
|
26e15db4ba
|
handle comments and conditionals in preprogs.src
|
2007-04-06 09:27:56 +00:00 |
|
Bill Currie
|
04765083aa
|
really warn only once for each uninitialized variable
|
2007-04-06 08:56:37 +00:00 |
|
Bill Currie
|
e7f478b197
|
by default, don't use cpp when compiling the output of qfpreqcc
|
2007-04-06 08:41:33 +00:00 |
|
Bill Currie
|
5a8143a9c7
|
support float = vector and vector = float for traditional
|
2007-04-06 08:23:07 +00:00 |
|
Bill Currie
|
eb9943973b
|
handle . in frame macro names
|
2007-04-06 08:19:58 +00:00 |
|
Bill Currie
|
bff92d9d32
|
properly handle strings in comments and comments in strings
|
2007-04-06 08:19:20 +00:00 |
|
Bill Currie
|
6bbf54c7cd
|
handle /* */ comments better
|
2007-04-06 07:12:47 +00:00 |
|
Bill Currie
|
0e4fb6c01a
|
no-cpp implies no-single-cpp
|
2007-04-06 07:11:38 +00:00 |
|
Bill Currie
|
8079c9951c
|
catch nested /* in comments
|
2007-04-06 06:31:47 +00:00 |
|
Bill Currie
|
ff0144f870
|
bring in the cleanups from my start at preqcc stuff (I don't know if that will ever go in, though, I'm thinking maybe it should be external)
|
2007-04-06 05:52:20 +00:00 |
|
Bill Currie
|
df2bebde7e
|
more vc build patches from phrosy
|
2007-04-06 01:09:58 +00:00 |
|
Bill Currie
|
0382b05780
|
various unsigned long -> uintptr_t conversions
|
2007-04-04 11:22:48 +00:00 |
|
Bill Currie
|
72af804b31
|
nested include reporting
|
2007-03-31 15:27:36 +00:00 |
|
Bill Currie
|
5e98c49188
|
chase down a runaway else
|
2007-03-31 15:26:58 +00:00 |
|
Bill Currie
|
90129fc4ec
|
add $frame_reset grab command to reset the frame macro counter and sneak the command in before each file in the single-cpp script. This fixes the bogus animations in nq (and anything else, for that matter)
|
2007-03-31 13:54:09 +00:00 |
|
Bill Currie
|
03e1d6c3bf
|
re-implement the comment lexer using states to re-learn how things work prior to implementing preqcc support
|
2007-03-30 09:02:36 +00:00 |
|
Bill Currie
|
e52633c492
|
make protocol dump info more readable
|
2006-12-19 11:53:18 +00:00 |
|
Bill Currie
|
0bd92e439a
|
fix an interal error caused by losing the error state
|
2006-12-16 11:45:47 +00:00 |
|
Bill Currie
|
48d9d96005
|
don't try to create multiple objects for the same protocol
|
2006-12-16 08:09:10 +00:00 |
|
Bill Currie
|
904197c70e
|
allow assignment of arrays to poitners
|
2006-12-11 09:26:45 +00:00 |
|
Bill Currie
|
e9f49ca816
|
allow static local vars
|
2006-12-11 09:26:07 +00:00 |
|
Bill Currie
|
48f8bbd12e
|
group the struct rules together
|
2006-12-02 06:49:55 +00:00 |
|
Bill Currie
|
b6a4a520d5
|
silence bison's new warnings
|
2006-12-01 08:17:55 +00:00 |
|
Bill Currie
|
1925bef0c1
|
fix a bunch of bugs with single-cpp processing when not keeping temps
|
2006-08-20 06:20:30 +00:00 |
|
Bill Currie
|
130e6c1a3f
|
fix some intermediate file issues
|
2006-05-24 14:50:24 +00:00 |
|
Bill Currie
|
f7df6fea17
|
instead of having cpp args in progs.src, potentially breaking some mods, generate progs.i as a series of #includes and then compile everything in one pass
|
2006-05-24 14:35:39 +00:00 |
|
Bill Currie
|
8f097ce3dd
|
fix a couple of typoes
|
2006-05-24 12:58:31 +00:00 |
|
Bill Currie
|
ff28197da6
|
pass progs.src through cpp too
|
2006-05-24 11:19:48 +00:00 |
|
Bill Currie
|
ada9797009
|
why r+t? we don't need to write.
|
2006-05-24 11:18:18 +00:00 |
|
Bill Currie
|
728dde167d
|
explicity state errors are errors rather than leaving it implicit (tracking
gcc's messages again;)
|
2005-08-17 23:05:10 +00:00 |
|
Bill Currie
|
3fb03fc2be
|
hah, should have been using __attribute__((used)) all that time (rather
than __attribute__((unused))). fixes the missing console in -x11
|
2005-08-04 15:27:09 +00:00 |
|
Bill Currie
|
0c974c0530
|
more tests
|
2005-06-14 11:29:42 +00:00 |
|
Bill Currie
|
3f58823fed
|
vector-calls now works with rcall :)
|
2005-06-12 11:37:28 +00:00 |
|
Bill Currie
|
aa6265859a
|
allow -Cno-v6only to work when defaulting to traditional
|
2005-06-12 11:36:30 +00:00 |
|
Bill Currie
|
762aefc9b1
|
implement Raven's calling convention (rcall: first 2 params in opb and
opc). should give a general speedup to most progs.
|
2005-06-12 09:54:01 +00:00 |
|
Bill Currie
|
66cabb587f
|
add the vector-calls "optimisation" from fteqcc. makes it possible to
compile the version of frogbot with waypoints for almost 300 maps.
|
2005-06-10 07:31:25 +00:00 |
|
Bill Currie
|
116860bb66
|
don't segfault when running out of globals
|
2005-06-10 05:16:20 +00:00 |
|
Bill Currie
|
9f662787e0
|
get struct copy to/from struct fields via pointers. fixes a bug found by
snax
|
2005-06-09 10:34:03 +00:00 |
|
Bill Currie
|
501180aaac
|
gcc-4.0 fixes. even found some bugs :) (names /not/ mangled this time)
|
2005-06-08 06:35:48 +00:00 |
|
Bill Currie
|
dff55040bc
|
noticed a potential unused warning issue if that version of flex gets hit
again
|
2005-03-31 09:55:41 +00:00 |
|
Bill Currie
|
0edd694bac
|
fix a default action type clash in some versions of bison
|
2005-03-31 08:23:11 +00:00 |
|
Bill Currie
|
b71f12a616
|
warning message cleanup
This is an imperfect revision of history.
|
2004-11-18 06:08:20 +00:00 |
|
Bill Currie
|
ae456dc3a4
|
`secret' .c support so automake's dependency style autodetection works
This is an imperfect revision of history.
|
2004-11-14 23:15:00 +00:00 |
|
Bill Currie
|
554f4d071a
|
get the type right when accessing arrays in a struct (in a pointer?)
This is an imperfect revision of history.
|
2004-11-13 13:22:30 +00:00 |
|
Bill Currie
|
56838844d2
|
add support for -E and still compile when -MD is used
This is an imperfect revision of history.
|
2004-11-13 13:22:00 +00:00 |
|
Bill Currie
|
66257e3a88
|
run in fear, function overloading is here
This is an imperfect revision of history.
|
2004-11-13 11:50:00 +00:00 |
|
Bill Currie
|
9b81bc5ea6
|
allow access to the parameter type via @param and variable initializers for local arrays/structs.
This is an imperfect revision of history.
|
2004-11-13 04:02:00 +00:00 |
|
Bill Currie
|
5f34f87b58
|
ivar access control seems to work now :)
This is an imperfect revision of history.
|
2004-11-13 01:37:00 +00:00 |
|
Bill Currie
|
7237087e71
|
update
This is an imperfect revision of history.
|
2004-11-12 21:20:00 +00:00 |
|
Bill Currie
|
4d044bfea4
|
make entity.vector.x work properly by making relative field offset work. also don't emit a field def for the resulting immediate
This is an imperfect revision of history.
|
2004-11-12 10:49:00 +00:00 |
|
Bill Currie
|
abf25e0e1c
|
real fix for uninitialized functions
This is an imperfect revision of history.
|
2004-11-12 05:04:00 +00:00 |
|
Bill Currie
|
634dcbba95
|
forgot to allow struct move (for struct assigment)
This is an imperfect revision of history.
|
2004-11-11 22:41:00 +00:00 |
|
Bill Currie
|
64cc8c60d2
|
compile time protocol support seems to be complete now. fortunatly, protocols had never been written out so the corrections to the protocol related stuctures do not need a progs version bump. runtime protocol support hasn't been fully tested yet.
+load runtime support seems to be working.
This is an imperfect revision of history.
|
2004-11-11 00:34:00 +00:00 |
|
Bill Currie
|
7dfd9ab502
|
Use the script api to parse progs.src instead of idparse. Now any additional tokens on the first line of progs.src are ignored and any additional tokens on subsequent lines get cumulatively added to the cpp command line. See progs.src[.in] in tools/qwaq for a simple example.
This is an imperfect revision of history.
|
2004-11-11 00:24:00 +00:00 |
|
Bill Currie
|
a97f74a6ac
|
that particular error case is a type mismatch rather than an internal error. found when trying to compare a SEL with a string... oops :)
This is an imperfect revision of history.
|
2004-11-11 00:20:00 +00:00 |
|
Bill Currie
|
b35561504c
|
do proper selector registration. unfortunatly, I discovered I'd created pr_method_t incorrectly and so had to bump the progs version again
This is an imperfect revision of history.
|
2004-11-10 05:37:00 +00:00 |
|
Bill Currie
|
8770df39e5
|
start documenting things (progs building still borked)
This is an imperfect revision of history.
|
2004-11-08 23:27:00 +00:00 |
|
Bill Currie
|
201252c1c0
|
FIXME cleanup and a missed win32 compile fix
This is an imperfect revision of history.
|
2004-11-06 02:21:00 +00:00 |
|
Bill Currie
|
b46cff08aa
|
handle param name changes between prototype and declaration gracefully
This is an imperfect revision of history.
|
2004-11-02 23:54:00 +00:00 |
|
Bill Currie
|
9f52181e34
|
fixes for methods in categories or not in an interface
This is an imperfect revision of history.
|
2004-11-02 11:56:00 +00:00 |
|
Bill Currie
|
181df01add
|
initialize the function tables properly when "converting" a qfo, fix a buffer overflow in file loading and remove the now unnecessary hunk initialization.
This is an imperfect revision of history.
|
2004-11-02 07:15:00 +00:00 |
|
Bill Currie
|
a3a2dd62e3
|
fix type of "self"
This is an imperfect revision of history.
|
2004-11-02 07:13:00 +00:00 |
|
Bill Currie
|
a4dbdb4d06
|
whitespace
This is an imperfect revision of history.
|
2004-11-02 07:08:00 +00:00 |
|
Bill Currie
|
fff41d664a
|
detect re-declaring identifiers as different types (typedef, enum, var, etc)
This is an imperfect revision of history.
|
2004-11-02 07:02:00 +00:00 |
|
Bill Currie
|
a2e05dbe83
|
make bison output a state file
This is an imperfect revision of history.
|
2004-11-02 05:19:00 +00:00 |
|
Bill Currie
|
ca46503607
|
add -Wsign-compare (default for -Wall only in C++) and fix up the warnings
|
2004-07-13 19:14:01 +00:00 |
|
Bill Currie
|
8c10e2e355
|
this should fix the string case errors on sparc64
|
2004-05-15 01:00:47 +00:00 |
|
Bill Currie
|
3483b3b2b6
|
handle #pragma gracefully (ie, ignore it)
|
2004-05-09 02:12:49 +00:00 |
|
Jeff Teunissen
|
fe654959ee
|
qfcc man page updates.
|
2004-04-28 04:49:15 +00:00 |
|
Jeff Teunissen
|
31f5bb5d96
|
Small changes to the QFCC book.
|
2004-04-28 00:43:03 +00:00 |
|
Jeff Teunissen
|
b057b6cb26
|
Some signed/unsigned formatting stuff found by lint.
|
2004-04-27 23:17:41 +00:00 |
|
Bill Currie
|
14900bb82e
|
fast-float code option (defaults to on). kills almost 3000 statements from
prozac
|
2004-04-27 20:24:37 +00:00 |
|
Bill Currie
|
8a7bb9c4a0
|
fix a silly that messed up type mismatch errors
|
2004-04-12 23:46:21 +00:00 |
|
Bill Currie
|
9a3acc8035
|
get the field offset correctly
|
2004-04-09 04:30:19 +00:00 |
|
Bill Currie
|
7b28c555ba
|
quaternion field access now works
|
2004-04-09 04:12:44 +00:00 |
|
Bill Currie
|
332ec82495
|
update the scope of local defs to the parent scope when the creation scope
goes away (doesn't get updated to the global scope). fixes a bug where
local defs would be miscounted (and sometimes lost)
|
2004-04-09 03:47:41 +00:00 |
|
Bill Currie
|
0b61dae402
|
allow .imm fields (need a better test, I think)
|
2004-04-09 03:45:55 +00:00 |
|
Bill Currie
|
50dc955652
|
fix a couple out-by-one errors highlighted by quaternions
|
2004-04-09 02:20:47 +00:00 |
|
Bill Currie
|
0e47ee96f8
|
spelling fixes
|
2004-04-08 18:53:46 +00:00 |
|
Bill Currie
|
4c4f40f137
|
fix a few bugs. basics seem to be working
|
2004-04-08 05:13:24 +00:00 |
|
Bill Currie
|
5869cb693e
|
oops
|
2004-04-08 05:04:50 +00:00 |
|
Bill Currie
|
a7103c6732
|
quaternion conjugate
|
2004-04-08 04:59:10 +00:00 |
|
Bill Currie
|
fc2413ff72
|
more quaternion work (should be working, haven't come up with tests yet)
|
2004-04-08 03:32:14 +00:00 |
|
Bill Currie
|
4882005a49
|
compile fixes (oops) and start working on quaternion support in qfcc
|
2004-04-08 02:33:20 +00:00 |
|
Bill Currie
|
8220d6d3c9
|
for loop tests
|
2004-03-30 02:31:50 +00:00 |
|
Bill Currie
|
25ac9cb07b
|
fix "for (;;)" etc
|
2004-03-30 02:31:02 +00:00 |
|
Bill Currie
|
5bd524cd8b
|
add a note about memory consuption
|
2004-02-24 02:56:32 +00:00 |
|
Bill Currie
|
f1c9a8d24b
|
remove a mostly unused field
|
2004-02-21 05:58:01 +00:00 |
|
Bill Currie
|
14e8bfe94b
|
auto-init for uninitialized locals in traditional mode as requested by
Grievre
|
2004-02-21 05:52:05 +00:00 |
|
Bill Currie
|
0360859a0f
|
all warnings (except for @self and self) are now fully controllable
|
2004-02-17 00:39:21 +00:00 |
|
Bill Currie
|
efb52dc9f9
|
don't seg on null field names
|
2004-02-13 23:08:22 +00:00 |
|
Bill Currie
|
865b31caac
|
make sure messages generated by issues within a function don't get
"At top level"
|
2004-02-13 04:57:15 +00:00 |
|
Bill Currie
|
b6c2320d5d
|
change --include FILE to pre-include a file rather than add a directory search
path. Maps to -include FILE on the cpp command line.
|
2004-02-13 04:46:50 +00:00 |
|
Bill Currie
|
7ed77fd18b
|
ignore pdf files
|
2004-02-12 21:58:52 +00:00 |
|
Bill Currie
|
69730cae8b
|
fix some type classes in older bison
|
2004-02-12 01:37:27 +00:00 |
|
Bill Currie
|
02d89ee7d5
|
allow computed functions for "think" in state expressions
|
2004-02-11 08:09:10 +00:00 |
|
Bill Currie
|
1c090c38a3
|
allow non-const expressions for the frame number and make sure the time
step is a float (for state expressions)
|
2004-02-11 04:00:11 +00:00 |
|
Bill Currie
|
afdbd90bc1
|
some tests I've accumulated over time. don't want to lose them accidently
:)
|
2004-02-11 02:23:40 +00:00 |
|
Bill Currie
|
0fe4c2a600
|
catch redefined functions
|
2004-02-11 01:53:17 +00:00 |
|
Bill Currie
|
c3f41e3e69
|
new opcode: state.f. same as state, but takes a 3rd float operand to
specify the step for calculating nextthink. accessed using
[frame, think, step] (state is [frame, think])
|
2004-02-11 01:43:33 +00:00 |
|
Bill Currie
|
1fc517f7db
|
C style functions can now (optionally) be used (void foo ();)
|
2004-02-11 00:36:34 +00:00 |
|
Bill Currie
|
e2602bc9d5
|
fix misparse of void () foo;
|
2004-02-10 23:49:45 +00:00 |
|
Bill Currie
|
7af8f8a6f6
|
; at the end of a function is no longer required. void () foo = {} and
void () foo = {}; are both valid now.
|
2004-02-10 23:20:44 +00:00 |
|
Bill Currie
|
6e4c6478a1
|
getting closer to optional ; at the end of functions. also gets rid of the
need for the context-sensitivity hack used for distinquishing frunction
inits from struct/array inits
|
2004-02-10 03:25:24 +00:00 |
|
Ragnvald Maartmann-Moe IV
|
2b8fc38a2c
|
Fix an ypo. ;)
|
2004-02-09 16:51:06 +00:00 |
|
Bill Currie
|
ddc44f33da
|
compress the 4 method building rules into 2
|
2004-02-09 07:35:19 +00:00 |
|
Bill Currie
|
3f27042e8d
|
forgot to look after current_storage with methods
|
2004-02-09 07:17:44 +00:00 |
|
Bill Currie
|
1181fb267b
|
don't seg when constants are involved in && or || expressions
|
2004-02-09 02:23:37 +00:00 |
|
Bill Currie
|
499dac6bb1
|
step one towards more flexible function declarations
|
2004-02-08 23:46:40 +00:00 |
|