Annotation of parser3/src/include/pa_common.h, revision 1.10
1.1 paf 1: /*
1.4 paf 2: Parser
3: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.5 paf 4: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.4 paf 5:
1.10 ! paf 6: $Id: pa_common.h,v 1.9 2001/03/12 21:54:19 paf Exp $
1.1 paf 7: */
8:
9: #ifndef PA_COMMON_H
10: #define PA_COMMON_H
11:
12: #include <stdarg.h>
1.2 paf 13: #include "pa_pool.h"
1.1 paf 14:
15: #ifdef WIN32
16: #define vsnprintf __vsnprintf
17: #define snprintf __snprintf
18:
19: int __vsnprintf(char *, size_t, const char *, va_list);
20: int __snprintf(char *, size_t, const char *, ...);
21: #endif
1.2 paf 22:
1.8 paf 23: char *file_read(Pool& pool, const char *fname, bool fail_on_read_problem=true);
1.7 paf 24: char *getrow(char **row_ref,char delim='\n');
25: //char *lsplit(char *,char);
26: char *lsplit(char **string_ref,char delim);
1.8 paf 27: char *rsplit(char *string, char delim);
1.9 paf 28: char *format(Pool& pool, double value, char *fmt);
1.10 ! paf 29:
! 30: #ifndef max
! 31: inline int max(int a,int b) { return a>b?a:b; }
! 32: inline int min(int a,int b){ return a<b?a:b; }
! 33: #endif
! 34:
1.1 paf 35:
36: #endif
E-mail: