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
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
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
Bill Currie
f70605f5f7
ensure a op= b treats b as if it was (b)
2004-02-08 05:28:30 +00:00
Bill Currie
bf592412f8
give temp defs a name, making it easier to read disassembly output (.tmpN)
2004-02-06 08:58:19 +00:00
Bill Currie
1d800caab7
make autoconvertion work for return
2004-02-06 08:40:28 +00:00
Chris Ison
6ec1cfe389
win32 fix for over-compliant getopt
2004-02-05 03:27:35 +00:00
Bill Currie
8a14e30896
cast block expressions
2004-02-04 06:41:07 +00:00
Bill Currie
d02b0686b1
don't seg if the method can't be found
2004-02-04 06:31:12 +00:00
Bill Currie
61da478188
these changes from earlier seem to be ok
2004-02-04 06:00:45 +00:00
Bill Currie
c43950abd8
autoconvert for function parameters now works :)
2004-02-04 05:49:54 +00:00
Bill Currie
892e80938b
that made a royal mess :(
2004-02-04 04:49:46 +00:00
Bill Currie
b2474a2b97
better auto-conversion of function parameters (ugh, this is getting messy
...
:( )
2004-02-04 04:33:08 +00:00
Bill Currie
f79e34628b
broke returning NIL
2004-02-04 02:30:18 +00:00
Bill Currie
ab4f0e7ca9
warn on return foo (); where foo returns void
2004-02-04 01:30:12 +00:00
Bill Currie
f748b6582a
need to do relocs separately from ddef creation due to pr_globals needing
...
to be allocated first
2004-02-04 00:36:15 +00:00
Bill Currie
e8a9060219
oops, messed up things like float = int
2004-02-04 00:30:42 +00:00
Bill Currie
3cd806fdcc
fix some over-conversions
2004-02-04 00:27:42 +00:00
Bill Currie
1068032f1b
make implementation methods not in the interface work properly when
...
-Winterface-check isn't specified and make sure classes don't clash with
defs or enums
2004-02-03 07:48:23 +00:00
Bill Currie
0f94dd95d2
make @class foo work when foo is already defined
2004-02-03 07:29:20 +00:00
Bill Currie
389ff5be1c
finally found the correct way to handle generated source
2004-02-03 05:30:11 +00:00
Bill Currie
9df4a7948e
make dist fixes
2004-02-03 03:22:48 +00:00
Bill Currie
c16fc91328
update with qfprogs
2004-02-03 02:40:00 +00:00
Bill Currie
24294c8778
make printing of global contents in PR_PrintStatement optional so
...
disassembly output is cleaner
2004-01-31 04:26:01 +00:00
Bill Currie
f05be31cae
fix for perc = itof (perc_val) / (100 / itof (size));
...
ie, better detection of function calls in binary expressions
2004-01-31 04:11:45 +00:00
Bill Currie
fb49b06c2c
remove debug info
2004-01-30 07:29:04 +00:00
Bill Currie
394e83e419
perform relocations so disassembly dumps of qfo files make sense
2004-01-30 07:17:28 +00:00
Bill Currie
f87a5d14e2
convert the debug info, too. seems to work
2004-01-30 05:35:30 +00:00
Bill Currie
a2e8080a03
init entity info
2004-01-29 08:22:59 +00:00
Bill Currie
2e87490f3b
pr_stringsize hasn't reflected static strings size for a while...
2004-01-29 08:11:04 +00:00
Bill Currie
206a15ef14
while not yet perfect, qfprogs now works with qfo files
2004-01-29 07:43:05 +00:00
Bill Currie
b2ccb50b81
move qfpreqcc in with qfcc for relationship reasons
2004-01-28 05:34:23 +00:00
Bill Currie
d3018dd79b
move qfprogs in with qfcc (it's going to need to share code)
2004-01-28 05:23:43 +00:00
Bill Currie
ba901863d2
fix a missing ;
2004-01-27 04:41:20 +00:00
Bill Currie
897b49140a
initialized locals are a little trickier...
2004-01-25 22:08:08 +00:00
Bill Currie
f8ed454547
warn on if (a = b)
2004-01-25 21:45:07 +00:00
Bill Currie
7423ee389d
better timing for constant folding
2004-01-25 21:36:44 +00:00
Bill Currie
39c7ff1e90
disable debug output
2004-01-25 08:59:55 +00:00
Bill Currie
51b0a66ac7
better constant folding with auto-conversion between scalar types (might
...
make that optional for non-constants)
2004-01-25 08:55:03 +00:00
Bill Currie
3e5a103e55
proper error checking when openning progs.src
2004-01-22 04:16:19 +00:00
Bill Currie
8f440c7911
linker.c:
...
I think I found the real reason doxygen gets confused
expr.c:
add a check for x & y == 2 (or similar) doesn't work for constant y at
the moment.
2004-01-22 01:04:48 +00:00
Bill Currie
2f21926568
more constant folding
2004-01-21 21:58:34 +00:00
Bill Currie
e63b205fd2
don't seg when in traditional mode and @ is seen
2004-01-21 21:43:31 +00:00
Bill Currie
1ddd7da5ec
remove redundant cast
2004-01-13 03:07:36 +00:00
Chris Ison
34f98e5a88
fix incompatable pointer type
2004-01-12 05:36:23 +00:00
Bill Currie
41106a1f01
hopefully shut doxygen up about a "const char" function
2004-01-11 05:52:19 +00:00
Bill Currie
802aacfaf4
allow constant expressions to be used for builtin numbers
2004-01-07 00:03:05 +00:00
Bill Currie
35d690c701
give an error message instead of segging for the following code:
...
@class foo;
@interface bar : foo
@end
2003-12-19 04:59:34 +00:00
Bill Currie
bb4e9de0db
fix a real oopsie with if (const)
2003-11-16 07:17:18 +00:00
Bill Currie
834ab26be5
remove some buggy debug code :P
2003-10-27 21:48:13 +00:00
Bill Currie
63414ea836
more gccisms in the error reporting (In function ...)
2003-10-25 04:35:47 +00:00
Bill Currie
58d0f188f1
recover from errors in bool expressions (ie, don't segfault)
2003-10-24 22:23:56 +00:00
Bill Currie
8e030089a7
only one define/undefine/include per option
2003-10-24 21:23:03 +00:00
Bill Currie
7ef80d1da2
mske sure .self and .this are defined in progs.src mode (ie, @self and
...
@this)
2003-10-22 21:49:47 +00:00
Bill Currie
c76282c668
fix bools in function calls
2003-10-22 16:49:57 +00:00
Bill Currie
5f97de56d1
fix a few bugs
2003-10-22 09:14:53 +00:00
Bill Currie
969dad87eb
fix a secfault in return_expr
2003-10-22 08:30:54 +00:00
Bill Currie
72ae59f882
short circuit logic can now be controlled (see man page)
2003-10-22 08:27:38 +00:00
Bill Currie
945006494f
short circuit logic for && and || (as per C). forces standard precedence
...
(ie, breaks --traditional) when enabled (no choice at the moment, next fix)
2003-10-22 08:05:17 +00:00
Bill Currie
99034fef27
initialized locals aren't constant
2003-09-25 02:05:43 +00:00
Bill Currie
4ce81b28d7
remove nested scopes for traditional mode
2003-09-23 17:59:46 +00:00
Bill Currie
91207c0180
make void functions actually return float in traditional mode (qcc allowed
...
things like foo = void_function)
2003-09-23 16:57:53 +00:00
Bill Currie
387464a27c
mangle precedence of = relative to && and || for --traditional (bletch).
...
also make noise when assigning to bad lvalues (eg !x = y)
2003-09-23 16:42:03 +00:00
Bill Currie
ba26628b80
--traditional now "fixes" (ie, breaks) operator precedence to match qcc
...
except for the relationship between "=" and "&&" and "||": not sure I want
to go that far towards bug compatability.
2003-09-22 22:15:31 +00:00
Bill Currie
9027648721
kill -t for --traditional, add --advanced, default to --traditional for
...
progs.src mode and --advanced otherwise
2003-09-20 04:13:32 +00:00
Bill Currie
651fa8ca12
correct the operator precendece to match C. hopefully won't cause any
...
problems :)
2003-09-19 20:50:05 +00:00
Bill Currie
11538d4745
access arrays in structs more efficiently (especially when using constant
...
indeces)
2003-09-02 17:41:16 +00:00
Bill Currie
f10829206a
use a cast expression rather than and bind expression to do the unsigned
...
comparison for switches. clears the notice (bind seems to be correct in
general) and is more correct conceptually anyway.
2003-09-02 16:53:45 +00:00
Bill Currie
23b525059f
cast between integer and unsigned just by changing access method
...
effectively deprecating conv.ui and conv.iu (they'll die eventually:)
2003-09-02 16:45:36 +00:00
Bill Currie
3a6c8b8b16
wrong place to decrement uses. now have a problem in switch :/
2003-09-02 06:23:57 +00:00
Bill Currie
ef4ca0c798
some doxygen tweaks
2003-08-31 05:24:24 +00:00
Bill Currie
b01d4d4589
get the type for the destination from the right place (hope that wasn't
...
a bugfix for something else:)
2003-08-24 20:38:32 +00:00
Bill Currie
7cffeb27bf
correct the temp def counting when casting
2003-08-24 08:17:31 +00:00
Bill Currie
6086aa2b99
allow casts between pointers and integers
2003-08-24 08:03:25 +00:00
Bill Currie
a08efafb7a
make sure __VERSION6__ is defined when it should be
2003-08-24 07:26:02 +00:00
Bill Currie
385a90e8fb
correct pr_symtab_t to include the pointer to the array of selectors used
...
in the module. Unfortunatly, this requires a version bump on both qfo and
progs files due to the changes structure layout.
2003-08-23 06:15:19 +00:00
Bill Currie
b38486d405
make rel_def_op work properly
2003-08-22 19:48:14 +00:00
Bill Currie
e9ca03416a
create the temp def for bound defs properly
2003-08-22 18:16:30 +00:00
Bill Currie
d20b8bf0c1
pass NIL though ... safely
2003-08-22 06:04:31 +00:00
Bill Currie
303287dc11
don't seg on undefined vars
2003-08-22 05:48:19 +00:00
Bill Currie
204243fe95
better message type checking
2003-08-22 05:26:47 +00:00
Bill Currie
febc57e71b
typecheck message params when possible
2003-08-22 04:08:33 +00:00
Bill Currie
7d09105740
remove debug code
2003-08-21 02:24:11 +00:00
Bill Currie
11c7c27f70
better relocations: pointers to structure members now work
2003-08-21 02:21:30 +00:00
Bill Currie
a2300387de
fix a bunch of segfaults
2003-08-20 22:36:02 +00:00
Bill Currie
93cafe878a
convert NIL properly in function calls
2003-08-20 20:28:28 +00:00
Bill Currie
7d830ffc1f
make @defs work properly and don't do uninitialized checks on structs
2003-08-20 19:58:41 +00:00
Bill Currie
aa712c0169
make [super foo] work in category methods
2003-08-18 06:11:41 +00:00
Bill Currie
aa4f81b6da
class.c:
...
whitespace
switch.c:
set up the relocations for the switch jump table properly
2003-08-18 02:57:21 +00:00
Bill Currie
515dbaccc0
make qc-lex.c and qc-parse.[ch] part of the distribution (two less
...
requirements for the average user)
2003-08-12 18:22:11 +00:00
Bill Currie
4a680bf981
grovel around for the source file and line of an undefined def to give
...
better diagnostics
2003-08-06 21:36:07 +00:00
Bill Currie
448b6f24be
make the useless expression warning more interesting
2003-08-05 21:41:48 +00:00
Bill Currie
329c91fce4
expr.c:
...
qcc actually had the precedence of "!x && y" correct, so don't invert
the logic for it in traditional code.
qfcc.c:
allow the .debug_file def to be emitted in traditional mode.
2003-08-05 17:48:16 +00:00
Bill Currie
3e3b316891
blah, double ;
2003-08-01 21:26:36 +00:00
Bill Currie
dd9ab1e050
get unsigned mostly working
2003-08-01 21:20:04 +00:00
Bill Currie
8e21ecd4d9
make private methods work properly and put overided methods into the
...
correct class
2003-08-01 16:24:44 +00:00
Bill Currie
1b5bf9d176
make methods showing up only in the implementation work when overiding an
...
inherited method
2003-08-01 05:08:15 +00:00
Bill Currie
24f4bcfebf
initialize the new field properly
2003-08-01 02:43:51 +00:00
Bill Currie
0361cb261f
fix an incorrect inherited attribute access caused by my "no ivars" fix
...
(part of the struct re-work)
2003-08-01 02:43:11 +00:00
Bill Currie
ae8e7553ce
fix struct parsing and printing
2003-07-31 06:17:49 +00:00
Bill Currie
9f0d4cc746
must use save_string when source of string is unknown :P
2003-07-31 06:14:26 +00:00
Bill Currie
cc0d8b364d
fix a couple "value computed is not used" not used warnings
2003-07-31 02:16:26 +00:00
Bill Currie
ab94498503
heh, that was a symptom. forget &void :)
2003-07-30 21:55:32 +00:00
Bill Currie
8099f0d8f2
handle addresses of void defs
2003-07-30 20:57:50 +00:00
Bill Currie
e957dc798f
oops, initialize type_param properly (D'OH:)
2003-07-30 17:59:34 +00:00
Bill Currie
6ecb707257
revamp the struct system so "struct foo;" does the right thing (ala C)
2003-07-30 04:11:45 +00:00
Jeff Teunissen
5c1875ba28
Update the interface-check warning to be more descriptive.
2003-07-29 18:53:13 +00:00
Bill Currie
5e6b25c917
add interface-check warning option. defaults off
2003-07-29 18:31:12 +00:00
Bill Currie
5b9b11241b
make method lookup work with id
2003-07-29 17:38:29 +00:00
Bill Currie
8966b0a533
get -/+ into selector name for "does not respond to" warning.
2003-07-27 19:47:14 +00:00
Bill Currie
f0c5a374d2
get selector naming (and method name mangline) right
2003-07-27 19:13:13 +00:00
Bill Currie
411bddb0d8
whitespace
2003-07-27 18:50:17 +00:00
Jeff Teunissen
c9858f4f65
Preliminary "unsigned" support for qfcc and the gamecode engine. Should still
...
be compatible.
2003-07-26 21:07:51 +00:00
Bill Currie
1366ad4661
fix <protocol_list>
2003-07-25 20:34:24 +00:00
Bill Currie
34df024e34
make sure protocol_hash exists
2003-07-24 19:41:59 +00:00
Bill Currie
5962900e25
allow rel_def_op relocs to point just past the end of the code. needed for
...
jump tables.
2003-07-24 17:51:24 +00:00
Bill Currie
378c477b8e
setup vector fields properly
2003-07-23 18:40:09 +00:00
Bill Currie
778cd78c35
fix some namespace issues with names both being a field and an ivar
2003-07-23 18:28:31 +00:00
Bill Currie
37f660801b
QNX's printf doesn't like null pointers
2003-07-17 20:04:07 +00:00
Bill Currie
9bd839e309
correct a couple of typos
2003-05-15 18:55:57 +00:00
Bill Currie
a2243e8936
update the --help docs with all the options
2003-05-15 17:48:59 +00:00
Bill Currie
dedb2fa6bf
get [super ...] working correctly
2003-05-15 05:58:31 +00:00
Bill Currie
bfaa07c726
better type mismatch error reporting
2003-05-15 05:19:05 +00:00
Bill Currie
5fac3e6f3a
fix a buffer underflow
2003-05-15 05:10:28 +00:00
Bill Currie
094c9c5cdb
make derefencing a pointer without an offset more efficient
2003-05-13 19:49:23 +00:00
Bill Currie
f59f766af1
use the correct type when taking the address of a pointer derefernece
2003-05-13 19:42:14 +00:00
Bill Currie
1ea1a2f529
don't bother checking access restrictions in class_ivar_expr as
...
class_find_ivar will catch them when the generated self.ivar is `parsed'.
2003-05-13 01:30:01 +00:00
Bill Currie
0ebf9d6afc
more inline avoidance
2003-05-07 15:00:17 +00:00
Bill Currie
6fb5acc868
more auto-inline avoidance
2003-05-07 02:45:17 +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
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
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
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
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
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
eb5f2137b4
don't create temp files when only preprocessing
2003-03-24 17:40:27 +00:00
Bill Currie
1e423b9645
make certain classes get referenced when inheriting from them
2003-03-13 19:16:45 +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
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
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
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
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
Bill Currie
2d766710b6
detect multiple initializations of globals
2003-01-29 22:29:37 +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
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
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
Bill Currie
aec0c9eea1
make return type missmatch a warning for --traditional
2002-12-13 23:05:24 +00:00
Bill Currie
ee30860cef
fix a bunch of ;; typos
2002-11-20 21:44:04 +00:00
Bill Currie
cb81f17697
bah, bloody bison inconsistencies
2002-11-15 17:12:16 +00:00
Bill Currie
3c215ce13f
getting closer to working categories
2002-11-14 18:17:43 +00:00
Bill Currie
da334413b8
re-write category handling so it has a better chance of working (category
...
using code now compiles)
2002-11-12 19:52:43 +00:00
Bill Currie
498bdcc406
compile fixes for alpha linux
2002-11-10 02:50:42 +00:00
Bill Currie
749b56aae7
forgot to fix these when I did the copyrights
2002-11-06 16:32:28 +00:00
Bill Currie
ca4b3acd6c
big protototype cleanup. Now, except for a few cases, all non-static
...
prototypes are in headers files.
2002-11-05 19:12:51 +00:00
Bill Currie
43fa6a4002
inherited attributes rock :) (thanks, aho, ulman and sethi:)
2002-11-04 17:54:31 +00:00
Bill Currie
1cba65f6ce
fix a gcc 2.95 warning
2002-11-04 02:24:28 +00:00
Bill Currie
7f69f593d3
configure.ac:
...
define default include and lib paths for qfcc
ruamoko:
{cl_menu,game}/Makefile.am:
conform to the new qfcc library linking rules
lib/Makefile.am:
install the libs to ${prefix}/lib/ruamoko
qfcc:
linker.[ch]:
support path searching for -llib and make linker_add_lib search for
libfoo.a for -lfoo in the paths, or just a single dir search for the
libname otherwise.
options.c:
support -L libpath and setup the default include and lib paths
also change most strdup calls to save_string
qfcc.c:
check for foo.a as well as -lfoo when deciding whether the file is
an object file or lib file.
2002-11-01 18:05:12 +00:00
Bill Currie
7af99f422f
expr.c:
...
fix a braino that caused only sizeof expr to work
linker.c:
print an error message if unable to open the lib
qc-parse.y:
revamp expression parsing so casting is done via (type)expr rather than
type(expr)
make it so pointers to pointers don't need ()s
2002-10-31 22:58:59 +00:00
Bill Currie
9a1223cae2
need 14, not 4 for precache_sound
2002-10-30 05:06:03 +00:00
Bill Currie
912db0336e
clean out the cmdlib crap from quakefs.c and nuke qfcc's last dependency
...
on cmdlib.h (and nuke qfcc's cmdlib.h itself:)
2002-10-30 02:31:29 +00:00