| 120 | |
| 121 | #ifdef _USE_PRED_INSERT_ |
| 122 | static ACL_DITEM *dlink_pred_insert(ACL_ARRAY *a, int idx_position, |
| 123 | acl_int64 begin, acl_int64 end) |
| 124 | { |
| 125 | ACL_DITEM *pitem; |
| 126 | int ret; |
| 127 | |
| 128 | pitem = acl_mymalloc(sizeof(ACL_DITEM)); |
| 129 | if(pitem == NULL) |
| 130 | return NULL; |
| 131 | pitem->begin = begin; |
| 132 | pitem->end = end; |
| 133 | ret = acl_array_pred_insert(a, idx_position, pitem); |
| 134 | if(ret < 0) { |
| 135 | acl_myfree(pitem); |
| 136 | return NULL; |
| 137 | } |
| 138 | pitem->pnode = NULL; |
| 139 | |
| 140 | return pitem; |
| 141 | } |
| 142 | #endif |
| 143 | |
| 144 | static ACL_DITEM *dlink_succ_insert(ACL_ARRAY *a, int idx_position, |
nothing calls this directly
no test coverage detected
searching dependent graphs…