Annotation of parser3/src/include/pa_common.h, revision 1.11

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.11    ! paf         6:        $Id: pa_common.h,v 1.10 2001/03/13 18:32:46 paf Exp $
1.1       paf         7: */
                      8: 
                      9: #ifndef PA_COMMON_H
                     10: #define PA_COMMON_H
                     11: 
1.11    ! paf        12: #include "pa_config.h"
        !            13: 
1.1       paf        14: #include <stdarg.h>
1.2       paf        15: #include "pa_pool.h"
1.1       paf        16: 
1.11    ! paf        17: 
1.1       paf        18: #ifdef WIN32
                     19: #define vsnprintf __vsnprintf 
                     20: #define snprintf __snprintf
                     21: 
                     22: int __vsnprintf(char *, size_t, const char *, va_list);
                     23: int __snprintf(char *, size_t, const char *, ...);
1.11    ! paf        24: 
1.1       paf        25: #endif
1.2       paf        26: 
1.8       paf        27: char *file_read(Pool& pool, const char *fname, bool fail_on_read_problem=true);
1.7       paf        28: char *getrow(char **row_ref,char delim='\n');
                     29: //char *lsplit(char *,char);
                     30: char *lsplit(char **string_ref,char delim);
1.8       paf        31: char *rsplit(char *string, char delim);
1.9       paf        32: char *format(Pool& pool, double value, char *fmt);
1.10      paf        33: 
                     34: #ifndef max
                     35: inline int max(int a,int b) { return a>b?a:b; }
                     36: inline int min(int a,int b){ return a<b?a:b; }
                     37: #endif
                     38: 
1.11    ! paf        39: size_t stdout_write(const char *buf);
1.1       paf        40: 
                     41: #endif

E-mail: