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

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.12    ! paf         6:        $Id: pa_common.h,v 1.11 2001/03/13 19:35:04 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
1.12    ! paf        19: 
        !            20: #define open _open
        !            21: #define close _close
        !            22: #define read _read
        !            23: #define stat _stat
        !            24: 
1.1       paf        25: #define vsnprintf __vsnprintf 
                     26: #define snprintf __snprintf
                     27: 
                     28: int __vsnprintf(char *, size_t, const char *, va_list);
                     29: int __snprintf(char *, size_t, const char *, ...);
1.11      paf        30: 
1.1       paf        31: #endif
1.2       paf        32: 
1.8       paf        33: char *file_read(Pool& pool, const char *fname, bool fail_on_read_problem=true);
1.7       paf        34: char *getrow(char **row_ref,char delim='\n');
                     35: //char *lsplit(char *,char);
                     36: char *lsplit(char **string_ref,char delim);
1.8       paf        37: char *rsplit(char *string, char delim);
1.9       paf        38: char *format(Pool& pool, double value, char *fmt);
1.10      paf        39: 
                     40: #ifndef max
                     41: inline int max(int a,int b) { return a>b?a:b; }
                     42: inline int min(int a,int b){ return a<b?a:b; }
                     43: #endif
                     44: 
1.11      paf        45: size_t stdout_write(const char *buf);
1.1       paf        46: 
                     47: #endif

E-mail: