--- parser3/src/include/pa_common.h 2002/11/21 09:18:19 1.83 +++ parser3/src/include/pa_common.h 2002/11/25 14:57:33 1.86 @@ -8,12 +8,12 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char* IDENT_COMMON_H="$Date: 2002/11/21 09:18:19 $"; +static const char* IDENT_COMMON_H="$Date: 2002/11/25 14:57:33 $"; #include "pa_pool.h" #include "pa_string.h" -class Value; +class Hash; // replace system s*nprintf with our versions #undef vsnprintf @@ -90,6 +90,7 @@ void fix_line_breaks( ); typedef void (*File_read_action)(Pool& pool, + struct stat& finfo, int f, const String& file_spec, const char *fname, bool as_text, void *context); @@ -113,7 +114,8 @@ bool file_read_action_under_lock(Pool& p */ char *file_read_text(Pool& pool, const String& file_spec, - bool fail_on_read_problem=true); + bool fail_on_read_problem=true, + Hash *options=0, Hash** out_fields=0); /** read specified file using pool, @@ -124,6 +126,7 @@ char *file_read_text(Pool& pool, bool file_read(Pool& pool, const String& file_spec, void*& data, size_t& size, bool as_text, + Hash *options=0, Hash** out_fields=0, bool fail_on_read_problem=true); typedef void (*File_write_action)(int f, void *context);