Annotation of parser3/src/include/pa_types.h, revision 1.18

1.17      paf         1: /** @file
1.18    ! paf         2:        Parser: generally used types & constants decls.
        !             3: 
1.8       paf         4:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.18    ! paf         5: 
1.9       paf         6:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.8       paf         7: 
1.18    ! paf         8:        $Id: pa_types.h,v 1.17 2001/03/19 15:29:38 paf Exp $
1.2       paf         9: */
                     10: 
1.1       paf        11: #ifndef PA_TYPES_H
                     12: #define PA_TYPES_H
                     13: 
1.2       paf        14: #ifdef HAVE_CONFIG_H
1.13      paf        15: #      include "pa_config.h"
1.2       paf        16: #endif
                     17: 
1.4       paf        18: #ifdef WIN32
1.16      paf        19: #      if _MSC_VER
                     20: #              pragma warning(disable:4355)   // disable C4355 warning about using this
                     21:                                               // in calls to parent constructors
                     22: #      endif
1.14      paf        23: #endif
1.13      paf        24: 
1.14      paf        25: #ifdef WIN32
1.17      paf        26: /// path delimiter char, depens on OS
1.14      paf        27: #      define PATH_DELIMITER_CHAR '\\'
1.17      paf        28: /// path delimiter string, depens on OS
1.14      paf        29: #      define PATH_DELIMITER_STRING "\\"
                     30: #else
1.17      paf        31: /// path delimiter char, depens on OS
1.14      paf        32: #      define PATH_DELIMITER_CHAR '/'
1.17      paf        33: /// path delimiter char, depens on OS
1.14      paf        34: #      define PATH_DELIMITER_STRING "/"
                     35: #endif
1.13      paf        36: 
1.4       paf        37: 
1.17      paf        38: /// for rare cases of undefined length using this-sized strings
1.15      paf        39: #define MAX_STRING 0x400
1.17      paf        40: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12      paf        41: #define MAX_NUMBER 40
1.2       paf        42: 
1.1       paf        43: #undef uint
1.17      paf        44: /// handy type
1.1       paf        45: typedef unsigned int uint;
1.2       paf        46: 
1.7       paf        47: #ifndef NO_STRING_ORIGIN
1.17      paf        48: /// all String pieces hold information of where they come from
1.4       paf        49: struct Origin {
1.17      paf        50:        const char *file;  ///< macros file name | load file name | sql query text
                     51:        uint line; ///< file line no | record no
1.7       paf        52: };
1.2       paf        53: #endif
1.1       paf        54: 
                     55: #endif

E-mail: