Commit Graph

121 Commits

Author SHA1 Message Date
8c34a0e6d1 Remove reliance on windows.h 2018-05-18 23:19:50 +10:00
101037b856 Tabs to spaces 2018-05-17 21:19:58 +10:00
0bc8a48dbd Fix off by 1 error in DqnString::Expand() 2018-03-11 21:26:18 +11:00
dc22ba2a02 Const overloads for DqnJson_Get, restore InitLiteralNoAlloc 2018-03-11 01:23:04 +11:00
6fcf111d2d Make library work on unix again 2018-03-09 02:03:05 +11:00
Doyle Thai
540deb4774 Update lib with named bool parameters and minor fixes 2018-02-20 00:21:00 +11:00
Doyle Thai
7f2950b3dd Add slices, make returned bufs are null terminated 2018-02-07 16:39:40 +11:00
Doyle Thai
b0217483db Fix mem leak in hash, add reset tail for allocator 2018-02-05 17:42:27 +11:00
Doyle Thai
701140287f Try separate mem apis for head/tail 2018-02-05 01:50:36 +11:00
Doyle Thai
019aad46ca Write tests for testing realloc stack 2018-02-03 23:11:14 +11:00
Doyle Thai
9be5194b17 Write more tests for push pop to tail 2018-02-03 21:39:15 +11:00
Doyle Thai
b8157a3c9f Draft double-ended stack allocator for temp malloc 2018-02-03 20:58:15 +11:00
Doyle Thai
7228a8b344 Fix memstack free not clearing metadata 2018-02-03 15:51:47 +11:00
Doyle Thai
6a02e38706 Fix printf bug 2018-02-03 13:26:00 +11:00
Doyle Thai
21ff2f43dc Write basic tests for new revamped memstacks 2018-02-03 02:49:54 +11:00
Doyle Thai
1fc49c4fde Cleanup tests to be more structured 2018-02-02 23:26:05 +11:00
Doyle Thai
15a4c6ad22 Revamp MemStack with bounds guarding and simplify api 2018-02-02 19:34:44 +11:00
Doyle Thai
87b7d3362c Return true on resize to 0 for arrays 2018-02-01 00:08:42 +11:00
Doyle Thai
f838cc79bf Add strutil getlastbackslash 2018-01-29 19:03:20 +11:00
Doyle Thai
06b0f25f2a Fix realloc bug destroying memory in stack 2018-01-28 12:43:53 +11:00
Doyle Thai
86d2db397c Update array api 2018-01-26 14:54:03 +11:00
Doyle Thai
47bf005dbf Fix string init with 0 sized literal crash 2018-01-25 18:55:05 +11:00
Doyle Thai
b8aee7cef9 Fix off by 1byte error on tracking string free 2018-01-25 16:43:51 +11:00
Doyle Thai
81c6f4edc3 Natvis: Fix hash table and block display 2018-01-25 12:32:32 +11:00
Doyle Thai
9f25d5a98e Add msvc natvis for better debugging 2018-01-25 12:26:33 +11:00
Doyle Thai
a412bf0bfa Add file copy, better log, iterator for array 2018-01-24 14:58:03 +11:00
Doyle Thai
1464181cc2 Add clear function to hashtable 2018-01-21 21:18:34 +11:00
Doyle Thai
0468024f35 Fix array off by 1 in remove/get 2018-01-21 13:28:53 +11:00
Doyle Thai
7e996981d6 Fix memstack not freeing right size block 2018-01-20 21:08:04 +11:00
Doyle Thai
121c630126 Change memAPI to ptr, add mem info, improve assert 2018-01-20 19:03:29 +11:00
Doyle Thai
2d7b942010 Disable sso strings because problems. 2018-01-19 23:56:25 +11:00
Doyle Thai
398ca0bc96 Add SSO for strings, memStack quick initialiser 2018-01-19 21:52:34 +11:00
Doyle Thai
feeec0c610 Remove useless request api in DqnMemAPI 2018-01-19 13:48:01 +11:00
Doyle Thai
912ca43056 Fix formatting and clean up documentation 2018-01-18 20:25:44 +11:00
Doyle Thai
db25c5997f Minor fixes, add trim whitespace 2018-01-18 16:01:37 +11:00
Doyle Thai
7809185daa Fix string append crash on 0 len 2018-01-06 16:53:53 +11:00
Doyle Thai
fd00b9071c Minor const changes, string fix and name changes 2018-01-06 00:46:44 +11:00
Doyle Thai
5876c16abe Fix array resize crash on 0 initialisation 2018-01-04 16:27:50 +11:00
Doyle Thai
8209593f57 Fix literals not working with strings in structs 2018-01-04 16:07:18 +11:00
Doyle Thai
18967312d6 Clean up DqnFile to be more C++ and minor fixes 2018-01-04 00:40:27 +11:00
Doyle Thai
ee4f8eca17 Finally fix clip rect bug? 2017-12-06 19:08:49 +11:00
Doyle Thai
3d3d741ad6 Add missing default constructor for DqnV2i 2017-11-12 00:14:49 +11:00
Doyle Thai
25d6308a5f List removal for arrays, template specialize sort 2017-11-11 20:08:43 +11:00
Doyle Thai
88bac561ec Update vector and rect api to use constructors 2017-11-10 23:14:50 +11:00
Doyle Thai
2f6624fad7 Make DqnRnd a class, make array memapi aware 2017-11-08 21:32:06 +11:00
Doyle Thai
25098ca74c Add hash table and binary search to library 2017-10-29 20:30:07 +11:00
Doyle Thai
15dad9d8d2 Simplify DqnMemAPI and DqnMemStack api 2017-10-29 12:45:00 +11:00
Doyle Thai
d01e2fbc2f Remove the need for isFreeable in strings 2017-10-29 11:51:16 +11:00
Doyle Thai
b6a3600283 Clean up tests, fix DqnString bug, rename DqnDir 2017-10-29 11:41:26 +11:00
Doyle Thai
3ee5500124 Remove C-style api for strings, fix stack alloc bug 2017-10-28 23:25:17 +11:00