From a407458a893fd0716cfee564ad98756364c25a7a Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 24 Mar 2025 18:10:58 -0500 Subject: Change the name of readwholebuffer and writewholebuffer so that they won't autocomplete when typing "return" --- src/shared.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/shared.h') diff --git a/src/shared.h b/src/shared.h index af6c56e..b9e7bcd 100644 --- a/src/shared.h +++ b/src/shared.h @@ -36,14 +36,12 @@ void* xcalloc(size_t nmemb, size_t size); void* xreallocarray(void *ptr, size_t nmemb, size_t size); // Read the entire contents of a file descriptor into a malloc()'ed buffer -int readwholebuffer(char **str, unsigned long int initsize, int fd); +int rwbuf(char **str, unsigned long int initsize, int fd); // Write the entire contents of a buffer into a file descriptor -int writewholebuffer(int fd, const unsigned char *buf, int len); +int wwbuf(int fd, const unsigned char *buf, int len); -// `dirname()` reimplementation that returns a malloc()'ed string. According to the `x___` naming scheme, exits on alloc error. -// `___VXGG___XALLOC_EXIT_ON_ERROR___` influences whether `exit()` or `abort()` is called on error, and `___VXGG___VERBOSE_ERRORS___` -// influences whether diagnostic error messages are printed +// `dirname()` reimplementation that returns a malloc()'ed string. According to the `x___` naming scheme, exits/aborts on alloc error. char *xdirname(const char * const path); #endif \ No newline at end of file -- cgit v1.2.3