--- parser3/src/include/pa_common.h 2023/09/26 20:49:07 1.192 +++ 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.192 2023/09/26 20:49:07 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" @@ -38,7 +38,7 @@ class Request; #define HTTP_CONTENT_TYPE_MULTIPART_RELATED "multipart/related" #define HTTP_CONTENT_TYPE_MULTIPART_MIXED "multipart/mixed" -const String content_disposition_filename_name(CONTENT_DISPOSITION_FILENAME_NAME); +extern const String content_disposition_filename_name; #define HASH_ORDER @@ -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*/);