UNPL
Description
Build an identifier unique to the source line by concatenating base with __LINE__. Used by Scope / ScopeWith and other multi-temp expansion macros to introduce macro-local temporaries that cannot collide with each other across nested or sibling expansions on different lines.
Usage example (from documentation)
for (int UNPL(idx) = 0; ...) // expands to `idx<N>` where N = __LINE__
Success
Resolves to the identifier <base><LINE>.
Failure
Macro cannot fail. Two expansions on the same source line produce the same identifier – callers needing multiple temps on one line must pass distinct base prefixes.
Usage example (Cross-references)
Usage examples (Cross-references)
break; \
} \
StrIter UNPL(saved_si) = si; \
si = JSkipWhitespace(si); \
char UNPL(jr_c); \
StrIter UNPL(saved_si) = si; \
si = JSkipWhitespace(si); \
char UNPL(jr_c); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '{') { \
LOG_ERROR("Invalid object start. Expected '{'."); \
si = JSkipWhitespace(si); \
char UNPL(jr_c); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '{') { \
LOG_ERROR("Invalid object start. Expected '{'."); \
si = UNPL(saved_si); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '{') { \
LOG_ERROR("Invalid object start. Expected '{'."); \
si = UNPL(saved_si); \
break; \
} \
StrIterMustNext(&si); \
si = JSkipWhitespace(si); \
StrIter UNPL(read_si); \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
si = JSkipWhitespace(si); \
StrIter UNPL(read_si); \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
StrIter UNPL(read_si); \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
bool UNPL(failed) = false; \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
UNPL(failed) = true; \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
} \
Str key = StrInit(&alloc); \
UNPL(read_si) = JReadString(si, &key); \
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to read string key in object. Invalid JSON"); \
Str key = StrInit(&alloc); \
UNPL(read_si) = JReadString(si, &key); \
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to read string key in object. Invalid JSON"); \
StrDeinit(&key); \
LOG_ERROR("Failed to read string key in object. Invalid JSON"); \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
break; \
} \
si = UNPL(read_si); \
si = JSkipWhitespace(si); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != ':') { \
si = UNPL(read_si); \
si = JSkipWhitespace(si); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != ':') { \
LOG_ERROR("Expected ':' after key string. Failed to read JSON"); \
StrDeinit(&key); \
LOG_ERROR("Expected ':' after key string. Failed to read JSON"); \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
StrIterMustNext(&si); \
si = JSkipWhitespace(si); \
StrIter UNPL(si_before_read) = si; \
{ reader } \
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
StrIter UNPL(si_before_read) = si; \
{ reader } \
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
StrIter UNPL(skip_si) = JSkipValue(si); \
if (StrIterIndex(&UNPL(skip_si)) == StrIterIndex(&si)) { \
{ reader } \
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
StrIter UNPL(skip_si) = JSkipValue(si); \
if (StrIterIndex(&UNPL(skip_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to parse value. Invalid JSON."); \
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
StrIter UNPL(skip_si) = JSkipValue(si); \
if (StrIterIndex(&UNPL(skip_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to parse value. Invalid JSON."); \
StrDeinit(&key); \
LOG_ERROR("Failed to parse value. Invalid JSON."); \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
break; \
} \
si = UNPL(skip_si); \
} \
StrDeinit(&key); \
StrDeinit(&key); \
si = JSkipWhitespace(si); \
UNPL(expect_comma) = true; \
} \
if (!UNPL(failed)) { \
UNPL(expect_comma) = true; \
} \
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
} \
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
#define JR_STR(si, str) \
do { \
Str UNPL(my_str) = StrInit(&alloc); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \ do { \
Str UNPL(my_str) = StrInit(&alloc); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} while (0) Str UNPL(my_str) = StrInit(&alloc); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} while (0) do { \
if (!StrCmp(&key, (k))) { \
Str UNPL(my_str) = StrInit(&alloc); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
if (!StrCmp(&key, (k))) { \
Str UNPL(my_str) = StrInit(&alloc); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} \
Str UNPL(my_str) = StrInit(&alloc); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} \
} while (0)- In
Allocator.h:630:
///
#define Scope(name, AllocType) \
for (AllocType UNPL(scope_user) = AllocType##Init(), \
UNPL(scope_internal) = AllocType##Init(), \
*UNPL(scope_loop) = &UNPL(scope_user); \- In
Allocator.h:631:
#define Scope(name, AllocType) \
for (AllocType UNPL(scope_user) = AllocType##Init(), \
UNPL(scope_internal) = AllocType##Init(), \
*UNPL(scope_loop) = &UNPL(scope_user); \
UNPL(scope_loop); \- In
Allocator.h:632:
for (AllocType UNPL(scope_user) = AllocType##Init(), \
UNPL(scope_internal) = AllocType##Init(), \
*UNPL(scope_loop) = &UNPL(scope_user); \
UNPL(scope_loop); \
AllocType##Deinit(&UNPL(scope_internal)), AllocType##Deinit(&UNPL(scope_user)), UNPL(scope_loop) = NULL) \
- In
Allocator.h:633:
UNPL(scope_internal) = AllocType##Init(), \
*UNPL(scope_loop) = &UNPL(scope_user); \
UNPL(scope_loop); \
AllocType##Deinit(&UNPL(scope_internal)), AllocType##Deinit(&UNPL(scope_user)), UNPL(scope_loop) = NULL) \
for (Allocator *name = &UNPL(scope_user).base, \
- In
Allocator.h:634:
*UNPL(scope_loop) = &UNPL(scope_user); \
UNPL(scope_loop); \
AllocType##Deinit(&UNPL(scope_internal)), AllocType##Deinit(&UNPL(scope_user)), UNPL(scope_loop) = NULL) \
for (Allocator *name = &UNPL(scope_user).base, \
*MisraScope = &UNPL(scope_internal).base, \
- In
Allocator.h:635:
UNPL(scope_loop); \
AllocType##Deinit(&UNPL(scope_internal)), AllocType##Deinit(&UNPL(scope_user)), UNPL(scope_loop) = NULL) \
for (Allocator *name = &UNPL(scope_user).base, \
*MisraScope = &UNPL(scope_internal).base, \
*UNPL(scope_done) = name; \
- In
Allocator.h:636:
AllocType##Deinit(&UNPL(scope_internal)), AllocType##Deinit(&UNPL(scope_user)), UNPL(scope_loop) = NULL) \
for (Allocator *name = &UNPL(scope_user).base, \
*MisraScope = &UNPL(scope_internal).base, \
*UNPL(scope_done) = name; \
(UNUSED(MisraScope), UNPL(scope_done)); \
- In
Allocator.h:637:
for (Allocator *name = &UNPL(scope_user).base, \
*MisraScope = &UNPL(scope_internal).base, \
*UNPL(scope_done) = name; \
(UNUSED(MisraScope), UNPL(scope_done)); \
UNPL(scope_done) = NULL)- In
Allocator.h:638:
*MisraScope = &UNPL(scope_internal).base, \
*UNPL(scope_done) = name; \
(UNUSED(MisraScope), UNPL(scope_done)); \
UNPL(scope_done) = NULL)- In
Allocator.h:639:
*UNPL(scope_done) = name; \
(UNUSED(MisraScope), UNPL(scope_done)); \
UNPL(scope_done) = NULL)
///
- In
Allocator.h:665:
///
#define ScopeWith(alloc_ptr) \
for (Allocator *MisraScope = (alloc_ptr), *UNPL(scope_with_done) = MisraScope; \
(UNUSED(MisraScope), UNPL(scope_with_done)); \
UNPL(scope_with_done) = NULL)- In
Allocator.h:666:
#define ScopeWith(alloc_ptr) \
for (Allocator *MisraScope = (alloc_ptr), *UNPL(scope_with_done) = MisraScope; \
(UNUSED(MisraScope), UNPL(scope_with_done)); \
UNPL(scope_with_done) = NULL)- In
Allocator.h:667:
for (Allocator *MisraScope = (alloc_ptr), *UNPL(scope_with_done) = MisraScope; \
(UNUSED(MisraScope), UNPL(scope_with_done)); \
UNPL(scope_with_done) = NULL)
///
- In
Io.h:567:
#define StrReadFmt_IMPL2(input, fmtstr, varr) \
do { \
TypeSpecificIO *UNPL(argv) = &(varr)[0]; \
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO); \
Zstr UNPL(out) = str_read_fmt((input), (fmtstr), UNPL(argv), UNPL(argc) - 1); \- In
Io.h:568:
do { \
TypeSpecificIO *UNPL(argv) = &(varr)[0]; \
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO); \
Zstr UNPL(out) = str_read_fmt((input), (fmtstr), UNPL(argv), UNPL(argc) - 1); \
if (UNPL(out)) \
- In
Io.h:569:
TypeSpecificIO *UNPL(argv) = &(varr)[0]; \
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO); \
Zstr UNPL(out) = str_read_fmt((input), (fmtstr), UNPL(argv), UNPL(argc) - 1); \
if (UNPL(out)) \
(input) = UNPL(out); \
- In
Io.h:570:
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO); \
Zstr UNPL(out) = str_read_fmt((input), (fmtstr), UNPL(argv), UNPL(argc) - 1); \
if (UNPL(out)) \
(input) = UNPL(out); \
} while (0)- In
Io.h:571:
Zstr UNPL(out) = str_read_fmt((input), (fmtstr), UNPL(argv), UNPL(argc) - 1); \
if (UNPL(out)) \
(input) = UNPL(out); \
} while (0)- In
Io.h:603:
#define FReadFmt_IMPL2(file, fmtstr, varr) \
do { \
TypeSpecificIO *UNPL(argv) = &(varr)[0]; \
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO) - 1; \
f_read_fmt((file), (fmtstr), UNPL(argv), UNPL(argc)); \- In
Io.h:604:
do { \
TypeSpecificIO *UNPL(argv) = &(varr)[0]; \
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO) - 1; \
f_read_fmt((file), (fmtstr), UNPL(argv), UNPL(argc)); \
} while (0)- In
Io.h:605:
TypeSpecificIO *UNPL(argv) = &(varr)[0]; \
u64 UNPL(argc) = sizeof(varr) / sizeof(TypeSpecificIO) - 1; \
f_read_fmt((file), (fmtstr), UNPL(argv), UNPL(argc)); \
} while (0)- In
Io.h:683:
#define WriteFmt(...) \
do { \
File UNPL(out) = FileStdout(); \
FWriteFmt(&UNPL(out), __VA_ARGS__); \
} while (0)- In
Io.h:684:
do { \
File UNPL(out) = FileStdout(); \
FWriteFmt(&UNPL(out), __VA_ARGS__); \
} while (0)- In
Io.h:704:
#define WriteFmtLn(...) \
do { \
File UNPL(out) = FileStdout(); \
FWriteFmtLn(&UNPL(out), __VA_ARGS__); \
} while (0)- In
Io.h:705:
do { \
File UNPL(out) = FileStdout(); \
FWriteFmtLn(&UNPL(out), __VA_ARGS__); \
} while (0)- In
Io.h:726:
#define ReadFmt(...) \
do { \
File UNPL(in) = FileStdin(); \
FReadFmt(&UNPL(in), __VA_ARGS__); \
} while (0)- In
Io.h:727:
do { \
File UNPL(in) = FileStdin(); \
FReadFmt(&UNPL(in), __VA_ARGS__); \
} while (0)- In
Log.h:42:
#define LOG_FATAL(...) \
do { \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \- In
Log.h:43:
do { \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
- In
Log.h:44:
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
- In
Log.h:45:
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
- In
Log.h:46:
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
Abort(); \
- In
Log.h:47:
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
Abort(); \
} while (0)- In
Log.h:66:
#define LOG_ERROR(...) \
do { \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \- In
Log.h:67:
do { \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
- In
Log.h:68:
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
- In
Log.h:69:
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
- In
Log.h:70:
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:71:
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:89:
#define LOG_INFO(...) \
do { \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \- In
Log.h:90:
do { \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
- In
Log.h:91:
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
- In
Log.h:92:
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
- In
Log.h:93:
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:94:
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:123:
#define LOG_SYS_FATAL(eno, ...) \
do { \
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \- In
Log.h:124:
do { \
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
- In
Log.h:125:
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
- In
Log.h:126:
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
- In
Log.h:127:
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
- In
Log.h:128:
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
- In
Log.h:129:
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
- In
Log.h:131:
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
- In
Log.h:132:
} \
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
Abort(); \
- In
Log.h:133:
LogWrite(LOG_MESSAGE_TYPE_FATAL, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
Abort(); \
} while (0)- In
Log.h:152:
#define LOG_SYS_ERROR(eno, ...) \
do { \
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \- In
Log.h:153:
do { \
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
- In
Log.h:154:
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
- In
Log.h:155:
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
- In
Log.h:156:
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
- In
Log.h:157:
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
- In
Log.h:158:
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
- In
Log.h:160:
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
- In
Log.h:161:
} \
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:162:
LogWrite(LOG_MESSAGE_TYPE_ERROR, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:180:
#define LOG_SYS_INFO(eno, ...) \
do { \
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \- In
Log.h:181:
do { \
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
- In
Log.h:182:
i32 UNPL(sys_eno) = (i32)(eno); \
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
- In
Log.h:183:
HeapAllocator UNPL(log_alloc) = HeapAllocatorInit(); \
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
- In
Log.h:184:
Str UNPL(m) = StrInit(&UNPL(log_alloc)); \
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
- In
Log.h:185:
StrAppendFmt(&UNPL(m), __VA_ARGS__); \
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
- In
Log.h:186:
StrInitStack(UNPL(syserr), 256) { \
StrError(UNPL(sys_eno), &UNPL(syserr)); \
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
- In
Log.h:188:
StrAppendFmt(&UNPL(m), " : {}", UNPL(syserr)); \
} \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
- In
Log.h:189:
} \
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Log.h:190:
LogWrite(LOG_MESSAGE_TYPE_INFO, __func__, __LINE__, StrBegin(&UNPL(m))); \
StrDeinit(&UNPL(m)); \
HeapAllocatorDeinit(&UNPL(log_alloc)); \
} while (0)- In
Foreach.h:35:
///
#define GraphForeachNode(g, node) \
for (TYPE_OF(g) UNPL(pg) = (g); UNPL(pg); UNPL(pg) = NULL) \
if ((ValidateGraph(UNPL(pg)), 1) && GraphNodeCount(UNPL(pg)) > 0) \
for (GenericGraphNodeIter UNPL(iter) = graph_node_iter_begin(GENERIC_GRAPH(UNPL(pg))); UNPL(iter).graph; \- In
Foreach.h:36:
#define GraphForeachNode(g, node) \
for (TYPE_OF(g) UNPL(pg) = (g); UNPL(pg); UNPL(pg) = NULL) \
if ((ValidateGraph(UNPL(pg)), 1) && GraphNodeCount(UNPL(pg)) > 0) \
for (GenericGraphNodeIter UNPL(iter) = graph_node_iter_begin(GENERIC_GRAPH(UNPL(pg))); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \- In
Foreach.h:37:
for (TYPE_OF(g) UNPL(pg) = (g); UNPL(pg); UNPL(pg) = NULL) \
if ((ValidateGraph(UNPL(pg)), 1) && GraphNodeCount(UNPL(pg)) > 0) \
for (GenericGraphNodeIter UNPL(iter) = graph_node_iter_begin(GENERIC_GRAPH(UNPL(pg))); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode node = {0}; graph_node_iter_next(&UNPL(iter), &node);)- In
Foreach.h:38:
if ((ValidateGraph(UNPL(pg)), 1) && GraphNodeCount(UNPL(pg)) > 0) \
for (GenericGraphNodeIter UNPL(iter) = graph_node_iter_begin(GENERIC_GRAPH(UNPL(pg))); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode node = {0}; graph_node_iter_next(&UNPL(iter), &node);)- In
Foreach.h:39:
for (GenericGraphNodeIter UNPL(iter) = graph_node_iter_begin(GENERIC_GRAPH(UNPL(pg))); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode node = {0}; graph_node_iter_next(&UNPL(iter), &node);)
///
- In
Foreach.h:57:
///
#define GraphNodeForeachNeighbor(node, neighbor) \
for (GraphNode UNPL(src_node) = (node); UNPL(src_node)._graph_; UNPL(src_node)._graph_ = NULL) \
for (GenericGraphNeighborIter UNPL(iter) = graph_neighbor_iter_begin(UNPL(src_node)); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \- In
Foreach.h:58:
#define GraphNodeForeachNeighbor(node, neighbor) \
for (GraphNode UNPL(src_node) = (node); UNPL(src_node)._graph_; UNPL(src_node)._graph_ = NULL) \
for (GenericGraphNeighborIter UNPL(iter) = graph_neighbor_iter_begin(UNPL(src_node)); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode neighbor = {0}; graph_neighbor_iter_next(&UNPL(iter), &neighbor);)- In
Foreach.h:59:
for (GraphNode UNPL(src_node) = (node); UNPL(src_node)._graph_; UNPL(src_node)._graph_ = NULL) \
for (GenericGraphNeighborIter UNPL(iter) = graph_neighbor_iter_begin(UNPL(src_node)); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode neighbor = {0}; graph_neighbor_iter_next(&UNPL(iter), &neighbor);)- In
Foreach.h:60:
for (GenericGraphNeighborIter UNPL(iter) = graph_neighbor_iter_begin(UNPL(src_node)); UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode neighbor = {0}; graph_neighbor_iter_next(&UNPL(iter), &neighbor);)
///
- In
Foreach.h:78:
///
#define GraphNodeForeachPredecessor(node, predecessor) \
for (GraphNode UNPL(dst_node) = (node); UNPL(dst_node)._graph_; UNPL(dst_node)._graph_ = NULL) \
for (GenericGraphPredecessorIter UNPL(iter) = graph_predecessor_iter_begin(UNPL(dst_node)); \
UNPL(iter).graph; \- In
Foreach.h:79:
#define GraphNodeForeachPredecessor(node, predecessor) \
for (GraphNode UNPL(dst_node) = (node); UNPL(dst_node)._graph_; UNPL(dst_node)._graph_ = NULL) \
for (GenericGraphPredecessorIter UNPL(iter) = graph_predecessor_iter_begin(UNPL(dst_node)); \
UNPL(iter).graph; \
UNPL(iter).graph = NULL) \- In
Foreach.h:80:
for (GraphNode UNPL(dst_node) = (node); UNPL(dst_node)._graph_; UNPL(dst_node)._graph_ = NULL) \
for (GenericGraphPredecessorIter UNPL(iter) = graph_predecessor_iter_begin(UNPL(dst_node)); \
UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode predecessor = {0}; graph_predecessor_iter_next(&UNPL(iter), &predecessor);)- In
Foreach.h:81:
for (GenericGraphPredecessorIter UNPL(iter) = graph_predecessor_iter_begin(UNPL(dst_node)); \
UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode predecessor = {0}; graph_predecessor_iter_next(&UNPL(iter), &predecessor);)- In
Foreach.h:82:
UNPL(iter).graph; \
UNPL(iter).graph = NULL) \
for (GraphNode predecessor = {0}; graph_predecessor_iter_next(&UNPL(iter), &predecessor);)
#endif // MISRA_STD_CONTAINER_GRAPH_FOREACH_H
- In
Foreach.h:34:
///
#define ListForeach(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \- In
Foreach.h:35:
#define ListForeach(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \- In
Foreach.h:36:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
- In
Foreach.h:37:
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
- In
Foreach.h:38:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:39:
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
- In
Foreach.h:40:
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
- In
Foreach.h:41:
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:42:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:43:
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:68:
///
#define ListForeachPtr(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \- In
Foreach.h:69:
#define ListForeachPtr(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \- In
Foreach.h:70:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
- In
Foreach.h:71:
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
- In
Foreach.h:72:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:73:
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
- In
Foreach.h:74:
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
- In
Foreach.h:75:
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:76:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:77:
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:101:
///
#define ListForeachReverse(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \- In
Foreach.h:102:
#define ListForeachReverse(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \- In
Foreach.h:103:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
- In
Foreach.h:104:
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
- In
Foreach.h:105:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:106:
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
- In
Foreach.h:107:
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
- In
Foreach.h:108:
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:109:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:110:
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:135:
///
#define ListForeachPtrReverse(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \- In
Foreach.h:136:
#define ListForeachPtrReverse(l, var) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \- In
Foreach.h:137:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
- In
Foreach.h:138:
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
- In
Foreach.h:139:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:140:
UNPL(node) = ListNodePrev(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
- In
Foreach.h:141:
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
- In
Foreach.h:142:
((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:143:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:144:
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:172:
///
#define ListForeachInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \- In
Foreach.h:173:
#define ListForeachInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \- In
Foreach.h:174:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
- In
Foreach.h:175:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
- In
Foreach.h:176:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:177:
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
- In
Foreach.h:178:
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
- In
Foreach.h:179:
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:180:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:181:
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:207:
///
#define ListForeachPtrInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \- In
Foreach.h:208:
#define ListForeachPtrInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \- In
Foreach.h:209:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
- In
Foreach.h:210:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
- In
Foreach.h:211:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:212:
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
- In
Foreach.h:213:
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
- In
Foreach.h:214:
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:215:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:216:
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:243:
///
#define ListForeachReverseInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \- In
Foreach.h:244:
#define ListForeachReverseInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \- In
Foreach.h:245:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
- In
Foreach.h:246:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
- In
Foreach.h:247:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:248:
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
- In
Foreach.h:249:
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
- In
Foreach.h:250:
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:251:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:252:
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:281:
///
#define ListForeachPtrReverseInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \- In
Foreach.h:282:
#define ListForeachPtrReverseInRange(l, var, start, end) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \- In
Foreach.h:283:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
- In
Foreach.h:284:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
- In
Foreach.h:285:
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:286:
UNPL(node) = ListNodePrev(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
- In
Foreach.h:287:
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
- In
Foreach.h:288:
if (UNPL(i) >= (start) && (UNPL(node)->data)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:289:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:290:
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:322:
///
#define ListForeachIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \- In
Foreach.h:323:
#define ListForeachIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \- In
Foreach.h:324:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
- In
Foreach.h:325:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
- In
Foreach.h:326:
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
- In
Foreach.h:327:
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
- In
Foreach.h:328:
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
- In
Foreach.h:329:
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:330:
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
- In
Foreach.h:331:
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
- In
Foreach.h:332:
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:333:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:334:
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:366:
///
#define ListForeachPtrIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \- In
Foreach.h:367:
#define ListForeachPtrIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \- In
Foreach.h:368:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
- In
Foreach.h:369:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
- In
Foreach.h:370:
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
- In
Foreach.h:371:
for (u64 idx = 0, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
- In
Foreach.h:372:
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
- In
Foreach.h:373:
idx = ((idx != UNPL(resolved_idx)) ? idx : (UNPL(resolved_idx) + 1))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:374:
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
- In
Foreach.h:375:
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
- In
Foreach.h:376:
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:377:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:378:
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:407:
///
#define ListForeachReverseIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \- In
Foreach.h:408:
#define ListForeachReverseIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \- In
Foreach.h:409:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
- In
Foreach.h:410:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
- In
Foreach.h:411:
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
- In
Foreach.h:412:
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
- In
Foreach.h:413:
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
- In
Foreach.h:414:
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
- In
Foreach.h:415:
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
- In
Foreach.h:416:
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
- In
Foreach.h:417:
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:418:
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
- In
Foreach.h:419:
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
- In
Foreach.h:420:
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:421:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:422:
for (LIST_DATA_TYPE(UNPL(pl)) var = *((LIST_DATA_TYPE(UNPL(pl)) *)(UNPL(node)->data)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:452:
///
#define ListForeachPtrReverseIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \- In
Foreach.h:453:
#define ListForeachPtrReverseIdx(l, var, idx) \
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \- In
Foreach.h:454:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
- In
Foreach.h:455:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail && UNPL(pl)->length > 0) \
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
- In
Foreach.h:456:
for (GenericListNode * UNPL(cursor) = NULL, *UNPL(node) = NULL; UNPL(pl); UNPL(pl) = NULL) \
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
- In
Foreach.h:457:
for (u64 idx = UNPL(pl)->length - 1, UNPL(cursor_idx) = 0, UNPL(resolved_idx) = 0; \
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
- In
Foreach.h:458:
idx < UNPL(pl)->length; \
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
- In
Foreach.h:459:
UNPL(cursor) = UNPL(node), UNPL(cursor_idx) = UNPL(resolved_idx), \
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
- In
Foreach.h:460:
idx = ((idx != UNPL(resolved_idx)) ? idx : \
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
- In
Foreach.h:461:
(UNPL(resolved_idx) > 0 ? UNPL(resolved_idx) - 1 \
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
- In
Foreach.h:462:
: UNPL(pl)->length))) \
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:463:
if ((UNPL(node) = get_node_for_list_iteration( \
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
- In
Foreach.h:464:
GENERIC_LIST(UNPL(pl)), UNPL(cursor), UNPL(cursor_idx), idx)) && \
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
- In
Foreach.h:465:
((UNPL(resolved_idx) = idx), 1) && UNPL(node)->data) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:466:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:467:
for (LIST_DATA_TYPE(UNPL(pl)) *var = (LIST_DATA_TYPE(UNPL(pl)) *)UNPL(node)->data; \
UNPL(_once); \
UNPL(_once) = false)
#endif // MISRA_STD_CONTAINER_LIST_FOREACH_H
- In
Init.h:152:
_Alignas(T) char d[sizeof(T) * ((ne) + 1)]; \
int done; \
} UNPL(_s) = {{0}, 0}; \
UNPL(_s).done == 0; \
MemSet(UNPL(_s).d, 0, sizeof(UNPL(_s).d)), UNPL(_s).done = 1) \
- In
Init.h:153:
int done; \
} UNPL(_s) = {{0}, 0}; \
UNPL(_s).done == 0; \
MemSet(UNPL(_s).d, 0, sizeof(UNPL(_s).d)), UNPL(_s).done = 1) \
for (Vec(T) name = {.length = 0, \
- In
Init.h:154:
} UNPL(_s) = {{0}, 0}; \
UNPL(_s).done == 0; \
MemSet(UNPL(_s).d, 0, sizeof(UNPL(_s).d)), UNPL(_s).done = 1) \
for (Vec(T) name = {.length = 0, \
.capacity = (ne), \
- In
Init.h:159:
.copy_init = NULL, \
.copy_deinit = NULL, \
.data = (T *)UNPL(_s).d, \
.allocator = NULL, \
.__magic = VEC_MAGIC | MAGIC_VALIDATED_BIT}, \
- In
Init.h:162:
.allocator = NULL, \
.__magic = VEC_MAGIC | MAGIC_VALIDATED_BIT}, \
*UNPL(_done) = &name; \
UNPL(_done); \
MemSet(&name, 0, sizeof(name)), UNPL(_done) = NULL)- In
Init.h:163:
.__magic = VEC_MAGIC | MAGIC_VALIDATED_BIT}, \
*UNPL(_done) = &name; \
UNPL(_done); \
MemSet(&name, 0, sizeof(name)), UNPL(_done) = NULL)- In
Init.h:164:
*UNPL(_done) = &name; \
UNPL(_done); \
MemSet(&name, 0, sizeof(name)), UNPL(_done) = NULL)
///
- In
Foreach.h:30:
///
#define VecForeachIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \- In
Foreach.h:31:
#define VecForeachIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (VEC_DATATYPE(UNPL(pv)) var = {0}; idx < UNPL(pv)->length && (var = VecAt(UNPL(pv), idx), 1); idx++)- In
Foreach.h:32:
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (VEC_DATATYPE(UNPL(pv)) var = {0}; idx < UNPL(pv)->length && (var = VecAt(UNPL(pv), idx), 1); idx++)- In
Foreach.h:33:
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (VEC_DATATYPE(UNPL(pv)) var = {0}; idx < UNPL(pv)->length && (var = VecAt(UNPL(pv), idx), 1); idx++)
///
- In
Foreach.h:55:
///
#define VecForeachReverseIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \- In
Foreach.h:56:
#define VecForeachReverseIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \- In
Foreach.h:57:
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (VEC_DATATYPE(UNPL(pv)) var = VecAt(UNPL(pv), idx); UNPL(run_once); UNPL(run_once) = 0)- In
Foreach.h:58:
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (VEC_DATATYPE(UNPL(pv)) var = VecAt(UNPL(pv), idx); UNPL(run_once); UNPL(run_once) = 0)- In
Foreach.h:59:
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (VEC_DATATYPE(UNPL(pv)) var = VecAt(UNPL(pv), idx); UNPL(run_once); UNPL(run_once) = 0)
///
- In
Foreach.h:82:
///
#define VecForeachPtrIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \- In
Foreach.h:83:
#define VecForeachPtrIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (VEC_DATATYPE(UNPL(pv)) *var = NULL; idx < UNPL(pv)->length && (var = VecPtrAt(UNPL(pv), idx), 1); \- In
Foreach.h:84:
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (VEC_DATATYPE(UNPL(pv)) *var = NULL; idx < UNPL(pv)->length && (var = VecPtrAt(UNPL(pv), idx), 1); \
idx++)- In
Foreach.h:85:
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (VEC_DATATYPE(UNPL(pv)) *var = NULL; idx < UNPL(pv)->length && (var = VecPtrAt(UNPL(pv), idx), 1); \
idx++)- In
Foreach.h:108:
///
#define VecForeachPtrReverseIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \- In
Foreach.h:109:
#define VecForeachPtrReverseIdx(v, var, idx) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \- In
Foreach.h:110:
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (VEC_DATATYPE(UNPL(pv)) *var = VecPtrAt(UNPL(pv), idx); UNPL(run_once); UNPL(run_once) = 0)- In
Foreach.h:111:
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (VEC_DATATYPE(UNPL(pv)) *var = VecPtrAt(UNPL(pv), idx); UNPL(run_once); UNPL(run_once) = 0)- In
Foreach.h:112:
for (u64 idx = UNPL(pv)->length; idx-- > 0 && idx < UNPL(pv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (VEC_DATATYPE(UNPL(pv)) *var = VecPtrAt(UNPL(pv), idx); UNPL(run_once); UNPL(run_once) = 0)
///
- In
Foreach.h:122:
/// TAGS: Foreach, Vec, Iteration, Loop
///
#define VecForeach(v, var) VecForeachIdx((v), (var), UNPL(iter))
///
- In
Foreach.h:132:
/// TAGS: Foreach, Vec, Iteration, Loop, Reverse
///
#define VecForeachReverse(v, var) VecForeachReverseIdx((v), (var), UNPL(iter))
///
- In
Foreach.h:142:
/// TAGS: Foreach, Vec, Iteration, Loop, Pointer
///
#define VecForeachPtr(v, var) VecForeachPtrIdx((v), (var), UNPL(iter))
///
- In
Foreach.h:152:
/// TAGS: Foreach, Vec, Iteration, Loop, Reverse, Pointer
///
#define VecForeachPtrReverse(v, var) VecForeachPtrReverseIdx((v), (var), UNPL(iter))
///
- In
Foreach.h:176:
///
#define VecForeachInRangeIdx(v, var, idx, start, end) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \- In
Foreach.h:177:
#define VecForeachInRangeIdx(v, var, idx, start, end) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \- In
Foreach.h:178:
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
- In
Foreach.h:179:
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (VEC_DATATYPE(UNPL(pv)) var = VecAt(UNPL(pv), idx); UNPL(d); UNPL(d) = 0)- In
Foreach.h:180:
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (VEC_DATATYPE(UNPL(pv)) var = VecAt(UNPL(pv), idx); UNPL(d); UNPL(d) = 0)- In
Foreach.h:181:
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (VEC_DATATYPE(UNPL(pv)) var = VecAt(UNPL(pv), idx); UNPL(d); UNPL(d) = 0)
///
- In
Foreach.h:191:
/// TAGS: Foreach, Vec, Iteration, Loop, Range
///
#define VecForeachInRange(v, var, start, end) VecForeachInRangeIdx((v), (var), UNPL(iter), (start), (end))
///
- In
Foreach.h:215:
///
#define VecForeachPtrInRangeIdx(v, var, idx, start, end) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \- In
Foreach.h:216:
#define VecForeachPtrInRangeIdx(v, var, idx, start, end) \
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
idx >= UNPL(s) && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \- In
Foreach.h:217:
for (TYPE_OF(v) UNPL(pv) = (v); UNPL(pv); UNPL(pv) = NULL) \
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
idx >= UNPL(s) && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
- In
Foreach.h:218:
if ((ValidateVec(UNPL(pv)), 1) && UNPL(pv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
idx >= UNPL(s) && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (VEC_DATATYPE(UNPL(pv)) *var = VecPtrAt(UNPL(pv), idx); UNPL(d); UNPL(d) = 0)- In
Foreach.h:219:
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
idx >= UNPL(s) && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (VEC_DATATYPE(UNPL(pv)) *var = VecPtrAt(UNPL(pv), idx); UNPL(d); UNPL(d) = 0)- In
Foreach.h:220:
idx >= UNPL(s) && idx < UNPL(e) && idx < UNPL(pv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (VEC_DATATYPE(UNPL(pv)) *var = VecPtrAt(UNPL(pv), idx); UNPL(d); UNPL(d) = 0)
///
- In
Foreach.h:230:
/// TAGS: Foreach, Vec, Iteration, Loop, Range, Pointer
///
#define VecForeachPtrInRange(v, var, start, end) VecForeachPtrInRangeIdx((v), (var), UNPL(iter), (start), (end))
#endif // MISRA_STD_CONTAINER_VEC_FOREACH_H
- In
Foreach.h:29:
///
#define BitVecForeachIdx(bv, var, idx) \
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \- In
Foreach.h:30:
#define BitVecForeachIdx(bv, var, idx) \
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (bool var = 0; idx < UNPL(pbv)->length && (var = BitVecGet(UNPL(pbv), idx), 1); idx++)- In
Foreach.h:31:
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (bool var = 0; idx < UNPL(pbv)->length && (var = BitVecGet(UNPL(pbv), idx), 1); idx++)- In
Foreach.h:32:
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = 0, UNPL(d) = 1; UNPL(d); UNPL(d)--) \
for (bool var = 0; idx < UNPL(pbv)->length && (var = BitVecGet(UNPL(pbv), idx), 1); idx++)
///
- In
Foreach.h:50:
///
#define BitVecForeachReverseIdx(bv, var, idx) \
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = UNPL(pbv)->length; idx-- > 0 && idx < UNPL(pbv)->length;) \- In
Foreach.h:51:
#define BitVecForeachReverseIdx(bv, var, idx) \
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = UNPL(pbv)->length; idx-- > 0 && idx < UNPL(pbv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \- In
Foreach.h:52:
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = UNPL(pbv)->length; idx-- > 0 && idx < UNPL(pbv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (bool var = BitVecGet(UNPL(pbv), idx); UNPL(run_once); UNPL(run_once) = 0)- In
Foreach.h:53:
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 idx = UNPL(pbv)->length; idx-- > 0 && idx < UNPL(pbv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (bool var = BitVecGet(UNPL(pbv), idx); UNPL(run_once); UNPL(run_once) = 0)- In
Foreach.h:54:
for (u64 idx = UNPL(pbv)->length; idx-- > 0 && idx < UNPL(pbv)->length;) \
for (u8 UNPL(run_once) = 1; UNPL(run_once); UNPL(run_once) = 0) \
for (bool var = BitVecGet(UNPL(pbv), idx); UNPL(run_once); UNPL(run_once) = 0)
///
- In
Foreach.h:70:
/// TAGS: BitVec, Foreach, Forward, Iteration
///
#define BitVecForeach(bv, var) BitVecForeachIdx((bv), (var), UNPL(iter))
///
- In
Foreach.h:86:
/// TAGS: BitVec, Foreach, Reverse, Iteration
///
#define BitVecForeachReverse(bv, var) BitVecForeachReverseIdx((bv), (var), UNPL(iter))
///
- In
Foreach.h:107:
///
#define BitVecForeachInRangeIdx(bv, var, idx, start, end) \
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \- In
Foreach.h:108:
#define BitVecForeachInRangeIdx(bv, var, idx, start, end) \
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pbv)->length && UNPL(s) <= UNPL(e); \- In
Foreach.h:109:
for (TYPE_OF(bv) UNPL(pbv) = (bv); UNPL(pbv); UNPL(pbv) = NULL) \
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pbv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
- In
Foreach.h:110:
if ((ValidateBitVec(UNPL(pbv)), 1) && UNPL(pbv)->length > 0) \
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pbv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (bool var = BitVecGet(UNPL(pbv), idx); UNPL(d); UNPL(d) = 0)- In
Foreach.h:111:
for (u64 UNPL(s) = (start), UNPL(e) = (end), idx = UNPL(s), UNPL(d) = 1; \
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pbv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (bool var = BitVecGet(UNPL(pbv), idx); UNPL(d); UNPL(d) = 0)- In
Foreach.h:112:
UNPL(s) <= idx && idx < UNPL(e) && idx < UNPL(pbv)->length && UNPL(s) <= UNPL(e); \
++idx, UNPL(d) = 1) \
for (bool var = BitVecGet(UNPL(pbv), idx); UNPL(d); UNPL(d) = 0)
- In
Foreach.h:131:
/// TAGS: BitVec, Foreach, Range, Iteration
///
#define BitVecForeachInRange(bv, var, start, end) BitVecForeachInRangeIdx((bv), (var), UNPL(iter), (start), (end))
#endif // MISRA_STD_CONTAINER_BITVEC_FOREACH_H
- In
Init.h:233:
///
#define StrInitStack(name, ne) \
for (char UNPL(_d)[(ne) + 1] = {0}, *UNPL(_loop) = UNPL(_d); UNPL(_loop); \
MemSet(UNPL(_d), 0, sizeof(UNPL(_d))), UNPL(_loop) = NULL) \
for (Str name = {.length = 0, \- In
Init.h:234:
#define StrInitStack(name, ne) \
for (char UNPL(_d)[(ne) + 1] = {0}, *UNPL(_loop) = UNPL(_d); UNPL(_loop); \
MemSet(UNPL(_d), 0, sizeof(UNPL(_d))), UNPL(_loop) = NULL) \
for (Str name = {.length = 0, \
.capacity = (ne), \- In
Init.h:237:
for (Str name = {.length = 0, \
.capacity = (ne), \
.data = UNPL(_d), \
.allocator = NULL, \
.copy_init = NULL, \
- In
Init.h:242:
.copy_deinit = NULL, \
.__magic = VEC_MAGIC | MAGIC_VALIDATED_BIT}, \
*UNPL(_done) = &name; \
UNPL(_done); \
MemSet(&name, 0, sizeof(name)), UNPL(_done) = NULL)- In
Init.h:243:
.__magic = VEC_MAGIC | MAGIC_VALIDATED_BIT}, \
*UNPL(_done) = &name; \
UNPL(_done); \
MemSet(&name, 0, sizeof(name)), UNPL(_done) = NULL)- In
Init.h:244:
*UNPL(_done) = &name; \
UNPL(_done); \
MemSet(&name, 0, sizeof(name)), UNPL(_done) = NULL)
///
- In
Ops.h:42:
ValidateMap(lhs); \
ValidateMap(rhs); \
TYPE_OF(*(lhs)) UNPL(tmp) = *(lhs); \
*(lhs) = *(rhs); \
*(rhs) = UNPL(tmp); \
- In
Ops.h:44:
TYPE_OF(*(lhs)) UNPL(tmp) = *(lhs); \
*(lhs) = *(rhs); \
*(rhs) = UNPL(tmp); \
} while (0)- In
Foreach.h:31:
///
#define MapForeachPairPtr(m, key_ptr, value_ptr) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \- In
Foreach.h:32:
#define MapForeachPairPtr(m, key_ptr, value_ptr) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \- In
Foreach.h:33:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:34:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) *key_ptr = map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
- In
Foreach.h:35:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) *key_ptr = map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
- In
Foreach.h:36:
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) *key_ptr = map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
- In
Foreach.h:37:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) *key_ptr = map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
value_ptr; \
- In
Foreach.h:38:
for (MAP_KEY_TYPE(UNPL(pm)) *key_ptr = map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
value_ptr; \
value_ptr = NULL)- In
Foreach.h:59:
///
#define MapForeachPair(m, key_var, value_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \- In
Foreach.h:60:
#define MapForeachPair(m, key_var, value_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \- In
Foreach.h:61:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:62:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
- In
Foreach.h:63:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
- In
Foreach.h:64:
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
- In
Foreach.h:65:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
- In
Foreach.h:66:
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:67:
UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:68:
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:86:
///
#define MapForeachKey(m, key_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \- In
Foreach.h:87:
#define MapForeachKey(m, key_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && (map_find_index( \- In
Foreach.h:88:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && (map_find_index( \
GENERIC_MAP(UNPL(pm)), \
- In
Foreach.h:89:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && (map_find_index( \
GENERIC_MAP(UNPL(pm)), \
map_key_ptr_at(UNPL(pm), UNPL(slot)), \
- In
Foreach.h:90:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && (map_find_index( \
GENERIC_MAP(UNPL(pm)), \
map_key_ptr_at(UNPL(pm), UNPL(slot)), \
sizeof(MAP_ENTRY_TYPE(UNPL(pm))), \
- In
Foreach.h:91:
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && (map_find_index( \
GENERIC_MAP(UNPL(pm)), \
map_key_ptr_at(UNPL(pm), UNPL(slot)), \
sizeof(MAP_ENTRY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), key), \
- In
Foreach.h:92:
GENERIC_MAP(UNPL(pm)), \
map_key_ptr_at(UNPL(pm), UNPL(slot)), \
sizeof(MAP_ENTRY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), key), \
sizeof(MAP_KEY_TYPE(UNPL(pm))), \
- In
Foreach.h:93:
map_key_ptr_at(UNPL(pm), UNPL(slot)), \
sizeof(MAP_ENTRY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), key), \
sizeof(MAP_KEY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), hash) \
- In
Foreach.h:94:
sizeof(MAP_ENTRY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), key), \
sizeof(MAP_KEY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), hash) \
) == UNPL(slot))) \
- In
Foreach.h:95:
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), key), \
sizeof(MAP_KEY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), hash) \
) == UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:96:
sizeof(MAP_KEY_TYPE(UNPL(pm))), \
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), hash) \
) == UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
- In
Foreach.h:97:
offsetof(MAP_ENTRY_TYPE(UNPL(pm)), hash) \
) == UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:98:
) == UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:99:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) key_var = *map_key_ptr_at(UNPL(pm), UNPL(slot)); UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:117:
///
#define MapForeachValue(m, value_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \- In
Foreach.h:118:
#define MapForeachValue(m, value_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \- In
Foreach.h:119:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:120:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
- In
Foreach.h:121:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
- In
Foreach.h:122:
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:123:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:124:
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:142:
///
#define MapForeachValuePtr(m, value_ptr) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \- In
Foreach.h:143:
#define MapForeachValuePtr(m, value_ptr) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \- In
Foreach.h:144:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:145:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
- In
Foreach.h:146:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
- In
Foreach.h:147:
if (map_slot_occupied(UNPL(pm), UNPL(slot))) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:148:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:149:
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:170:
///
#define MapForeachValueForKey(m, lookup_key, value_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \- In
Foreach.h:171:
#define MapForeachValueForKey(m, lookup_key, value_var) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \- In
Foreach.h:172:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
- In
Foreach.h:173:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
- In
Foreach.h:174:
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
- In
Foreach.h:175:
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:176:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
- In
Foreach.h:177:
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
- In
Foreach.h:178:
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:179:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:180:
for (MAP_VALUE_TYPE(UNPL(pm)) value_var = *map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)
///
- In
Foreach.h:202:
///
#define MapForeachValuePtrForKey(m, lookup_key, value_ptr) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \- In
Foreach.h:203:
#define MapForeachValuePtrForKey(m, lookup_key, value_ptr) \
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \- In
Foreach.h:204:
for (TYPE_OF(m) UNPL(pm) = (m); UNPL(pm); UNPL(pm) = NULL) \
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
- In
Foreach.h:205:
if ((ValidateMap(UNPL(pm)), 1) && UNPL(pm)->length > 0) \
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
- In
Foreach.h:206:
for (bool UNPL(_key_once) = true; UNPL(_key_once); UNPL(_key_once) = false) \
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
- In
Foreach.h:207:
for (MAP_KEY_TYPE(UNPL(pm)) UNPL(find_key) = (lookup_key); UNPL(_key_once); UNPL(_key_once) = false) \
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
- In
Foreach.h:208:
for (size UNPL(slot) = 0; UNPL(slot) < UNPL(pm)->capacity; UNPL(slot)++) \
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
- In
Foreach.h:209:
if (map_slot_occupied(UNPL(pm), UNPL(slot)) && \
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
- In
Foreach.h:210:
(UNPL(pm)->key_compare(map_key_ptr_at(UNPL(pm), UNPL(slot)), &UNPL(find_key)) == 0)) \
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:211:
for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false) \
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)- In
Foreach.h:212:
for (MAP_VALUE_TYPE(UNPL(pm)) *value_ptr = map_value_ptr_at(UNPL(pm), UNPL(slot)); \
UNPL(_once); \
UNPL(_once) = false)
#endif // MISRA_STD_CONTAINER_MAP_FOREACH_H
- In
Proc.h:286:
#define ProcReadFromStdoutFmt(p, ...) \
do { \
Str UNPL(buf) = StrInit(); \
ProcReadFromStdout((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \- In
Proc.h:287:
do { \
Str UNPL(buf) = StrInit(); \
ProcReadFromStdout((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
- In
Proc.h:288:
Str UNPL(buf) = StrInit(); \
ProcReadFromStdout((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
StrDeinit(&UNPL(buf)); \
- In
Proc.h:289:
ProcReadFromStdout((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:290:
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:313:
#define ProcReadFromStderrFmt(p, ...) \
do { \
Str UNPL(buf) = StrInit(); \
ProcReadFromStderr((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \- In
Proc.h:314:
do { \
Str UNPL(buf) = StrInit(); \
ProcReadFromStderr((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
- In
Proc.h:315:
Str UNPL(buf) = StrInit(); \
ProcReadFromStderr((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
StrDeinit(&UNPL(buf)); \
- In
Proc.h:316:
ProcReadFromStderr((p), &UNPL(buf)); \
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:317:
Zstr UNPL(in) = StrBegin(&UNPL(buf)); \
StrReadFmt(UNPL(in), __VA_ARGS__); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:340:
#define ProcWriteToStdinFmt(p, ...) \
do { \
Str UNPL(buf) = StrInit(); \
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
ProcWriteToStdin((p), &UNPL(buf)); \- In
Proc.h:341:
do { \
Str UNPL(buf) = StrInit(); \
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
ProcWriteToStdin((p), &UNPL(buf)); \
StrDeinit(&UNPL(buf)); \
- In
Proc.h:342:
Str UNPL(buf) = StrInit(); \
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
ProcWriteToStdin((p), &UNPL(buf)); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:343:
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
ProcWriteToStdin((p), &UNPL(buf)); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:365:
#define ProcWriteToStdinFmtLn(p, ...) \
do { \
Str UNPL(buf) = StrInit(); \
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
StrPushBackR(&UNPL(buf), '\n'); \- In
Proc.h:366:
do { \
Str UNPL(buf) = StrInit(); \
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
StrPushBackR(&UNPL(buf), '\n'); \
ProcWriteToStdin((p), &UNPL(buf)); \
- In
Proc.h:367:
Str UNPL(buf) = StrInit(); \
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
StrPushBackR(&UNPL(buf), '\n'); \
ProcWriteToStdin((p), &UNPL(buf)); \
StrDeinit(&UNPL(buf)); \
- In
Proc.h:368:
StrAppendFmt(&UNPL(buf), __VA_ARGS__); \
StrPushBackR(&UNPL(buf), '\n'); \
ProcWriteToStdin((p), &UNPL(buf)); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
Proc.h:369:
StrPushBackR(&UNPL(buf), '\n'); \
ProcWriteToStdin((p), &UNPL(buf)); \
StrDeinit(&UNPL(buf)); \
} while (0)- In
JSON.h:249:
#define JR_STR(si, str) \
do { \
Str UNPL(my_str) = StrInit(); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \- In
JSON.h:250:
do { \
Str UNPL(my_str) = StrInit(); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} while (0)- In
JSON.h:251:
Str UNPL(my_str) = StrInit(); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} while (0)- In
JSON.h:272:
do { \
if (!StrCmp(&key, (k))) { \
Str UNPL(my_str) = StrInit(); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
- In
JSON.h:273:
if (!StrCmp(&key, (k))) { \
Str UNPL(my_str) = StrInit(); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} \
- In
JSON.h:274:
Str UNPL(my_str) = StrInit(); \
si = JReadString((si), &UNPL(my_str)); \
(str) = UNPL(my_str); \
} \
} while (0)- In
JSON.h:294:
#define JR_INT(si, i) \
do { \
i64 UNPL(my_int) = 0; \
si = JReadInteger((si), &UNPL(my_int)); \
(i) = UNPL(my_int); \- In
JSON.h:295:
do { \
i64 UNPL(my_int) = 0; \
si = JReadInteger((si), &UNPL(my_int)); \
(i) = UNPL(my_int); \
} while (0)- In
JSON.h:296:
i64 UNPL(my_int) = 0; \
si = JReadInteger((si), &UNPL(my_int)); \
(i) = UNPL(my_int); \
} while (0)- In
JSON.h:317:
do { \
if (!StrCmp(&key, (k))) { \
i64 UNPL(my_int) = 0; \
si = JReadInteger((si), &UNPL(my_int)); \
(i) = UNPL(my_int); \
- In
JSON.h:318:
if (!StrCmp(&key, (k))) { \
i64 UNPL(my_int) = 0; \
si = JReadInteger((si), &UNPL(my_int)); \
(i) = UNPL(my_int); \
} \
- In
JSON.h:319:
i64 UNPL(my_int) = 0; \
si = JReadInteger((si), &UNPL(my_int)); \
(i) = UNPL(my_int); \
} \
} while (0)- In
JSON.h:339:
#define JR_FLT(si, f) \
do { \
f64 UNPL(my_flt) = 0; \
si = JReadFloat((si), &UNPL(my_flt)); \
(f) = UNPL(my_flt); \- In
JSON.h:340:
do { \
f64 UNPL(my_flt) = 0; \
si = JReadFloat((si), &UNPL(my_flt)); \
(f) = UNPL(my_flt); \
} while (0)- In
JSON.h:341:
f64 UNPL(my_flt) = 0; \
si = JReadFloat((si), &UNPL(my_flt)); \
(f) = UNPL(my_flt); \
} while (0)- In
JSON.h:362:
do { \
if (!StrCmp(&key, (k))) { \
f64 UNPL(my_flt) = 0; \
si = JReadFloat((si), &UNPL(my_flt)); \
(f) = UNPL(my_flt); \
- In
JSON.h:363:
if (!StrCmp(&key, (k))) { \
f64 UNPL(my_flt) = 0; \
si = JReadFloat((si), &UNPL(my_flt)); \
(f) = UNPL(my_flt); \
} \
- In
JSON.h:364:
f64 UNPL(my_flt) = 0; \
si = JReadFloat((si), &UNPL(my_flt)); \
(f) = UNPL(my_flt); \
} \
} while (0)- In
JSON.h:384:
#define JR_BOOL(si, b) \
do { \
bool UNPL(my_b) = 0; \
si = JReadBool((si), &UNPL(my_b)); \
(b) = UNPL(my_b); \- In
JSON.h:385:
do { \
bool UNPL(my_b) = 0; \
si = JReadBool((si), &UNPL(my_b)); \
(b) = UNPL(my_b); \
} while (0)- In
JSON.h:386:
bool UNPL(my_b) = 0; \
si = JReadBool((si), &UNPL(my_b)); \
(b) = UNPL(my_b); \
} while (0)- In
JSON.h:407:
do { \
if (!StrCmp(&key, (k))) { \
bool UNPL(my_b) = 0; \
si = JReadBool((si), &UNPL(my_b)); \
(b) = UNPL(my_b); \
- In
JSON.h:408:
if (!StrCmp(&key, (k))) { \
bool UNPL(my_b) = 0; \
si = JReadBool((si), &UNPL(my_b)); \
(b) = UNPL(my_b); \
} \
- In
JSON.h:409:
bool UNPL(my_b) = 0; \
si = JReadBool((si), &UNPL(my_b)); \
(b) = UNPL(my_b); \
} \
} while (0)- In
JSON.h:443:
} \
\
StrIter UNPL(saved_si) = si; \
si = JSkipWhitespace(si); \
\
- In
JSON.h:447:
\
/* starting of an array */ \
char UNPL(jr_c); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '[') { \
LOG_ERROR("Invalid array start. Expected '['."); \
- In
JSON.h:448:
/* starting of an array */ \
char UNPL(jr_c); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '[') { \
LOG_ERROR("Invalid array start. Expected '['."); \
si = UNPL(saved_si); \
- In
JSON.h:450:
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '[') { \
LOG_ERROR("Invalid array start. Expected '['."); \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:456:
si = JSkipWhitespace(si); \
\
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
\
- In
JSON.h:457:
\
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
\
/* while not at the end of array. */ \
- In
JSON.h:460:
\
/* while not at the end of array. */ \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != ']') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
- In
JSON.h:461:
/* while not at the end of array. */ \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != ']') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' between values in array. Invalid JSON array."); \
- In
JSON.h:462:
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != ']') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' between values in array. Invalid JSON array."); \
UNPL(failed) = true; \
- In
JSON.h:464:
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' between values in array. Invalid JSON array."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:465:
LOG_ERROR("Expected ',' between values in array. Invalid JSON array."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:473:
\
/* try reading using user provided reader */ \
StrIter UNPL(si_before_read) = si; \
{ reader } \
\
- In
JSON.h:477:
\
/* if no advancement in read position */ \
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
/* skip the value */ \
StrIter UNPL(read_si) = JSkipValue(si); \
- In
JSON.h:479:
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
/* skip the value */ \
StrIter UNPL(read_si) = JSkipValue(si); \
\
/* if still no advancement in read position */ \
- In
JSON.h:482:
\
/* if still no advancement in read position */ \
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to parse value. Invalid JSON."); \
UNPL(failed) = true; \
- In
JSON.h:484:
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to parse value. Invalid JSON."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:485:
LOG_ERROR("Failed to parse value. Invalid JSON."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:488:
break; \
} \
si = UNPL(read_si); \
} \
si = JSkipWhitespace(si); \
- In
JSON.h:493:
\
/* expect a comma after a successful value read in array */ \
UNPL(expect_comma) = true; \
} \
\
- In
JSON.h:497:
\
/* end of array */ \
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != ']') { \
LOG_ERROR("Invalid end of array. Expected ']'."); \
- In
JSON.h:498:
/* end of array */ \
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != ']') { \
LOG_ERROR("Invalid end of array. Expected ']'."); \
UNPL(failed) = true; \
- In
JSON.h:500:
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != ']') { \
LOG_ERROR("Invalid end of array. Expected ']'."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:501:
LOG_ERROR("Invalid end of array. Expected ']'."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:539:
} \
\
StrIter UNPL(saved_si) = si; \
si = JSkipWhitespace(si); \
\
- In
JSON.h:543:
\
/* starting of an object */ \
char UNPL(jr_c); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '{') { \
LOG_ERROR("Invalid object start. Expected '{'."); \
- In
JSON.h:544:
/* starting of an object */ \
char UNPL(jr_c); \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '{') { \
LOG_ERROR("Invalid object start. Expected '{'."); \
si = UNPL(saved_si); \
- In
JSON.h:546:
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '{') { \
LOG_ERROR("Invalid object start. Expected '{'."); \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:552:
si = JSkipWhitespace(si); \
\
StrIter UNPL(read_si); \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
- In
JSON.h:553:
\
StrIter UNPL(read_si); \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
\
- In
JSON.h:554:
StrIter UNPL(read_si); \
bool UNPL(expect_comma) = false; \
bool UNPL(failed) = false; \
\
/* while not at the end of object. */ \
- In
JSON.h:557:
\
/* while not at the end of object. */ \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
- In
JSON.h:558:
/* while not at the end of object. */ \
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
- In
JSON.h:559:
while (StrIterPeek(&si, &UNPL(jr_c)) && UNPL(jr_c) != '}') { \
if (UNPL(expect_comma)) { \
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
UNPL(failed) = true; \
- In
JSON.h:561:
if (UNPL(jr_c) != ',') { \
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:562:
LOG_ERROR("Expected ',' after key/value pairs in object. Invalid JSON object."); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:573:
\
/* key start */ \
UNPL(read_si) = JReadString(si, &key); \
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to read string key in object. Invalid JSON"); \
- In
JSON.h:574:
/* key start */ \
UNPL(read_si) = JReadString(si, &key); \
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to read string key in object. Invalid JSON"); \
StrDeinit(&key); \
- In
JSON.h:577:
LOG_ERROR("Failed to read string key in object. Invalid JSON"); \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:578:
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:582:
} \
\
si = UNPL(read_si); \
si = JSkipWhitespace(si); \
\
- In
JSON.h:586:
\
\
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != ':') { \
LOG_ERROR("Expected ':' after key string. Failed to read JSON"); \
StrDeinit(&key); \
- In
JSON.h:589:
LOG_ERROR("Expected ':' after key string. Failed to read JSON"); \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:590:
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:598:
\
/* try reading using user provided reader */ \
StrIter UNPL(si_before_read) = si; \
{ reader } \
\
- In
JSON.h:602:
\
/* if no advancement in read position */ \
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
/* skip the value */ \
UNPL(read_si) = JSkipValue(si); \
- In
JSON.h:604:
if (StrIterIndex(&UNPL(si_before_read)) == StrIterIndex(&si)) { \
/* skip the value */ \
UNPL(read_si) = JSkipValue(si); \
\
\
- In
JSON.h:608:
\
/* if still no advancement in read position */ \
if (StrIterIndex(&UNPL(read_si)) == StrIterIndex(&si)) { \
LOG_ERROR("Failed to parse value. Invalid JSON."); \
StrDeinit(&key); \
- In
JSON.h:611:
LOG_ERROR("Failed to parse value. Invalid JSON."); \
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:612:
StrDeinit(&key); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:617:
\
LOG_INFO("User skipped reading of '{}' field in JSON object.", key); \
si = UNPL(read_si); \
} \
StrDeinit(&key); \
- In
JSON.h:624:
\
/* expect a comma after a successful key-value pair read */ \
UNPL(expect_comma) = true; \
} \
\
- In
JSON.h:627:
} \
\
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
- In
JSON.h:628:
\
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
- In
JSON.h:629:
if (!UNPL(failed)) { \
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
- In
JSON.h:630:
if (!StrIterPeek(&si, &UNPL(jr_c)) || UNPL(jr_c) != '}') { \
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
- In
JSON.h:631:
LOG_ERROR("Expected end of object '}' but found '{c}'", UNPL(jr_c)); \
UNPL(failed) = true; \
si = UNPL(saved_si); \
break; \
} \
- In
JSON.h:831:
#define JW_INT(j, i) \
do { \
i64 UNPL(my_int) = (i); \
StrAppendFmt(&(j), "{}", UNPL(my_int)); \
} while (0)- In
JSON.h:832:
do { \
i64 UNPL(my_int) = (i); \
StrAppendFmt(&(j), "{}", UNPL(my_int)); \
} while (0)- In
JSON.h:877:
#define JW_FLT(j, f) \
do { \
f64 UNPL(my_flt) = (f); \
StrAppendFmt(&(j), "{}", UNPL(my_flt)); \
} while (0)- In
JSON.h:878:
do { \
f64 UNPL(my_flt) = (f); \
StrAppendFmt(&(j), "{}", UNPL(my_flt)); \
} while (0)- In
JSON.h:923:
#define JW_STR(j, s) \
do { \
const Str *UNPL(jw_s) = &(s); \
u64 UNPL(jw_len) = StrLen(UNPL(jw_s)); \
StrAppendFmt(&(j), "\"{}\"", UNPL(jw_len) ? (Zstr)StrBegin(UNPL(jw_s)) : (Zstr) ""); \- In
JSON.h:924:
do { \
const Str *UNPL(jw_s) = &(s); \
u64 UNPL(jw_len) = StrLen(UNPL(jw_s)); \
StrAppendFmt(&(j), "\"{}\"", UNPL(jw_len) ? (Zstr)StrBegin(UNPL(jw_s)) : (Zstr) ""); \
} while (0)- In
JSON.h:925:
const Str *UNPL(jw_s) = &(s); \
u64 UNPL(jw_len) = StrLen(UNPL(jw_s)); \
StrAppendFmt(&(j), "\"{}\"", UNPL(jw_len) ? (Zstr)StrBegin(UNPL(jw_s)) : (Zstr) ""); \
} while (0)
Last updated on