| 142 | #endif |
| 143 | |
| 144 | static ACL_DITEM *dlink_succ_insert(ACL_ARRAY *a, int idx_position, |
| 145 | acl_int64 begin, acl_int64 end) |
| 146 | { |
| 147 | ACL_DITEM *pitem; |
| 148 | int ret; |
| 149 | |
| 150 | pitem = (ACL_DITEM *) acl_mymalloc(sizeof(ACL_DITEM)); |
| 151 | if(pitem == NULL) |
| 152 | return NULL; |
| 153 | pitem->begin = begin; |
| 154 | pitem->end = end; |
| 155 | ret = acl_array_succ_insert(a, idx_position, pitem); |
| 156 | if(ret < 0) { |
| 157 | acl_myfree(pitem); |
| 158 | return NULL; |
| 159 | } |
| 160 | pitem->pnode = NULL; |
| 161 | |
| 162 | return pitem; |
| 163 | } |
| 164 | |
| 165 | static ACL_DITEM *dlink_append(ACL_ARRAY *a, acl_int64 begin, acl_int64 end) |
| 166 | { |
no test coverage detected
searching dependent graphs…