mirror of
https://github.com/FAUSheppy/colorredstderr-mirror
synced 2025-12-10 00:48:33 +01:00
Prevent inlining of handle_*_pre/post() functions.
This commit is contained in:
@@ -135,6 +135,13 @@ static void init_pre_post_string(void) {
|
||||
post_string_size = strlen(post_string);
|
||||
}
|
||||
|
||||
/* Don't inline any of the pre/post functions. Keep the hook function as small
|
||||
* as possible for speed reasons. */
|
||||
static void handle_fd_pre(int fd) __noinline;
|
||||
static void handle_fd_post(int fd) __noinline;
|
||||
static void handle_file_pre(FILE *stream) __noinline;
|
||||
static void handle_file_post(FILE *stream) __noinline;
|
||||
|
||||
static void handle_fd_pre(int fd) {
|
||||
int saved_errno = errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user