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

Function dlink_pred_insert

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

Source from the content-addressed store, hash-verified

120
121#ifdef _USE_PRED_INSERT_
122static 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
144static ACL_DITEM *dlink_succ_insert(ACL_ARRAY *a, int idx_position,

Callers

nothing calls this directly

Calls 1

acl_array_pred_insertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…