Re-generate all headers with latest scripts/MakeHeader.py

Sync-up missing extern declarations for many functions.
This commit is contained in:
Nathan Scott
2020-08-18 17:41:49 +10:00
parent 579995c7c2
commit 7ac1c709b7
40 changed files with 215 additions and 215 deletions

View File

@ -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