- BB116548D11FB1B72BD214FDCBC29BDC260A10783555ACB33972F9FEA19332DA586048E72AED60CF809DAB53DACB8D037E12A9DE28709E8F1C67ACA1E9B9E3DE
+ D333128C42000A368C9CC922D9B71DDD408B6A5EAA58E077FBD1CD6E156753F438E5E95FCF375008363773B6D28C5ACD5887D467C3DCCB157D8716ADF617B94B
vtools/lib/xalloc.h
(46 . 9)(46 . 9)
5 /* Allocate an array of |n| objects, each with |s| bytes of memory,
6 dynamically, with error checking. |s| must be nonzero. */
7
8 inline void *xnmalloc(size_t n, size_t s);
9 static inline void *xnmalloc(size_t n, size_t s);
10
11 inline void *
12 static inline void *
13 xnmalloc(size_t n, size_t s) {
14 if (xalloc_oversized (n, s))
15 xalloc_die();
(59 . 9)(59 . 9)
17 |n| objects each of |s| bytes, with error checking. |s| must be
18 nonzero. */
19
20 inline void *xnrealloc(void *p, size_t n, size_t s);
21 static inline void *xnrealloc(void *p, size_t n, size_t s);
22
23 inline void *
24 static inline void *
25 xnrealloc(void *p, size_t n, size_t s) {
26 if (xalloc_oversized (n, s))
27 xalloc_die();