summaryrefslogtreecommitdiff
path: root/include/saa.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-04-23 23:37:11 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-23 23:37:11 -0700
commit6e11b2cc544572d5283e2c584ab95bcaf17997a7 (patch)
tree40198af69a9b77f25c1b06eb6bd1d443b599e28b /include/saa.h
parent40f0a7495aa1353d90c8fb68912b82c3af2ff01d (diff)
downloadnasm-6e11b2cc544572d5283e2c584ab95bcaf17997a7.tar.gz
saa, raa: saa_init() and raa_init() will never return NULL
Like other NASM allocation functions, these will abort rather than ever return NULL. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/saa.h')
-rw-r--r--include/saa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/saa.h b/include/saa.h
index afd25a45..9d939ef5 100644
--- a/include/saa.h
+++ b/include/saa.h
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 1996-2009 The NASM Authors - All Rights Reserved
+ * Copyright 1996-2017 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
@@ -66,7 +66,7 @@ struct SAA {
char **blk_ptrs; /* Pointer to pointer blocks */
};
-struct SAA *saa_init(size_t elem_len); /* 1 == byte */
+struct SAA * never_null saa_init(size_t elem_len); /* 1 == byte */
void saa_free(struct SAA *);
void *saa_wstruct(struct SAA *); /* return a structure of elem_len */
void saa_wbytes(struct SAA *, const void *, size_t); /* write arbitrary bytes */