Searched refs:num_new (Results 1 – 4 of 4) sorted by relevance
/third_party/iptables/iptables/ |
D | xtables-eb.c | 270 unsigned int num_old, num_new, i; in merge_options() local 276 for (num_new = 0; newopts[num_new].name; num_new++); in merge_options() 281 merge = malloc(sizeof(struct option) * (num_new + num_old + 1)); in merge_options() 285 for (i = 0; i < num_new; i++) { in merge_options() 289 memset(merge + num_old + num_new, 0, sizeof(struct option)); in merge_options()
|
/third_party/boost/boost/container/ |
D | stable_vector.hpp | 1629 …const size_type num_new = static_cast<size_type>(boost::container::iterator_distance(first, last)); in insert() local 1631 if(num_new){ in insert() 1636 … index_iterator it_past_newly_constructed(this->priv_insert_forward_non_templated(idx, num_new)); in insert() 1637 const index_iterator it_past_new(it_past_newly_constructed + num_new); in insert() 1860 index_iterator priv_insert_forward_non_templated(size_type idx, size_type num_new) in priv_insert_forward_non_templated() argument 1862 index_traits_type::initialize_end_node(this->index, this->internal_data.end_node, num_new); in priv_insert_forward_non_templated() 1865 if(this->internal_data.pool_size < num_new){ in priv_insert_forward_non_templated() 1866 this->priv_increase_pool(num_new - this->internal_data.pool_size); in priv_insert_forward_non_templated() 1871 this->index.insert(this->index.begin() + idx, num_new, node_ptr()); in priv_insert_forward_non_templated()
|
/third_party/iptables/libxtables/ |
D | xtoptions.c | 77 unsigned int num_orig, num_old = 0, num_new, i; in xtables_options_xfrm() local 87 for (num_new = 0; entry[num_new].name != NULL; ++num_new) in xtables_options_xfrm() 99 merge = malloc(sizeof(*mp) * (num_orig + num_old + num_new + 1)); in xtables_options_xfrm() 111 for (i = 0; i < num_new; ++i, ++mp, ++entry) { in xtables_options_xfrm()
|
D | xtables.c | 108 unsigned int num_oold = 0, num_old = 0, num_new = 0, i; in xtables_merge_options() local 117 for (num_new = 0; newopts[num_new].name; num_new++) ; in xtables_merge_options() 128 merge = malloc(sizeof(*mp) * (num_oold + num_old + num_new + 1)); in xtables_merge_options() 139 memcpy(mp, newopts, sizeof(*mp) * num_new); in xtables_merge_options() 141 for (i = 0; i < num_new; ++i, ++mp) in xtables_merge_options()
|