Commit Graph

67 Commits

Author SHA1 Message Date
b29b2fc46c Added more recursive macros
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-24 18:32:58 +02:00
e7a184c538 Reimplemented loops with recursion
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-23 17:08:06 +02:00
0f8b624508 Generated typedata for EvTypeData
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-18 22:06:43 +02:00
47d5d79538 Made type methods static for typedata generation in headers
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-18 22:06:08 +02:00
f0253c8fc2 Removed forgotten debug printf
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-18 22:05:43 +02:00
d8981dbb49 Added EV_TOSTR and EV_TOSTRLEN
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-17 22:53:43 +02:00
8e0bce6a53 Fixed ev_vec_push not supporting anonymous variables
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-05-17 20:41:30 +02:00
376bdf151e Update README.md 2022-02-23 09:28:04 +02:00
0d169433a4 Added default overrides in ev_types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-02-01 20:20:43 +02:00
f78561ab59 Fixed EV_WARNING_* for non-MSVC
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:53:40 +02:00
1455b26558 Fixed svec for non-MSVC
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:53:22 +02:00
66c00f6d6f Fixed MSVC compilation issues
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:53:05 +02:00
c49ab87286 Fixed svec warnings on MSVC
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:20:52 +02:00
40017d2ad0 Updated EV_WARNING_* usage in ev_types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:20:24 +02:00
0c35487ab3 Fixed double initialization of Float32
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:20:04 +02:00
9772bf6c43 Updated EV_WARNING_*
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 19:19:41 +02:00
7d8159d194 Added a meson build file
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 16:16:34 +02:00
0f91f5373c Fixed multiple shortnames in ev_vec
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-31 16:16:02 +02:00
94d6c4d8be Added some limitations on ev_svec_t so that it can be used in global scope
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 16:18:39 +00:00
757d9d5ae8 Fixed ev_vec_setlen bug
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 16:18:02 +00:00
7ec5d242aa Moved EV_STR_evstring_MAGIC to header part so that evstr(...) can use it
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 16:17:21 +00:00
34450de16d Parenthesized EV_INVALID and EV_DEFAULT macro expansions
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 16:16:34 +00:00
e0acb5b08a Disabled -Woverride-init in TYPEDATA_GEN
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 15:26:57 +00:00
88e2393000 Added EV_PRAGMA and EV_WARNING_* macros
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 15:23:32 +00:00
c373f03490 Fixed unused-const-variable in ev_types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-30 14:33:34 +00:00
32dc1e1a81 Added a simple str_test.c
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-29 20:01:57 +00:00
3fae966f63 Added EV_VA_OPT_ELSE to ev_macros
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-29 20:01:25 +00:00
b0be90cbba Added initial ev_str implementaiton
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-29 20:00:59 +00:00
9af63bac9c Fixed void pointer dereferencing in ev_types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-23 18:42:11 +00:00
b6e1fdc6fc Removed useless DEFAULT/INVALID
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-07 22:00:36 +00:00
82ad4b4bfb Changed how types are registered
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 23:11:20 +02:00
5b22053ff3 Number types changes
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 22:14:29 +02:00
140a0b4d34 Added EV_REGISTER_TYPE
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 21:42:19 +02:00
2d02e4cc66 Added EV_EQUAL function
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 03:55:17 +02:00
57f0533f84 Added bool to ev_internal
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 03:37:23 +02:00
af1ab56872 Changed ev_hash_fn signature and added default murmur3
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 03:26:03 +02:00
b68f56840e Changed murmur3 to take a 64-bit seed
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 03:25:38 +02:00
025acf4c97 Added ev_hash for hash functions
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 03:18:15 +02:00
0557a45481 Added EV_FORCEINLINE
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-05 03:18:01 +02:00
450ba063cf Added ev_vec.h
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-03 23:04:40 +02:00
2cf3f76e70 Fixed typo in ev_types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-03 23:04:25 +02:00
aecab5e5d7 Added const macros for numeric types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-03 23:04:09 +02:00
e0cb295f65 Updated ev_types
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-03 13:56:27 +02:00
bd2b3acec6 Added EV_VA_OPT
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-03 00:02:16 +02:00
e199c69315 Added some macros for internal usage
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-03 00:01:59 +02:00
811f644dec Fixed EV_VA_ARGS_NARG for zero-size
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-02 22:12:30 +02:00
4080e7299b Started using ev_types in ev_numeric, added ev_internal
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-02 15:13:17 +02:00
2ce705baee Added ev_types for type metadata management
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-02 14:53:00 +02:00
30e40047c5 Merged ev_types and ev_limits to ev_numeric
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-02 14:51:59 +02:00
c5b6d7ba15 Fixed EV_FOREACH's UDATA variant
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2022-01-02 14:51:08 +02:00