Commit Graph

407 Commits

Author SHA1 Message Date
efe015017a Start reworking dqnmemstack to have unified push/pop interface 2018-07-18 01:53:58 +10:00
0bfca792ee Log DqnJson in unit test, convert MemStack to use constructor 2018-07-18 00:47:13 +10:00
cbf8e37295 Fix QuickSort regression taking a ptr to data causing memory overwrite 2018-07-15 21:45:50 +10:00
c1245619ff Add natural quick sort back for better debugging speed 2018-07-15 20:18:27 +10:00
1c5fdc6ce1 Update quicksort/bsearch to use templates better 2018-07-15 20:09:55 +10:00
9d12c532d1 Add lazy init to array/hash, rename 64bit max num, minor bug fixes 2018-07-15 02:17:34 +10:00
964304d1b7 Use bucketsUsed variable and more error handling for VHashTable 2018-07-14 23:21:57 +10:00
8997364892 Add DqnVHashTable, hash table backed by virtual memory 2018-07-14 23:00:25 +10:00
f1efb6f8f1 Make DqnJson handle more cases 2018-07-13 00:46:08 +10:00
33cf476d29 Move static functions outside of DqnFile 2018-07-10 23:01:18 +10:00
25410c7aac Fix ReadEntireFile bug 2018-07-10 15:52:12 +10:00
7785e35f91 Restore win32 prototypes, add virtual mem allocation and array, add fixed pool 2018-07-10 00:53:54 +10:00
39d75ae5bf Fix DqnFixedString len bug 2018-07-07 01:10:43 +10:00
6fc26c7bb8 Fix DqnJson bug matching property too early 2018-07-05 12:20:19 +10:00
9ebb4f8f23 Fix DqnArray::Insert count bug, misc unix fixes 2018-07-05 11:26:04 +10:00
da4ba37771 Fix return to pool negative free indexes 2018-07-05 01:38:35 +10:00
8b2df0d098 Remove old defer symbol 2018-07-05 01:05:43 +10:00
602cc32744 Add DqnPool and minor cleanup 2018-07-05 01:04:49 +10:00
c5d26f09c4 Fix unit tests, re-fix DqnArray::Insert 2018-07-05 00:58:40 +10:00
a23e2687fe Improve platform defines, update sprintf 2018-07-05 00:47:11 +10:00
a4c7934587 Fix DqnArray and add framework for Winsock 2018-07-04 20:10:11 +10:00
49577e2c27 Merge branch 'master' of https://github.com/Doy-lee/dqn 2018-07-03 23:02:36 +10:00
4ee040b6b0 Improve DqnArray::Insert 2018-07-03 23:01:15 +10:00
a0246bf996 Update for unix compliance again 2018-06-29 18:07:54 +10:00
6df3b32f4e Use simplified array from imgui 2018-06-28 23:25:25 +10:00
86d3418315 Fix DqnArray bugs 2018-06-26 15:50:47 +10:00
7e507ee470 Simplify nix get file size 2018-06-26 00:33:46 +10:00
cf648c2281 Change true/false to yes/no for enums 2018-06-25 20:54:38 +10:00
5d77aa3f4a Simplify DqnJson array iterator, fixed string ctor change 2018-06-25 20:51:18 +10:00
920df31c51 Add VirtualAlloc and fix up platform defines 2018-06-13 23:16:05 +10:00
5dee3d9f89 Simplify DqnRndPCG 2018-06-11 19:16:54 +10:00
0bf1b6d3ff Sprintf returns bytes copied. Add IS_DEBUG flag 2018-06-11 18:40:54 +10:00
d740efdf06 Compact operator overloads for FixedString 2018-06-11 18:03:18 +10:00
056c0b3aea Add DqnFixedString, remove DqnIni, minor cleanup 2018-06-11 16:26:57 +10:00
2c24eacc28 Clean up const func decls and vector constructors 2018-06-09 14:29:19 +10:00
6998fb84de Simplify DqnArray usage (zero is init), add multi-insert 2018-05-28 23:07:29 +10:00
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