--- parser3/src/include/pa_common.h 2024/05/11 19:20:41 1.193 +++ parser3/src/include/pa_common.h 2024/12/23 18:30:55 1.196 @@ -1,14 +1,14 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_COMMON_H #define PA_COMMON_H -#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.193 2024/05/11 19:20:41 moko Exp $" +#define IDENT_PA_COMMON_H "$Id: pa_common.h,v 1.196 2024/12/23 18:30:55 moko Exp $" #include "pa_string.h" #include "pa_hash.h" @@ -99,7 +99,7 @@ FILE *pa_fopen(const char *pathname, con file related functions */ -#define FILE_BUFFER_SIZE 4096 +#define FILE_BUFFER_SIZE (128*0x400) int pa_lock_shared_blocking(int fd); int pa_lock_exclusive_blocking(int fd); @@ -227,7 +227,7 @@ char *lsplit(char *string, char delim); char *lsplit(char **string_ref,char delim); char *rsplit(char *string, char delim); -const char* format(double value, const char *fmt); +const char* format_double(double value, const char *fmt); char* unescape_chars(const char* cp, int len, Charset* client_charset=0, bool js=false/*true==decode \uXXXX and don't convert '+' to space*/);