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

Function acl_dlink_insert

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

Source from the content-addressed store, hash-verified

592}
593
594ACL_DITEM *acl_dlink_insert(ACL_DLINK *plink, acl_int64 begin, acl_int64 end)
595{
596 if (begin > end) {
597 acl_int64 tmp;
598 /* swap the begin and end if end < begin */
599 tmp = begin;
600 begin = end;
601 end = tmp;
602 }
603
604 if(acl_array_size(plink->parray) == 0) {
605 /* this is the first item of the array */
606 return dlink_append(plink->parray, begin, end);
607 }
608
609 /* �˺������п��ܽ����˽����ĺϲ� */
610 return dlink_add(plink->parray, begin, end);
611}
612
613int acl_dlink_delete(ACL_DLINK *plink, acl_int64 n)
614{

Callers 5

dlink_iterFunction · 0.85
buildFunction · 0.85
acl_iplink_insert_binFunction · 0.85
rule_matchClass · 0.85
addMethod · 0.85

Calls 3

acl_array_sizeFunction · 0.85
dlink_appendFunction · 0.85
dlink_addFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…