Run first app from ramdisk!
This commit is contained in:
@@ -130,6 +130,66 @@
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define dlinklist_index_of(type, head, ele, out_idx) \
|
||||
do { \
|
||||
(out_idx) = -1; \
|
||||
int __idx = 0; \
|
||||
type __tmp = (head); \
|
||||
while (__tmp != NULL) { \
|
||||
if (__tmp == (ele)) { \
|
||||
(out_idx) = __idx; \
|
||||
break; \
|
||||
} \
|
||||
__tmp = __tmp->next; \
|
||||
__idx++; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define dlinklist_index_of_prop(type, head, propname, propvalue, out_idx) \
|
||||
do { \
|
||||
(out_idx) = -1; \
|
||||
int __idx = 0; \
|
||||
type __tmp = (head); \
|
||||
while (__tmp != NULL) { \
|
||||
if (__tmp->propname == (propvalue)) { \
|
||||
(out_idx) = __idx; \
|
||||
break; \
|
||||
} \
|
||||
__tmp = __tmp->next; \
|
||||
__idx++; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define linklist_index_of(type, head, ele, out_idx) \
|
||||
do { \
|
||||
(out_idx) = -1; \
|
||||
int __idx = 0; \
|
||||
type __tmp = (head); \
|
||||
while (__tmp != NULL) { \
|
||||
if (__tmp == (ele)) { \
|
||||
(out_idx) = __idx; \
|
||||
break; \
|
||||
} \
|
||||
__tmp = __tmp->next; \
|
||||
__idx++; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define linklist_index_of_prop(type, head, propname, propvalue, out_idx) \
|
||||
do { \
|
||||
(out_idx) = -1; \
|
||||
int __idx = 0; \
|
||||
type __tmp = (head); \
|
||||
while (__tmp != NULL) { \
|
||||
if (__tmp->propname == (propvalue)) { \
|
||||
(out_idx) = __idx; \
|
||||
break; \
|
||||
} \
|
||||
__tmp = __tmp->next; \
|
||||
__idx++; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define linklist_append(type, head, new) \
|
||||
do { \
|
||||
if ((new) != NULL) { \
|
||||
|
||||
Reference in New Issue
Block a user