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

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.20    ! paf         8:        $Id: pa_types.h,v 1.19 2001/03/19 17:56:26 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
1.19      paf        22: #              pragma warning(disable:4065)   // switch statement contains 'default' 
                     23:                                                                           // but no 'case' labels
1.16      paf        24: #      endif
1.14      paf        25: #endif
1.13      paf        26: 
1.20    ! paf        27: /** @def PATH_DELIMITER_CHAR
        !            28:        path delimiter char, depens on OS
        !            29: */
        !            30: /**    @def PATH_DELIMITER_STRING
        !            31:        path delimiter string, depens on OS
        !            32: */
1.14      paf        33: #ifdef WIN32
                     34: #      define PATH_DELIMITER_CHAR '\\'
                     35: #      define PATH_DELIMITER_STRING "\\"
                     36: #else
                     37: #      define PATH_DELIMITER_CHAR '/'
                     38: #      define PATH_DELIMITER_STRING "/"
                     39: #endif
1.13      paf        40: 
1.4       paf        41: 
1.17      paf        42: /// for rare cases of undefined length using this-sized strings
1.15      paf        43: #define MAX_STRING 0x400
1.17      paf        44: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12      paf        45: #define MAX_NUMBER 40
1.2       paf        46: 
1.1       paf        47: #undef uint
1.17      paf        48: /// handy type
1.1       paf        49: typedef unsigned int uint;
1.2       paf        50: 
1.7       paf        51: #ifndef NO_STRING_ORIGIN
1.17      paf        52: /// all String pieces hold information of where they come from
1.4       paf        53: struct Origin {
1.17      paf        54:        const char *file;  ///< macros file name | load file name | sql query text
                     55:        uint line; ///< file line no | record no
1.7       paf        56: };
1.2       paf        57: #endif
1.1       paf        58: 
                     59: #endif

E-mail: