Bill Currie
051a572bcc
[build] Dependency checking for all ruamoko code
...
Including dependency on qfcc itself. Getting automake to chooch the way
I want it to chooch can be a pain in the... see AvE
2020-03-03 17:24:53 +09:00
Bill Currie
cdc1f0c5e7
[libr] Treat ruamoko headers as system headers
...
Now that qfcc actually supports them properly.
2020-03-03 15:24:41 +09:00
Bill Currie
bb25057feb
[qwaq] Quickly Workaround Access Qualifications
...
:)
2020-03-03 10:47:34 +09:00
Bill Currie
c2138183dd
[libr] Initialize SetIterator the right way
...
I'd written Set.[rh] after the big rewrite so never noticed the access
error.
2020-03-03 10:43:29 +09:00
Bill Currie
50d39d64cb
[qwaq] Link against build ruamoko libs, not installed
2020-03-03 09:30:20 +09:00
Bill Currie
679744fc7d
[libr] Fix incorrect bounds check on array insert
2020-03-03 00:11:07 +09:00
Bill Currie
d91289ea1b
[qwaq] Remove unnecessary wrefresh calls
2020-03-02 18:43:27 +09:00
Bill Currie
33a07c0f6b
[qwaq] Make command buffer larger for now
...
A small one should be fine once threading is working.
2020-03-02 18:30:58 +09:00
Bill Currie
6f1386fa0d
[qwaq] Test out acs chars and the classes
...
Crashes due to flooding the command buffer, but otherwise works (with
larger buffer).
2020-03-02 18:29:31 +09:00
Bill Currie
b9ab30ff59
[qwaq] Add mvwaddch and ACS support
2020-03-02 18:27:08 +09:00
Bill Currie
a0c4d56668
[qwaq] Continue processing on void commands
...
If the last command in the buffer had no parameters, its length would be
only 2 and thus processing would stop before reading the command from
the buffer.
2020-03-02 18:19:41 +09:00
Bill Currie
fa66e9fc2f
[qwaq] Move queue handling into separate functions
...
This makes it so I need to edit only one place when I get threads
working. Also, it fixes some bugs (eg, panel creation wasn't implemented
correctly).
2020-03-02 18:15:31 +09:00
Bill Currie
d88a091fc6
[qwaq] Use protocols to distinguish object abilities
...
Well, that took a fair bit more than it should have to get working: had
to implement the protocol support in qfcc and engine-side ruamoko.
2020-03-02 15:22:54 +09:00
Bill Currie
92cb3a5285
[qwaq] Flatten the hierarchy and do some cleanup
2020-03-01 18:25:02 +09:00
Bill Currie
4d076da4b6
[qwaq] Fix warning hidden by type alias bug
2020-03-01 16:15:33 +09:00
Bill Currie
df2ed4b086
[qwaq] Move from tools to ruamoko
...
This fixes the dependency issues between qwaq and ruamoko. qwaq is
actually older than ruamoko. That little language feature test has come
a long way.
However, I'm considering moving to non-recursive make, but...
2020-03-01 00:55:15 +09:00
Bill Currie
6fccfdf1b9
Fix a thinko in the save game menu
...
I thought I had to prepend the gamedir when using QFS_FOpenFile (or
QFS_OpenFile in rua).
Nope, it's gamedir based
2020-02-26 18:03:00 +09:00
Bill Currie
383a7fe5e1
Remove File_Open
...
Other than its blocking of access to certain files, it really wasn't
that useful compared to the functions in qfs, and pointless with access
to qfs anyway.
2020-02-26 13:45:14 +09:00
Bill Currie
caf78b5422
Rename ty_none to ty_basic
...
This far better reflects the actual meaning. It is very likely that
ty_none is a holdover from long before there was full type encoding and
it meant that the union in qfcc's type_t had no data. This is still
true for basic types, but only if not a function, field or pointer type.
If the type was function, field or pointer, it was not true, so it was
misnamed pretty much from the start.
2020-02-21 17:52:00 +09:00
Bill Currie
2f18364364
Start work on encoding typedef chains
2020-02-19 21:41:46 +09:00
Bill Currie
a6f3e1753a
Fix ruamoko's hashtab_t typedef
...
Being typedefed directly to a pointer is a holdover from when pointer
declarations were really awkward.
2020-02-19 21:41:46 +09:00
Bill Currie
67e183c8b6
Put the guts of qwaq's reflection code into ruamoko
2020-02-19 21:41:46 +09:00
Bill Currie
39df9c0c87
Fix some more double related warnings
...
Fewer than I expected
2020-02-15 23:49:12 +09:00
Bill Currie
7e7e0526dd
Fix a double constant issue
...
There will be more of these :/
2020-02-15 23:49:12 +09:00
Bill Currie
df7c08a010
Add support for doubles to Ruamoko
...
Only as scalars, I still need to think about what to do for vectors and
quaternions due to param size issues. Also, doubles are not yet
guaranteed to be correctly aligned.
2020-02-15 23:49:12 +09:00
Bill Currie
9248e8cf01
Update for doxygen 1.8.16
2020-02-11 15:22:42 +09:00
Bill Currie
c98d1ff08c
Document some problems with nil
...
While he's a pretty cool character in HZD, he seems to have some
identity problems when in a compiler.
2019-06-09 22:29:51 +09:00
Bill Currie
f163e35f21
Add a builtin to get keydown.
2016-01-10 13:33:05 +09:00
Bill Currie
c25fd410a5
Update doxygen config files for 1.8.9.1
2016-01-04 11:17:09 +09:00
Jeff Teunissen
396338a543
Rua: flesh out docs for BOOL.
2014-10-16 13:05:57 -04:00
Bill Currie
f5501fbf24
Fix a pile of automake deprecation warnings.
...
s/INCLUDES/AM_CPPFLAGS/g
I <3 sed :)
2013-11-24 13:11:50 +09:00
Bill Currie
2e8d9e7636
Correct the menu code to sortof work with the new IMTs.
...
The menu code at least compiles now. It should work for the default IMT
tables (ie, if imt_0 is there).
2013-01-16 20:31:46 +09:00
Bill Currie
2974bedd78
Add ruamoko declarations for the new menu functions.
2013-01-13 20:13:19 +09:00
Bill Currie
4868a245b3
Fix the "for new syntax" FIXME.
...
Empty structs are now (correctly) invalid. The hack of using an empty
struct to represent a handle returned from a builtin has been unnecessary
since opaque structs were implemented: now a pointer to an opaque struct
can be used. This is mostly safe as handles are aways negative and thus
attempting to dereference such a pointer should result in a VM error. It
will be even safer once const is implemented and the pointers can be made
constant (eg, typedef struct handle * const handle;)
2012-12-20 10:10:41 +09:00
Bill Currie
e17d8ac9db
Add ruamoko wrappers for the set api.
...
This includes both normal functions and a Set class (and SetIterator
class). Most of the methods are implemented as builtins.
2012-12-16 13:48:36 +09:00
Bill Currie
7ed490c434
Allow nil when replacing objects in an array.
...
I want this in a little project, but I also want to consult with Deek about
it, so I've only commented out the code.
2012-12-16 13:38:19 +09:00
Bill Currie
814f902e88
Add a new crosshair.
...
Now all 4 slots of the crosshair table are used :)
Also, fix the offset for pic based crosshairs in glsl, and use just one
func for them.
2012-12-12 19:36:18 +09:00
Bill Currie
f358364ef2
Fix assignment of nil to a structure.
...
constfold.c seems to be getting a little long in the tooth :P
2012-12-11 11:53:01 +09:00
Bill Currie
cd62755ce4
Fix some warnings found by qfcc's flow analysis.
...
Ok, maybe it works too well? Nah, not really. It's nice having proper
unisnitialized checks on structs.
2012-12-10 22:20:44 +09:00
Bill Currie
ff0c51e52c
Build our ruamoko stuff with optimizations :)
2012-12-01 11:20:06 +09:00
Bill Currie
2aaa380098
Fix some uninitialized variable warnings.
...
While they're false positives (qfcc doesn't know about noreturn), at least
qfcc is doing its job :)
2012-11-21 10:25:29 +09:00
Bill Currie
db92a7b9f9
Fix an out-by-one error.
...
That "qfvalgrind" is proving worthwhile :)
2012-11-20 19:49:57 +09:00
Bill Currie
abd9704d26
Avoid over-releasing the autorelease pool.
...
It seems that the engine menu code must be calling menu_post too often, but
I don't feel like fixing it just yet.
2012-11-20 14:54:40 +09:00
Bill Currie
951bed6206
Allow the retain count to become 0.
...
With the new retain count scheme, it must reach 0 or double frees won't be
caught.
2012-11-20 14:41:13 +09:00
Bill Currie
d5c831b6da
Add a little test case for accessing types.
...
Using ruamoko to access ruamoko type encodings is actually quite pleasant
:)
2012-11-15 13:40:11 +09:00
Bill Currie
9a53531d3b
Fix a braino in Object's -init.
...
I'd forgotten AutoreleasePool doesn't like receiving -retain when I did the
retainCount change, and thus Object's -init was a little too naive.
2012-11-14 20:45:29 +09:00
Bill Currie
c96718493a
A bit of a cleanup before fixing class type defs.
...
All internal structs now have "proper" names, and fit the naming convention
(eg, obj_module (like objective-c's types, but obj instead of objc). Some
redundant types got removed (holdovers from before proper struct tag
handling).
Also, it has proven to be unnecessary to build internal classes, so
make_class and make_class_struct are gone, too.
2012-11-12 11:12:33 +09:00
Bill Currie
dc22d06905
Fix an out-by-one in the definition of INT_MAX.
...
INT_MAX wound up being INT_MIN :/
2012-11-12 10:28:31 +09:00
Bill Currie
218424d0ae
Add debug.r to libcsqc.
2012-11-09 19:11:30 +09:00
Bill Currie
07e67da838
Add class versions of retain and friends.
...
As class objects don't have retain counts (they're usually static, even!!),
allowing the instance implementations of retain, release, and autorelease
attempt to modify the non-existant retainCount would be a recipe for severe
headaches. We also don't want the retainCount returning "random" values.
2012-11-08 20:41:56 +09:00