summaryrefslogtreecommitdiff
path: root/src/shared.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-03-24 18:10:58 -0500
committer@syxhe <https://t.me/syxhe>2025-03-24 18:10:58 -0500
commita407458a893fd0716cfee564ad98756364c25a7a (patch)
treee2117ffeef747dd503c4b354e13c0ab34399d063 /src/shared.h
parent3b5bf3b6ab23c6a5157919490cc07787614f95b8 (diff)
Change the name of readwholebuffer and writewholebuffer so that they won't autocomplete when typing "return"
Diffstat (limited to 'src/shared.h')
-rw-r--r--src/shared.h8
1 files changed, 3 insertions, 5 deletions
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);
36void* xreallocarray(void *ptr, size_t nmemb, size_t size); 36void* xreallocarray(void *ptr, size_t nmemb, size_t size);
37 37
38// Read the entire contents of a file descriptor into a malloc()'ed buffer 38// Read the entire contents of a file descriptor into a malloc()'ed buffer
39int readwholebuffer(char **str, unsigned long int initsize, int fd); 39int rwbuf(char **str, unsigned long int initsize, int fd);
40 40
41// Write the entire contents of a buffer into a file descriptor 41// Write the entire contents of a buffer into a file descriptor
42int writewholebuffer(int fd, const unsigned char *buf, int len); 42int wwbuf(int fd, const unsigned char *buf, int len);
43 43
44// `dirname()` reimplementation that returns a malloc()'ed string. According to the `x___` naming scheme, exits on alloc error. 44// `dirname()` reimplementation that returns a malloc()'ed string. According to the `x___` naming scheme, exits/aborts on alloc error.
45// `___VXGG___XALLOC_EXIT_ON_ERROR___` influences whether `exit()` or `abort()` is called on error, and `___VXGG___VERBOSE_ERRORS___`
46// influences whether diagnostic error messages are printed
47char *xdirname(const char * const path); 45char *xdirname(const char * const path);
48 46
49#endif \ No newline at end of file 47#endif \ No newline at end of file