MCPcopy Create free account
hub / github.com/acl-dev/acl / dlink_succ_insert

Function dlink_succ_insert

lib_acl/src/stdlib/common/acl_dlink.c:144–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142#endif
143
144static 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
165static ACL_DITEM *dlink_append(ACL_ARRAY *a, acl_int64 begin, acl_int64 end)
166{

Callers 1

dlink_addFunction · 0.85

Calls 1

acl_array_succ_insertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…