mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 21:44:36 +03:00
Re-generate all headers with latest scripts/MakeHeader.py
Sync-up missing extern declarations for many functions.
This commit is contained in:
10
XAlloc.h
10
XAlloc.h
@ -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
|
||||
|
Reference in New Issue
Block a user