Pietro Gagliardi
|
cd2d64c228
|
Started reintegrating the noinitwrrongthread.cpp cases. Also made it C instead of C++ because maybe Plan 9 one day??? Either way, not ready to test yet.
|
2020-01-21 15:31:41 -05:00 |
Pietro Gagliardi
|
4d78b5a3ef
|
Migrated noinitwrongthread.c.
|
2019-06-15 20:17:45 -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
|
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
|
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
|
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
|
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
|
3f4765d116
|
Renamed diffx() to diff().
|
2019-06-02 01:59:08 -04:00 |
Pietro Gagliardi
|
0c673acf70
|
Got rid of all the diff() macros; the replacement, currently called diffx(), just produces the requisite format string. Next up is renaming diffx() to diff() and making sure things work.
|
2019-06-02 01:51:40 -04:00 |
Pietro Gagliardi
|
5d1e6a0cf2
|
Began handling all the other cases. diff() and diff_2str() go away next.
|
2019-06-02 01:36:53 -04:00 |
Pietro Gagliardi
|
48cd6e1dd8
|
Cleaned #include directives so C standard library headers are sorted and so each source file only includes one header file. This makes things clenaer, and alos allows us to more properly strip unneeded headers later.
|
2019-06-01 09:27:17 -04:00 |
Pietro Gagliardi
|
a93f5c8f53
|
Split the strsafe strncpy() into its own header file and simplified its usage a bit.
|
2019-05-31 22:34:34 -04:00 |
Pietro Gagliardi
|
7d0f8403ab
|
Fixed build errors on other platforms. This is a headache and a half :D I should split the files into strsafe_vsnprintf and strsafe_strncpy, but I want to share this file as is in one piece for now.
|
2019-05-31 22:07:51 -04:00 |
Pietro Gagliardi
|
a17b7c8c14
|
Fixed build errors and simplified error handling in test/noinitwrongthread.c. Now to test this at runtime on all platforms.
|
2019-05-31 11:17:11 -04:00 |
Pietro Gagliardi
|
644e188e05
|
And rewrote strncpy(), since strncpy_s() also exists. Now to test the build.
|
2019-05-31 10:38:47 -04:00 |
Pietro Gagliardi
|
664cf26cdc
|
Changed strcpy() to strncpy(). Let's build on Windows!
|
2019-05-31 02:58:57 -04:00 |
Pietro Gagliardi
|
1814745646
|
Wrote a wrapper for vsnprintf() that calls _vcsprintf()/vsnprintf_s() on Windows, because lol. I'm going to try switching from strcpy() to strncpy() for the other cases; let's see if this works.
|
2019-05-31 02:52:51 -04:00 |
Pietro Gagliardi
|
84a4fd8915
|
And wrote it on Windows. Okay, now we can FINALLY start working on controls!!!!!
|
2019-05-29 01:02:15 -04:00 |
Pietro Gagliardi
|
cceae4845e
|
Fixed build issues and added more cases to allcalls.h. I'm going to fix the lack of idnent on the diff()s before continuing.
|
2019-05-28 22:53:40 -04:00 |
Pietro Gagliardi
|
b5927353e0
|
Started work to test that functions dislike being called before uiInit() or on a different thread; better to do it now than later.
|
2019-05-28 21:54:13 -04:00 |