--- parser3/src/include/pa_common.h 2001/03/24 15:57:59 1.25 +++ parser3/src/include/pa_common.h 2001/03/27 14:50:46 1.28 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.h,v 1.25 2001/03/24 15:57:59 paf Exp $ + $Id: pa_common.h,v 1.28 2001/03/27 14:50:46 paf Exp $ */ #ifndef PA_COMMON_H @@ -87,6 +87,14 @@ void file_write(Pool& pool, bool exclusive=false*/); /** + delete specified file + throws an exception in case of problems +*/ +void file_delete(Pool& pool, const String& file_spec); + +bool file_readable(const String& file_spec); + +/** scans for @a delim[default \n] in @a *row_ref, @return piece of line before it or end of string, if no @a delim found assigns @a *row_ref to point right after delimiter if there were one @@ -120,5 +128,9 @@ const String& attributed_meaning_to_stri void back_slashes_to_slashes(char *s); #endif +#ifndef _qsort +# define _qsort(names,cnt,sizeof_names,func_addr) \ + qsort(names,cnt,sizeof_names,func_addr) +#endif #endif