--- parser3/src/include/pa_common.h 2004/07/26 14:43:08 1.100 +++ parser3/src/include/pa_common.h 2005/11/16 14:47:36 1.103 @@ -1,14 +1,14 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2004/07/26 14:43:08 $"; +static const char * const IDENT_COMMON_H="$Date: 2005/11/16 14:47:36 $"; #include "pa_string.h" #include "pa_hash.h" @@ -69,6 +69,8 @@ int pa_lock_exclusive_blocking(int fd); int pa_lock_exclusive_nonblocking(int fd); int pa_unlock(int fd); +void create_dir_for_file(const String& file_spec); + typedef void (*File_read_action)( struct stat& finfo, int f, @@ -216,4 +218,11 @@ char* pa_base64(const char *in, size_t l extern const String file_status_name; +// global defines for file options which are handled but not checked elsewhere, we check them + +#define PA_SQL_LIMIT_NAME "limit" +#define PA_SQL_OFFSET_NAME "offset" +#define PA_COLUMN_SEPARATOR_NAME "separator" +#define PA_COLUMN_ENCLOSER_NAME "encloser" + #endif