--- parser3/src/include/pa_common.h 2003/01/24 08:19:09 1.89.2.2 +++ parser3/src/include/pa_common.h 2003/01/24 14:36:10 1.89.2.3 @@ -8,15 +8,14 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char* IDENT_COMMON_H="$Date: 2003/01/24 08:19:09 $"; +static const char* IDENT_COMMON_H="$Date: 2003/01/24 14:36:10 $"; #include "pa_pool.h" #include "pa_string.h" +#include "pa_hash.h" +#include "pa_value.h" -template class Hash; -typedef Hash StringHash; - -class Value; +typedef Hash HashStringValue; // replace system s*nprintf with our versions #undef vsnprintf @@ -115,10 +114,10 @@ bool file_read_action_under_lock(ConstSt @returns true if read OK */ -char *file_read_text(Pool& pool, +char *file_read_text(Pool& pool, Charset& charset, ConstStringPtr file_spec, bool fail_on_read_problem=true, - StringHash* options=0, StringHash** out_fields=0); + HashStringValue* options=0, HashStringValue** out_fields=0); /** read specified file using pool, @@ -126,11 +125,11 @@ char *file_read_text(Pool& pool, @returns true if read OK */ -bool file_read(Pool& pool, +bool file_read(Pool& pool, Charset& charset, ConstStringPtr file_spec, void *& ptr, size_t& size, bool as_text, - StringHash* options=0, StringHash** out_fields=0, + HashStringValue* options=0, HashStringValue** out_fields=0, bool fail_on_read_problem=true); typedef void (*File_write_action)(int f, void *context);