nxt_list.c (65:10688b89aa16) nxt_list.c (108:f87c1c4e22be)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 39 unchanged lines hidden (view full) ---

48
49 last->next = NULL;
50 last->nelts = 0;
51
52 list->last->next = last;
53 list->last = last;
54 }
55
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 39 unchanged lines hidden (view full) ---

48
49 last->next = NULL;
50 last->nelts = 0;
51
52 list->last->next = last;
53 list->last = last;
54 }
55
56 elt = nxt_list_data(last) + last->nelts * list->size;
56 elt = nxt_pointer_to(nxt_list_data(last), last->nelts * list->size);
57 last->nelts++;
58
59 return elt;
60}
61
62
63void *
64nxt_list_zero_add(nxt_list_t *list)

--- 44 unchanged lines hidden ---
57 last->nelts++;
58
59 return elt;
60}
61
62
63void *
64nxt_list_zero_add(nxt_list_t *list)

--- 44 unchanged lines hidden ---