Pietro Gagliardi
|
8c7f1987da
|
And fixed build errors. It works! Now to translate everything else back.
|
2019-06-15 20:06:12 -04:00 |
Pietro Gagliardi
|
83dc1d6065
|
And removed errors.h.
|
2019-06-15 19:59:17 -04:00 |
Pietro Gagliardi
|
c2bace108d
|
And finished rewriting events_errors.h.
|
2019-06-15 19:58:46 -04:00 |
Pietro Gagliardi
|
f966b6ee16
|
Adapted everything to life with C++ and to the new error checking model.
|
2019-06-15 19:53:50 -04:00 |
Pietro Gagliardi
|
c74fc09261
|
Started rewriting the error checks in C++, because ugh.
|
2019-06-15 19:28:47 -04:00 |
Pietro Gagliardi
|
5d63b34904
|
I should probably just switch all this to C++ at this rate.
|
2019-06-14 20:15:39 -04:00 |
Pietro Gagliardi
|
f517742a3c
|
Started rewriting events_errors.c to use a new errors.h that will do all the hard work. We'll need to do slightly more work for this particular case because of the firing stuff, though.
|
2019-06-13 21:20:39 -04:00 |
Pietro Gagliardi
|
ae4bfea10b
|
Started rewriting events_errors.c to mention events less; this will turn into an events.h that will do all the heavy lifting.
|
2019-06-13 20:57:15 -04:00 |
Pietro Gagliardi
|
ab82278a30
|
And got things building. Now to clean up the error macro part.
|
2019-06-13 10:43:44 -04:00 |
Pietro Gagliardi
|
d54f23c0cc
|
Deduplicated the common defer functions.
|
2019-06-13 10:39:40 -04:00 |
Pietro Gagliardi
|
f3b0dc16ab
|
Slight refactoring of the controls test. One more thing to do for now.
|
2019-06-13 10:31:17 -04:00 |
Pietro Gagliardi
|
c1ca78c46e
|
Split the events.c errors test into its own file.
|
2019-06-12 11:12:08 -04:00 |
Pietro Gagliardi
|
47a8ccaf98
|
And filled in the error messages in controls_errors.h.
|
2019-06-12 11:03:21 -04:00 |
Pietro Gagliardi
|
63773f703c
|
Fixed build errors. The test itself will fail at present, but we have some cleanups to do still...
|
2019-06-11 21:29:25 -04:00 |
Pietro Gagliardi
|
e30ed33046
|
Finished rewriting test/controls.c for the initial run. Now to fix errors.
|
2019-06-11 21:23:56 -04:00 |
Pietro Gagliardi
|
28a5cd543a
|
Started writing the uiControl error tests.
|
2019-06-11 12:01:35 -04:00 |
Pietro Gagliardi
|
6903bebe7d
|
Started writing the controls Darwin-specific code and all-platforms tests for real.
|
2019-06-10 23:09:48 -04:00 |
Pietro Gagliardi
|
89f64eb067
|
Added the documentation for macOS uiControl, or what little of it currently exists.
|
2019-06-10 20:11:10 -04:00 |
Pietro Gagliardi
|
7e3d6d2b1c
|
And fixed build and runtime errors. This works! Woo! We can now move on to uiControl for real this time! (Will resolve the TODOs later.)
|
2019-06-10 11:36:44 -04:00 |
Pietro Gagliardi
|
a0fc3187e2
|
And rewrote events.c to use the new error checking framework. Now to fix build and possibly runtime errors.
|
2019-06-10 11:24:33 -04:00 |
Pietro Gagliardi
|
7b10fa729b
|
More TODOs.
|
2019-06-10 10:42:11 -04:00 |
Pietro Gagliardi
|
70ff47cb06
|
Wrote a new file to store the uiEvent error test cases.
|
2019-06-10 10:41:33 -04:00 |
Pietro Gagliardi
|
afbf5f2d59
|
And actually did split the new error testing code into its own file. Next is changing both events.c and controls.c to use it (and yes, that means we can finally start continuing work on controls.c).
|
2019-06-09 22:45:44 -04:00 |
Pietro Gagliardi
|
b34a427077
|
Further refactored noinitwrongthread.c; at this point, the actual check runner can be separated into its own file and used elsewhere.
|
2019-06-09 22:33:45 -04:00 |
Pietro Gagliardi
|
05b1e26ee2
|
Removed some leftover code.
|
2019-06-09 21:18:31 -04:00 |
Pietro Gagliardi
|
97e37e5831
|
Started defining uiControlOSVtable on macOS. I'll need to write the documentation alongside this.
|
2019-06-09 21:16:13 -04:00 |
Pietro Gagliardi
|
5f454a6114
|
Some more refactoring in noinitwrongthread.c. The different components are almost isolated!
|
2019-06-09 21:00:33 -04:00 |
Pietro Gagliardi
|
ee9df0491f
|
Simplified noinitwrongthread.c further. This will form the basis of a simplified general event handler.
|
2019-06-09 19:00:01 -04:00 |
Pietro Gagliardi
|
ef05d40fad
|
Fixed test execution.
|
2019-06-09 18:19:43 -04:00 |
Pietro Gagliardi
|
a0fd823328
|
Just restored TestEventErrors as is for now. There's definitely room for cleanup here.
|
2019-06-09 18:08:50 -04:00 |
Pietro Gagliardi
|
94d638e601
|
And finished rewriting test/noinitwrongthread.c.
|
2019-06-09 16:14:18 -04:00 |
Pietro Gagliardi
|
91c1e8e517
|
And rewrote TestFunctionsFailBeforeInit. This should work nicely.
|
2019-06-09 15:29:03 -04:00 |
Pietro Gagliardi
|
db3de44432
|
Collapsed the strsafe*_impl files. strdup_impl is still a mess, but to fix that we'll need to both clean up the static nonsense and other stuff in testingpriv.c.
|
2019-06-09 14:06:16 -04:00 |
Pietro Gagliardi
|
5f011acc0c
|
Somewhat hackily worked around strdup wonk.
|
2019-06-09 14:03:27 -04:00 |
Pietro Gagliardi
|
24320ce784
|
Disabled the event error tests and started rewriting the no uiInit()/wrong thread checks to use the new programmer error test hooks. I'll also start taking care of the sharedbits cruft now by just providing Strdup and FreeStrdup as utility functions, because bleh.
|
2019-06-09 13:57:02 -04:00 |
Pietro Gagliardi
|
65226ac416
|
Refactored the programmer error test hook to not needlessly pass in the prefix, suffix, or internal flag, and to allow passing in arbitrary data so we can get rid of the global state in the tests. This will make the tests a LOT easier.
|
2019-06-09 13:49:53 -04:00 |
Pietro Gagliardi
|
7486ff6b25
|
Changed the programmer error tests to require a strict match. Now I want to restructure them to both be reusable and to not require global state.
|
2019-06-09 13:44:46 -04:00 |
Pietro Gagliardi
|
a2b9145931
|
Did the same rewording to most of the other programmer errors. Only the first two are left, because I can't think of a good rewording...
|
2019-06-09 13:39:14 -04:00 |
Pietro Gagliardi
|
87a2195027
|
Renamed the uiControl programmer errors to more clearly indicate they are uiControl programmer errors, and reworded their messages to put the function name first.
|
2019-06-09 13:32:31 -04:00 |
Pietro Gagliardi
|
0f41bb2188
|
Made all programmer error functions take the function name as an argument.
|
2019-06-09 13:18:18 -04:00 |
Pietro Gagliardi
|
9b11ec4a6f
|
Changed the IntID error into a uiEvent-specific one.
|
2019-06-09 10:30:47 -04:00 |
Pietro Gagliardi
|
14c80eefb8
|
Started organizing common/programmererrors.h.
|
2019-06-09 10:27:28 -04:00 |
Pietro Gagliardi
|
e808d85e01
|
Added function names to the wrong struct size error.
|
2019-06-09 08:50:12 -04:00 |
Pietro Gagliardi
|
9e05efa091
|
Oh right forgot to clean up error stuff from zOLD.
|
2019-06-09 08:44:30 -04:00 |
Pietro Gagliardi
|
e3a4d34196
|
Started cleaning up zOLD/control stuff now that we are reimplmenting it all.
|
2019-06-09 08:39:51 -04:00 |
Pietro Gagliardi
|
c45ab57bce
|
Started writing control tests. This is going to be fun...
|
2019-06-08 21:38:32 -04:00 |
Pietro Gagliardi
|
822572d395
|
Stubbed out the OS-specific files on macOS so I can actually start writing the uiControl tests.
|
2019-06-08 19:45:09 -04:00 |
Pietro Gagliardi
|
379fc230e5
|
More compile fixes. sharedbits is starting to get really messy.
|
2019-06-08 18:39:59 -04:00 |
Pietro Gagliardi
|
22cc5ad834
|
More error fixing.
|
2019-06-08 18:22:16 -04:00 |
Pietro Gagliardi
|
19fc6f674f
|
Oops, forgot to add controls.c to the build.
|
2019-06-08 18:09:37 -04:00 |