diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-24 03:04:25 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-24 03:04:25 +0200 |
commit | 40de1bb4fec2d17ad0aa10d8b0f7fa05c4d4a196 (patch) | |
tree | 32af533853b15fb50e9d753685fd1a53ad789e15 /shared/external.h | |
parent | 1865f867fbe24ad11351ae2a196f117d8d55d0ca (diff) |
Some more minor annotations
Diffstat (limited to 'shared/external.h')
-rw-r--r-- | shared/external.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/external.h b/shared/external.h index 1d7f3b7..beba93a 100644 --- a/shared/external.h +++ b/shared/external.h @@ -3,13 +3,13 @@ /* These need to be defined in the linking binary */ #define zmalloc(s) __zmalloc(__func__, __LINE__, s) -void *__zmalloc(const char *fn, int line, size_t s); +void *__zmalloc(const char *fn, int line, size_t s) _malloc_ _alloc_(3); #define xstrdup(s) __xstrdup(__func__, __LINE__, s) -char *__xstrdup(const char *fn, int line, const char *s); +char *__xstrdup(const char *fn, int line, const char *s) _malloc_; #define xstrndup(s, n) __xstrndup(__func__, __LINE__, s, n) -char *__xstrndup(const char *fn, int line, const char *s, size_t n); +char *__xstrndup(const char *fn, int line, const char *s, size_t n) _malloc_ _alloc_(4); #define xfree(s) __xfree(__func__, __LINE__, s) void __xfree(const char *fn, int line, void *ptr); |