Commit Graph

  • f45aed10ee Remove some std dependency, reorder code, use memcmp macro.. doylet 2021-03-11 20:14:59 +11:00
  • 8f8c954998 Add some string split functions, fix warnings doylet 2021-02-23 20:49:43 +11:00
  • eb2d542960 dqn: Move templates away from prototype doylet 2021-02-16 23:49:07 +11:00
  • 5a9260f95b tests: Fix unit tests again doylet 2021-02-16 22:33:54 +11:00
  • b5677b18c5 dqn: Add some more string helper functions doylet 2021-02-16 22:22:28 +11:00
  • 4cf2426193 hash: Add murmurhash, remove some dead functions doylet 2021-02-10 20:41:28 +11:00
  • 94057baad2 Some allocation stuff doylet 2020-11-17 22:19:28 +11:00
  • 145c62db51 Remove unused project file doylet 2020-10-08 01:13:13 +11:00
  • f728b3c292 Give name to anonymous v2 union, improve CRTAllocator doylet 2020-10-08 01:12:03 +11:00
  • 38f25c51d7 idk so many updates, lost track of what changed doylet 2020-09-20 17:15:07 +10:00
  • 76bd54d9b0 len->size, make some functions null allocator aware doylet 2020-07-18 00:49:21 +10:00
  • 73f8a8bcb9 Re-organize bulk of library code doylet 2020-07-17 00:12:27 +10:00
  • 6cf6751013 Remove realloc, rename AllocateMetadata doylet 2020-07-15 19:18:14 +10:00
  • 4bc0aec917 Add stats for allocator, remove MAX_ for arrays doylet 2020-06-22 20:58:23 +10:00
  • 0c55abd4c3 Specify ZeroMem on allocations, rewrite rect intersect, configurable asserts doylet 2020-06-02 22:48:20 +10:00
  • 419a505ea9 Paramterize ZeroMem on allocations, allow override malloc and memcmp doylet 2020-05-20 01:10:11 +10:00
  • 6ee5b8e49e Assert if reads like an if statement, fix Dqn file bug doylet 2020-05-07 01:24:32 +10:00
  • 44d8f970b3 Rename Dqn_MemArena to Dqn_ArenaAllocator doylet 2020-04-30 01:01:10 +10:00
  • 5173478766 Fix Dqn_Bit check bugs doylet 2020-04-19 14:31:34 +10:00
  • 927937df98 Rewrite Dqn_StringBuilder, stddef for ptrdiff_t doylet 2020-04-17 18:17:08 +10:00
  • 2f681515f6 Remove old deprecated dqn lib doylet 2020-04-15 00:42:18 +10:00
  • 21104f85d5 Reorganize code, fix malloc bug, allow overriding defaults doylet 2020-04-15 00:40:12 +10:00
  • 32fd82d740 Fix bit flag helper function bugs doylet 2020-04-06 00:29:18 +10:00
  • ce63bb7755 Default allocator = null, move allocator definitions doylet 2020-04-05 08:50:30 +10:00
  • f743c230e7 Add some helper functions doylet 2020-04-01 01:08:59 +11:00
  • ea8e29dc9f Slice: Fix arena->allocator, buf->data, add array->slice doylet 2020-03-26 00:34:38 +11:00
  • 1d2fa7f9ca Fix wrong param arena->allocator doylet 2020-03-24 08:10:19 +11:00
  • 35ade5dfc1 Add alignment to allocators doylet 2020-03-23 23:33:31 +11:00
  • f95836c5d5 Allocator: Rename data->user_context, File: Use allocators doylet 2020-03-14 10:32:25 +11:00
  • 2f7ce338a8 Add Allocator stats, StringBuilder len doesn't include null terminator doylet 2020-02-23 01:19:59 +11:00
  • 65cbe4b493 Add Dqn_String and update some arenas to allocators doylet 2020-02-08 18:47:48 +11:00
  • cd9ccfebe2 Make more /wall compliant doylet 2020-01-31 21:02:26 +11:00
  • f67d97ec3d Dqn_Rect_Intersection, remove Dqn_FixedStack, minor fixes doylet 2020-01-18 02:01:25 +11:00
  • 4bd8691076 Add Dqn_U64 string converter and time to seconds macros doylet 2019-11-02 00:00:39 +11:00
  • a11857690f Nullptr check for top_mem_block on reserve doylet 2019-10-29 22:22:35 +11:00
  • d463fcbda8 Move stb define to implementation and fix compile error for string builder doylet 2019-09-30 22:58:02 +10:00
  • 4a57ec6b1e Forward declare stuff for linux doylet 2019-09-24 14:13:29 +10:00
  • 9dd058a5f0 Add soft asserts, fixed string test, conditional asserts doylet 2019-09-23 23:21:14 +10:00
  • 4150864d59 debugbreak typo and switch to memset doylet 2019-09-21 10:14:03 +10:00
  • e63e047550 Remove fixed size concept from MemArena doylet 2019-09-20 21:29:57 +10:00
  • 1c2b67892f Begin writing some Linux compatible changes doylet 2019-09-20 16:03:09 +10:00
  • d31c63cbb7 Add unit tests for allocators/arrays doylet 2019-09-19 21:49:11 +10:00
  • b34226498c Minor formatting doylet 2019-09-10 21:35:18 +10:00
  • 3b38cca63e Update usage of Dqn.h in Dqn_UnitTests.cpp doylet 2019-09-03 23:19:03 +10:00
  • 26ec804fd8 Fix generated output example for DqnHeader doylet 2019-08-27 22:32:27 +10:00
  • ab232ee88b Gate LOCAL_PERSIST and FILE_SCOPE to dqn namespace doylet 2019-08-27 22:32:04 +10:00
  • 96b7c05daf Delete DqnInspect, it's too broken. Replace with new one doylet 2019-08-27 22:17:59 +10:00
  • c36ea18a64 Implement DQN_HEADER_COPY_BEGIN/END ranged copy doylet 2019-08-26 23:56:50 +10:00
  • 0d0009ad5c Add a way to read comments in header file doylet 2019-08-26 23:24:22 +10:00
  • e2a3fc5bed Fix extra \n being grabbed in return type parsing doylet 2019-08-24 16:00:09 +10:00
  • 95272e77ee Write PoC simpler header generator code doylet 2019-08-24 15:43:14 +10:00
  • cee2573b00 Do some renaming to Dqn_* doylet 2019-08-24 14:20:53 +10:00
  • acdf4974f9 Fix bugs in making linked buffers doylet 2019-08-24 13:38:58 +10:00
  • bfd3829259 Add dqn lib and some new unit tests doylet 2019-08-24 11:39:12 +10:00
  • acf456811c Make enum count constexpr doylet 2019-05-10 10:48:58 +10:00
  • 05652be832 Serialize the base type without ptr and const modifiers doylet 2019-05-05 15:39:49 +10:00
  • fbcbd84a1b Generate a unique ID for each inspected struct and member doylet 2019-05-04 16:01:23 +10:00
  • 35ac1b4c53 Replace , in templates to _ in code gen, allow disabling of generated files via #defines doylet 2019-05-04 12:08:10 +10:00
  • 5dacfc6ae1 Return boolean type directly in metadata functions doylet 2019-05-03 21:53:20 +10:00
  • fbba79ee4a Change inspect function macro to DQN_INSPECT_FUNCTION doylet 2019-05-03 20:23:14 +10:00
  • 1890745719 Fix -1 inf loop, include comments in prototype inspect, fix unref type in inspect struct doylet 2019-05-02 22:21:25 +10:00
  • 1c573478c6 Support basic container template introspection doylet 2019-05-02 20:39:31 +10:00
  • bb9fd123e3 Store the compile time size of struct members doylet 2019-04-22 16:00:33 +10:00
  • f0684b4113 Fix bug not correctly parsing template expression doylet 2019-04-22 15:41:22 +10:00
  • 98f0402916 Add more metadata to struct members doylet 2019-04-22 15:41:05 +10:00
  • b9c4b080f2 Store the pod_struct_offset of members doylet 2019-04-22 02:18:28 +10:00
  • 455d9bcbfc Save the decl type in struct members as well doylet 2019-04-22 01:28:59 +10:00
  • c444d50d17 Fix some ordering issues doylet 2019-04-06 01:30:09 +11:00
  • 41ac05b401 Implement DqnInspectEnum_Count function doylet 2019-04-05 23:18:54 +11:00
  • 3c447706c9 Finish metadata system for struct members, fix parsing bugs for consts doylet 2019-04-05 23:09:07 +11:00
  • 4a794b2492 Begin drafting up improved parsing/metadata reflection doylet 2019-04-05 01:03:46 +11:00
  • a6c05a950e Allow arbitrary meta properties on enum fields doylet 2019-04-01 00:51:14 +11:00
  • 40f72c576e Return string length for enum strings doylet 2019-03-24 16:09:20 +11:00
  • a38ef363db Align nicely generated prototypes to ease reading doylet 2019-03-24 16:02:41 +11:00
  • a91eb241c4 Add msvc project file doylet 2019-03-23 16:41:59 +11:00
  • a2c4ca02a9 Add support for var args as a function parameter doylet 2019-03-23 16:41:22 +11:00
  • b61ad4a51a Add support for funciton default param initialiser doylet 2019-03-23 16:08:12 +11:00
  • 2f750ecc52 Support templates in function arguments doylet 2019-03-21 00:52:31 +11:00
  • f2cbbc3a8c Support more complex function return types doylet 2019-02-26 23:23:43 +11:00
  • a325ea6130 Add macro for inspecting prototypes, fix string default val bug doylet 2019-02-26 02:29:31 +11:00
  • b298eae175 Add ability to auto generate function prototypes doylet 2019-02-26 02:15:51 +11:00
  • bdb6ca3352 Remove old readme doylet 2019-02-23 15:42:11 +11:00
  • e9f824ee08 Move readme to root doylet 2019-02-23 15:41:53 +11:00
  • 021c65316e Add readme doylet 2019-02-23 15:41:14 +11:00
  • da955dbb73 Update examples and documentation doylet 2019-02-23 15:23:40 +11:00
  • db04f7d9f0 Add partial template parsing doylet 2019-02-23 14:59:03 +11:00
  • 5297511118 Partial support for fixed sized arrays doylet 2019-02-23 14:38:41 +11:00
  • 13ed8b71c9 Update test file to be more compliant doylet 2019-02-23 14:22:09 +11:00
  • a44603d3ca Support pointer asterisks syntax doylet 2019-02-23 14:04:35 +11:00
  • 2acaebaf77 Handle const struct declarations doylet 2019-02-23 13:19:36 +11:00
  • 51d30eb3bd Support comma separated decls in struct doylet 2019-02-23 13:03:10 +11:00
  • 83802fcde3 Update test file to use updated macros doylet 2019-02-23 12:32:08 +11:00
  • 97b81bceaf Rename to DqnInspect, clean up, better docs doylet 2019-02-23 12:26:19 +11:00
  • a0caf1296d Correctly generate valid CPP reflected metadata doylet 2019-02-23 12:03:36 +11:00
  • dc73407721 Flesh out DqnReflect_StructMember to support metadata doylet 2019-02-23 02:25:19 +11:00
  • e5e699c05f Unify linked list for cpp decls doylet 2019-02-23 01:54:27 +11:00
  • 2cd7acaacb Add basic CPP struct reflection doylet 2019-02-22 23:15:39 +11:00
  • 28a1fe8b24 Add DqnReflect, deprecate old library doylet 2019-02-21 00:22:21 +11:00
  • a38d7a7cb7 Tweak dqn logger display and printing doylet 2018-12-16 02:23:04 +11:00
  • 2134b56ed6 Fix old reference to Dqn_vsnprintf doylet 2018-12-16 02:00:36 +11:00