--- parser3/src/include/pa_common.h 2005/08/09 08:14:49 1.102 +++ parser3/src/include/pa_common.h 2005/11/22 11:12:39 1.104 @@ -8,7 +8,7 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2005/08/09 08:14:49 $"; +static const char * const IDENT_COMMON_H="$Date: 2005/11/22 11:12:39 $"; #include "pa_string.h" #include "pa_hash.h" @@ -212,10 +212,18 @@ void remove_crlf(char *start, char *end) void check_safe_mode(struct stat finfo, const String& file_spec, const char* fname); #endif -char* pa_base64(const char *in, size_t len); +char* pa_base64_encode(const char *in, size_t in_size); +void pa_base64_decode(const char *in, size_t in_size, void*& result, size_t& result_size); // globals 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