Bill Currie
802aacfaf4
allow constant expressions to be used for builtin numbers
2004-01-07 00:03:05 +00:00
Bill Currie
acd54afff7
move to using a hash table for builtin number -> builtin lookup so sparse
...
ranges can be used efficiently. move the auto-allocated builtins to
0x10000000-0x7fffffff. should be more than enough :)
use static builtin tables ("nul" terminated) instead of a series of
function calls to add builtins to a vm. should be more memory efficient.
2004-01-06 05:51:09 +00:00
Bill Currie
dfc83c1f5f
add PR_PushFrame and PR_PopFrame so temp strings are easy to use for
...
parameters to progs functions.
double the progs stack sizes (call depth of 32? eek)
allow one extra call on the progs stack :)
misc minor cleanups
2004-01-05 07:10:32 +00:00
Bill Currie
dfe7f263c7
new internal printf engine for progs, mostly thanks to Deek.
...
also a few cleanup bits
2004-01-04 07:42:43 +00:00
Bill Currie
a533761770
Nuke PR_GarbageCollect as it's both redundant with the new temp strings
...
and wrong anyway (could free strings it wasn't supposed to).
Don't free the string pointed to by a strref since it's already been
implicity freed (whole memory space nuked). Fixes new map crash.
2004-01-04 02:03:30 +00:00
Bill Currie
bd561fafc3
o all progs strings are now stored in progs memory
...
o temporary strings automaticly get freed when the function they're
created in (results of str + str and most strings returned from
builtins). a way to keep temp strings will be provided later
o fix up qwaq to test the temp strings
2004-01-03 08:43:57 +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
cd8035319d
PR_GetString should have been returning const char *. now does
2003-11-21 21:34:53 +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
2469c36302
yay, short circuit logic done :)
2003-10-23 06:21:07 +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
Brian Koropoff
f4c174184d
Add support for named arguments in GIB functions and methods, fix a few
...
bugs, allow subclasses of classes written in GIB to access the same set
of instance variables.
2003-10-19 00:51:47 +00:00
Bill Currie
99034fef27
initialized locals aren't constant
2003-09-25 02:05:43 +00:00
Bill Currie
39c0a0f08d
make cluster recursion a warning rather than an error (see how this goes)
2003-09-24 00:59:53 +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
52417dceb3
oops, forgot about this
2003-09-20 05:24:57 +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
9e861128ec
world is supposed to be portalized using the "detail" portals
2003-09-17 22:46:37 +00:00
Bill Currie
4f33663c8c
brush.c:
...
quieten point off plane warning
qfbsp.c:
allocate less memory for clipped winding
2003-09-17 21:03:52 +00:00
Bill Currie
83ba424ffc
force axis aligned planes to truely be axis aligned (fixes degenerate
...
polygons being generated by ClipWinding) and use LordHavoc's point off
plane correction code
2003-09-17 20:26:57 +00:00
Bill Currie
03d67f6177
ignore some more files
2003-09-15 16:33:16 +00:00
Bill Currie
0db01f41fb
progress "meter"
2003-09-12 23:13:11 +00:00
Bill Currie
31112bfc42
it's gimp-paintbrush rather than gimp_paintbrush
2003-09-12 22:03:30 +00:00
Jeff Teunissen
0cd6fb397a
Minor cleanups.
2003-09-12 20:52:23 +00:00
Bill Currie
ccea0d5d5d
seems printf isn't threadsafe
2003-09-12 20:40:14 +00:00
Jeff Teunissen
773eda1929
Okay, all. This is the TexturePaint 1.1 GIMP plugin, modified by me long ago
...
to work under GIMP 1.2.x -- at taniwha's urging, I am checking this into CVS.
You need libgtk+ v1.2, libgtkglarea v5, libgimp v1.2 (or thereabouts) to get
this to work.
2003-09-12 18:41:29 +00:00
Bill Currie
c8d405dbcb
oops, else in wrong spot
2003-09-12 18:35:10 +00:00
Bill Currie
9d8569584e
fix a typo
2003-09-12 17:14:39 +00:00
Bill Currie
deb6b2e3a7
all numeric args now check the validity of their arg (that it's a number)
2003-09-12 16:43:44 +00:00
Bill Currie
bf89a486a8
error checking
2003-09-11 18:52:37 +00:00
Bill Currie
84f58bdd5d
allow reading of gzipped bsps
2003-09-11 18:21:26 +00:00
Bill Currie
9297732f86
fix a typo pointed out by IrcMonkey
2003-09-11 18:11:20 +00:00
Brian Koropoff
687a0845b6
Introducing the GIB Object System (TM). This breaks scriptable HUD for now
...
and probably has enough bugs to leave the Orkin man scratching his head,
but it works and allows you to do neat things like write classes in GIB
(amazing!) and subclass builtin classes (which are Object and Thread at the
moment, Hash should be coming soon as a replacement for stem and leaf
variables).
2003-09-11 06:03:13 +00:00
Bill Currie
0c1655ac00
some serious speedups. that memset was fiendishly expensive (oops:) and
...
redundant anyway (d'oh, paranoia bit me in the bum).
2003-09-10 21:09:23 +00:00
Bill Currie
1ed772a933
convert \ to / while extracting and accecpt file names on the command line
...
to control extraction.
2003-09-10 20:48:59 +00:00
Bill Currie
6eef62cff8
LordHavoc's colored lighting support (not his relight stuff (yet?) though)
2003-09-10 15:48:46 +00:00
Bill Currie
9607b8f5f2
parse the vis data properly
2003-09-09 15:29:14 +00:00
Bill Currie
26f3839276
bring in lordhavoc's vis data optimisations (doesn't work properly yet) and
...
parsing of his extra fields.
2003-09-09 08:13:33 +00:00
Bill Currie
94f00bbefe
it seems wine doesn't like %i in *scanf
2003-09-08 21:57:34 +00:00
Bill Currie
f93cc0d5d5
make the reached entity warning display even without verbose
2003-09-08 19:50:19 +00:00
Bill Currie
cb5f57fb51
oops, forgot to edit the checks for specified fields
2003-09-08 03:46:56 +00:00
Bill Currie
cabe8d6c02
remove some arbitrary limits and add some of the fields from hlight
2003-09-08 03:39:44 +00:00
Bill Currie
50d83a7c56
same with MAX_POINTS_ON_WINDING
2003-09-08 03:25:01 +00:00
Bill Currie
ca91f7b727
MAXEDGES? What MAXEDGES? :)
2003-09-08 03:00:53 +00:00
Bill Currie
1a250f0ef7
error checking in LoadLump and handle muptiple wad files better (ie,
...
properly:P)
2003-09-05 03:47:19 +00:00
Bill Currie
04a1ff51b1
D'OH!!! fixes totally borked vis data :)
2003-09-05 02:27:34 +00:00
Bill Currie
194ea081eb
hopefully add watervis support
2003-09-03 23:04:30 +00:00
Bill Currie
4cb6c062ec
use the right plane when calculating the texture normals
2003-09-03 22:54:14 +00:00
Bill Currie
a30fbfc917
tighten up hl texture alignment parsing and don't print
...
"adding 0 texture frames".
2003-09-03 22:32:40 +00:00
Bill Currie
0a8867fde9
replace all VectorSubtract (vec3_origin, ... and
...
VectorCopy (vec3_origin, ... with VectorNegate (... and VectorZero (...,
respectively. Should be a small speedup.
2003-09-03 22:17:04 +00:00
Bill Currie
231a1bfb56
bring in many of LordHavoc's changes to qbsp: HalfLife WorldCraft texture
...
alighnment, partial "point of plane" autocorrection (currently disabled: I
want to make it optional), large map support (not sure where that's
hiding), hipnotic entity rotation
2003-09-03 22:00:08 +00:00
Bill Currie
996de18cc6
good line number reporting for errors and treat ^Z and ^D as whitespace
2003-09-03 18:27:27 +00:00
Bill Currie
36f8dbf75a
fix a buffer overflow (ouch)
2003-09-02 20:20:54 +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
cc41875968
make the bbox output easier to read
2003-08-29 00:50:39 +00:00
Bill Currie
4c52975584
make FindPlane much pickier about matching planes
2003-08-27 01:12:03 +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
b50d283b28
make sel_get_uid and class_get_instance_method work
2003-08-23 22:16:42 +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
ff627bfb0d
update for mingw 3.0 (thanks, Dabb:)
2003-08-15 21:26:44 +00:00
Bill Currie
53448a483e
handle multiple files better and auto-scale
2003-08-13 22:42:52 +00:00
Bill Currie
c9346e806c
now sporting multiple runs (currently 3) and blending
2003-08-12 22:18:51 +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
c73d57e9ee
put the axes behind the graphs and don't skip the first couple frames
2003-08-12 16:24:50 +00:00
Bill Currie
f7fd1d70a2
correct white and add axes with ms and 100 frame ticks
2003-08-12 16:04:00 +00:00
Bill Currie
b3f99a70be
rename cl_timeframes to demo_timeframes and make it /not/ archive.
...
move call to CL_TimeFrames_AddTimestamp from cl_main.c to cl_demo.c.
add a hacky little python script to create a pnm (portable anymap file
format) graph from timeframes.txt
2003-08-12 06:33:13 +00:00
Bill Currie
19cf019ed2
barf when given a bsp file instead of a map file (and don't zap the bsp file
...
in the process!!!)
2003-08-11 20:43:26 +00:00