Commit Graph

251 Commits

Author SHA1 Message Date
doyle 6d22734aaf dqn: Use defer loops for testing framework 2023-03-12 11:07:23 +11:00
doyle b22c7dbfce dqn: Pull changes from private projects 2023-03-12 01:28:17 +11:00
doyle 1048b79045 dqn: Update fixed array/string implementation 2022-11-25 00:35:53 +11:00
doyle 5c1ed1db8c jsonwriter: Update to jsonbuilder, fix some bugs 2022-11-24 00:12:21 +11:00
doyle ea53a322f5 dqn: Fix wrong naming convention for Dqn_Arena 2022-10-15 19:47:49 +11:00
doyle 1d186b49f1 dqn: Add unit tests for binary split 2022-10-15 17:26:31 +11:00
doyle 3cac240aa3 dqn: Forward Dqn_String8 implementation to Dqn_CString8 2022-10-15 17:12:13 +11:00
doyle bfda589b2c dqn: Change convention to <lib>_<datastructure>_<function> for consistency 2022-10-12 19:17:51 +11:00
doyle c5c211f0a4 dqn: Reintroduce Dqn_Allocator to the API 2022-10-09 20:51:23 +11:00
doyle 3fc2e87571 dqn: Rename String to String8 for consistency w/ String16 2022-08-06 16:55:51 +10:00
doyle 4056e19727 dqn: Rewrite crappy arena and string implementations 2022-08-06 16:43:20 +10:00
doyle 721c059c4e dqn: Add virtual memory funtions 2022-02-17 00:59:51 +11:00
doyle dc6cdf37f7 dqn_align: Remove unused functions 2022-02-17 00:38:06 +11:00
doyle 49eb8eb88a Simplify arena implementation 2022-02-17 00:36:45 +11:00
doyle 87c81d0861 Make dqn library work on x86 2022-01-02 00:07:28 +11:00
doyle bb14d9cd7a Add win32 read/write, standardized logging convention 2021-12-24 00:18:41 +11:00
doyle 2a433e0075 Remove outdated win32 #defines, ensure HMODULE is avail 2021-12-19 16:37:17 +11:00
doyle 15568a7919 Add search List api, add DPI awareness func, reduce win32 noise 2021-12-19 16:29:35 +11:00
doyle 9d0b0a2982 Fix Dqn_FixedArray name convention, fix Windows build 2021-12-19 00:08:19 +11:00
doyle 05fe604f5c Add experimental win32 http, tester lib 2021-12-17 00:07:33 +11:00
doyle c5bb86cabc Rewrite tests v2, and remove all the extra state 2021-09-24 23:41:58 +10:00
doyle f6ae4ad2a0 Update naming convention of library 2021-09-24 22:29:34 +10:00
doyle 37ae9b0e40 Rename the files back to enforce lower-case 2021-09-19 21:54:15 +10:00
Doyle 28a1fe8b24 Add DqnReflect, deprecate old library
They're horrible. I'm able to write better versions now.
2019-02-21 00:22:21 +11:00
Doyle a38d7a7cb7 Tweak dqn logger display and printing 2018-12-16 02:23:04 +11:00
Doyle 2134b56ed6 Fix old reference to Dqn_vsnprintf 2018-12-16 02:02:08 +11:00
Doyle 8ba888c5e1 Add buffer helper 2018-12-16 01:58:11 +11:00
Doyle b1c7763ec6 Don't decorate stbsp 2018-12-13 00:36:19 +11:00
Doyle 1d62894f75 Greatly simplify DqnFixedString 2018-12-13 00:23:02 +11:00
Doyle 20fc9cbbaf Fix dqn lib and misc bugs 2018-09-13 23:58:48 +10:00
Doyle 650126f039 Revamp memory allocation system 2018-09-10 22:49:17 +10:00
Doyle fd228d092b Head/Tail adaptive memory stack push 2018-09-03 00:02:32 +10:00
Doyle 43bc710dbd Simplify memstack api 2018-09-02 21:17:14 +10:00
Doyle 4f665562f1 Add default allocation type for memstacks, operator bool for slices 2018-09-02 13:28:19 +10:00
Doyle a0b64be71b Simplify memory api to dqnallocator 2018-08-30 01:04:56 +10:00
Doyle 3501dd41c1 Add more default hashing procs, name changes, Dqn_EatLine 2018-08-28 00:25:08 +10:00
Doyle T e0fc9f7b44 Add DqnBuffer, improve memstack macros 2018-08-19 11:59:04 +10:00
Doyle T cfb1dc9d19 Initial dqn logger implementation 2018-08-18 16:14:29 +10:00
Doyle T f8a5853862 Update DqnWin32 error handling 2018-08-18 16:08:29 +10:00
Doyle T a9c351be61 Switch to snake case for var decls 2018-08-05 17:30:54 +10:00
Doyle T f30cf8e580 Fix dqnjson failing on neg ints 2018-08-03 23:59:30 +10:00
Doyle T 2c80e53089 Add const iterator for arrays, remove head/tail API for memstacks 2018-08-03 23:30:58 +10:00
Doyle T ed3f11dc7b Remove DqnHashTable, add DqnString tests 2018-07-30 00:34:00 +10:00
Doyle T 4e6d803605 Add Reserve and Cmp to DqnString_ rewrite 2018-07-29 19:02:32 +10:00
Doyle T 7ac814a625 Begin rewriting DqnString 2018-07-29 16:15:23 +10:00
Doyle T 21d04aa62c Fix lazy init DqnMemStack bug, add make dir 2018-07-29 15:09:35 +10:00
Doyle T 9b1223d5de Simplify catalog API 2018-07-28 17:40:57 +10:00
Doyle T 2eff450a72 Add DqnFile_WriteAll and convenience flag FileReadWrite 2018-07-28 15:16:01 +10:00
Doyle T e2dbf2816a Fix invalid iterator in empty hash table 2018-07-28 14:41:38 +10:00
Doyle T afd65dd83c Fix unix build issues? 2018-07-27 14:43:39 +10:00
Doyle T 6d6565c605 Cleanup DqnVHashTable, FixedString and add DqnCatalog 2018-07-25 01:33:31 +10:00
Doyle T 34907eeb04 Refactor DqnVHashTable to be simpler 2018-07-24 23:05:08 +10:00
Doyle T 71a1446fe0 Add post fix/prefix operator++ and arbitrary operator+- 2018-07-24 20:44:01 +10:00
Doyle T fc11e9ac0e Allow unordered iteration over hash table 2018-07-24 00:05:43 +10:00
Doyle T c876f2af0b Minor dqnmemstack annotation clean up 2018-07-23 00:12:11 +10:00
Doyle T be4762c3f7 Remove non-used tracker variables 2018-07-22 23:59:11 +10:00
Doyle T c282097a1f Update DqnMemStack to use struct for metadata 2018-07-22 23:53:08 +10:00
Doyle T efe015017a Start reworking dqnmemstack to have unified push/pop interface 2018-07-18 01:53:58 +10:00
Doyle T 0bfca792ee Log DqnJson in unit test, convert MemStack to use constructor 2018-07-18 00:47:13 +10:00
Doyle T cbf8e37295 Fix QuickSort regression taking a ptr to data causing memory overwrite 2018-07-15 21:45:50 +10:00
Doyle T c1245619ff Add natural quick sort back for better debugging speed 2018-07-15 20:18:27 +10:00
Doyle T 1c5fdc6ce1 Update quicksort/bsearch to use templates better 2018-07-15 20:09:55 +10:00
Doyle T 9d12c532d1 Add lazy init to array/hash, rename 64bit max num, minor bug fixes 2018-07-15 02:17:34 +10:00
Doyle T 964304d1b7 Use bucketsUsed variable and more error handling for VHashTable 2018-07-14 23:21:57 +10:00
Doyle T 8997364892 Add DqnVHashTable, hash table backed by virtual memory 2018-07-14 23:00:25 +10:00
Doyle T f1efb6f8f1 Make DqnJson handle more cases 2018-07-13 00:46:08 +10:00
Doyle T 33cf476d29 Move static functions outside of DqnFile 2018-07-10 23:01:18 +10:00
Doyle T 25410c7aac Fix ReadEntireFile bug 2018-07-10 15:52:12 +10:00
Doyle T 7785e35f91 Restore win32 prototypes, add virtual mem allocation and array, add fixed pool 2018-07-10 00:53:54 +10:00
Doyle T 39d75ae5bf Fix DqnFixedString len bug 2018-07-07 01:10:43 +10:00
Doyle T 6fc26c7bb8 Fix DqnJson bug matching property too early 2018-07-05 12:20:19 +10:00
Doyle T 9ebb4f8f23 Fix DqnArray::Insert count bug, misc unix fixes 2018-07-05 11:26:04 +10:00
Doyle T da4ba37771 Fix return to pool negative free indexes 2018-07-05 01:38:35 +10:00
Doyle T 602cc32744 Add DqnPool and minor cleanup 2018-07-05 01:04:49 +10:00
Doyle T c5d26f09c4 Fix unit tests, re-fix DqnArray::Insert 2018-07-05 00:58:40 +10:00
Doyle T a23e2687fe Improve platform defines, update sprintf 2018-07-05 00:47:11 +10:00
Doyle T 49577e2c27 Merge branch 'master' of https://github.com/Doy-lee/dqn 2018-07-03 23:02:36 +10:00
Doyle T 4ee040b6b0 Improve DqnArray::Insert 2018-07-03 23:01:15 +10:00
Doyle T a0246bf996 Update for unix compliance again 2018-06-29 18:07:54 +10:00
Doyle T 6df3b32f4e Use simplified array from imgui 2018-06-28 23:25:25 +10:00
Doyle T 86d3418315 Fix DqnArray bugs 2018-06-26 15:50:47 +10:00
Doyle T 7e507ee470 Simplify nix get file size 2018-06-26 00:33:46 +10:00
Doyle T cf648c2281 Change true/false to yes/no for enums 2018-06-25 20:54:38 +10:00
Doyle T 5d77aa3f4a Simplify DqnJson array iterator, fixed string ctor change 2018-06-25 20:51:18 +10:00
Doyle T 920df31c51 Add VirtualAlloc and fix up platform defines 2018-06-13 23:16:05 +10:00
Doyle T 5dee3d9f89 Simplify DqnRndPCG 2018-06-11 19:16:54 +10:00
Doyle T 0bf1b6d3ff Sprintf returns bytes copied. Add IS_DEBUG flag 2018-06-11 18:40:54 +10:00
Doyle T d740efdf06 Compact operator overloads for FixedString 2018-06-11 18:03:18 +10:00
Doyle T 056c0b3aea Add DqnFixedString, remove DqnIni, minor cleanup 2018-06-11 16:26:57 +10:00
Doyle T 2c24eacc28 Clean up const func decls and vector constructors 2018-06-09 14:29:19 +10:00
Doyle T 6998fb84de Simplify DqnArray usage (zero is init), add multi-insert 2018-05-28 23:07:29 +10:00
Doyle T 8c34a0e6d1 Remove reliance on windows.h 2018-05-18 23:19:50 +10:00
Doyle T 101037b856 Tabs to spaces 2018-05-17 21:19:58 +10:00
Doyle T 0bc8a48dbd Fix off by 1 error in DqnString::Expand() 2018-03-11 21:26:18 +11:00
Doyle T dc22ba2a02 Const overloads for DqnJson_Get, restore InitLiteralNoAlloc 2018-03-11 01:23:04 +11:00
Doyle T 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