19 Commits

Author SHA1 Message Date
Bert Belder
33a6ee6889
util: fix missing <assert.h> include 2018-05-04 02:45:40 +02:00
Bert Belder
2e4627ba4a
util: remove safe_container_of() macro 2018-05-04 02:45:40 +02:00
Bert Belder
7c52fee8be
util: fix comments about polyfills 2018-05-03 14:40:52 +02:00
Bert Belder
2af6b901ba util: define static_assert even if clang pretends to be msvc 2017-12-10 05:51:48 +01:00
Bert Belder
b7ab093531 util: fix typo in _SSIZE_T_DEFINED 2017-12-09 23:28:23 +01:00
Bert Belder
206dff3f6a util: don't redefine static_assert if it's already defined 2017-12-09 23:28:19 +01:00
Bert Belder
ac0f54621b util: enable polyfills for gcc 2017-12-08 19:41:40 +01:00
Bert Belder
2b57c726c8 util: move 'unused_fn' macro to from rb.h to util.h 2017-12-08 19:34:52 +01:00
Bert Belder
1ad34ec3f3 util: rename 'unused' macro to 'unused_var' 2017-12-08 19:34:52 +01:00
Bert Belder
99ce867424 src: polyfill the 'include' keyword for Visual Studio 2013 2017-12-07 04:41:51 +01:00
Bert Belder
2fc0bafb49 src: rename preprocessor constants 2017-11-21 15:04:37 +01:00
Bert Belder
e3dda41f53 util: consistent naming 2017-09-26 21:14:44 +02:00
Bert Belder
3642064c17 util: reorder the flavors of container_of 2017-09-26 02:14:53 +02:00
Bert Belder
1e24f44238 util: add safe_container_of() macro definition 2017-09-25 17:51:43 +02:00
Bert Belder
773d9cace3 util: add static_assert() polyfill for clang 2017-09-23 13:58:20 +02:00
Bert Belder
2b3fddafd1 util: add unused() macro 2017-09-10 20:40:44 +02:00
Bert Belder
45afb2268e util: add container_of() macro 2017-09-04 07:27:11 +02:00
Bert Belder
e7673137be util: s/ARRAY_COUNT/array_count/ 2017-09-04 00:37:28 +02:00
Bert Belder
f2cc02abc0 util: move definitions to util.h 2017-09-04 00:35:04 +02:00