diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-18 17:41:49 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-18 17:41:49 +1000 |
commit | 7ac1c709b727bd460889f2765db9e2a37535ef90 (patch) | |
tree | 02a76cefab54370e77dbeb9888f5f223d7515eb0 /XAlloc.h | |
parent | 579995c7c2385b844d81b2508710dcbbe9b0d64f (diff) |
Re-generate all headers with latest scripts/MakeHeader.py
Sync-up missing extern declarations for many functions.
Diffstat (limited to 'XAlloc.h')
-rw-r--r-- | XAlloc.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11,11 +11,11 @@ #include <assert.h> #include <stdlib.h> -void* xMalloc(size_t size); +extern void* xMalloc(size_t size); -void* xCalloc(size_t nmemb, size_t size); +extern void* xCalloc(size_t nmemb, size_t size); -void* xRealloc(void* ptr, size_t size); +extern void* xRealloc(void* ptr, size_t size); #define xSnprintf(fmt, len, ...) do { int _l=len; int _n=snprintf(fmt, _l, __VA_ARGS__); if (!(_n > -1 && _n < _l)) { curs_set(1); endwin(); err(1, NULL); } } while(0) @@ -32,9 +32,9 @@ void* xRealloc(void* ptr, size_t size); #endif #if (__has_attribute(nonnull) || \ ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))) -char* xStrdup_(const char* str) __attribute__((nonnull)); +extern char* xStrdup_(const char* str) __attribute__((nonnull)); #endif // __has_attribute(nonnull) || GNU C 3.3 or later -char* xStrdup_(const char* str); +extern char* xStrdup_(const char* str); #endif |