Home
last modified time | relevance | path

Searched refs:LY_YANG_ARRAY_SIZE (Results 1 – 4 of 4) sorted by relevance

/dports/net/libyang/libyang-1.0.240/src/
H A Dparser_yang.h37 #define LY_YANG_ARRAY_SIZE 8 macro
H A Dparser_yang.c1430 if (!(dev->deviate_size % LY_YANG_ARRAY_SIZE)) { in yang_read_deviate()
1431 deviate = realloc(dev->deviate, (LY_YANG_ARRAY_SIZE + dev->deviate_size) * sizeof *deviate); in yang_read_deviate()
1433 memset(deviate + dev->deviate_size, 0, LY_YANG_ARRAY_SIZE * sizeof *deviate); in yang_read_deviate()
H A Dparser_yang_bis.c87 } else if (!((size) % LY_YANG_ARRAY_SIZE)) { \
90 tmp = realloc((current_ptr), (sizeof *(current_ptr)) * ((size) + LY_YANG_ARRAY_SIZE)); \
96 …(char *)tmp + (sizeof *(current_ptr)) * (size), 0, (sizeof *(current_ptr)) * LY_YANG_ARRAY_SIZE); \
H A Dyang.y.in41 } else if (!((size) % LY_YANG_ARRAY_SIZE)) { \
44 tmp = realloc((current_ptr), (sizeof *(current_ptr)) * ((size) + LY_YANG_ARRAY_SIZE)); \
50 …(char *)tmp + (sizeof *(current_ptr)) * (size), 0, (sizeof *(current_ptr)) * LY_YANG_ARRAY_SIZE); \