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

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.25    ! paf         8:        $Id: pa_types.h,v 1.24 2001/04/05 11:01:55 paf Exp $
1.2       paf         9: */
                     10: 
1.1       paf        11: #ifndef PA_TYPES_H
                     12: #define PA_TYPES_H
                     13: 
1.23      paf        14: #include "pa_config_includes.h"
1.2       paf        15: 
1.23      paf        16: #if _MSC_VER
                     17: #      pragma warning(disable:4355)   // disable C4355 warning about using this
                     18:                                       // in calls to parent constructors
                     19: #      pragma warning(disable:4065)   // switch statement contains 'default' 
                     20:                                                                   // but no 'case' labels
1.25    ! paf        21: #      pragma warning(disable:4800)   // disable warning about (bool)(1&2)
1.14      paf        22: #endif
1.4       paf        23: 
1.17      paf        24: /// for rare cases of undefined length using this-sized strings
1.15      paf        25: #define MAX_STRING 0x400
1.17      paf        26: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12      paf        27: #define MAX_NUMBER 40
1.2       paf        28: 
1.1       paf        29: #undef uint
1.17      paf        30: /// handy type
1.1       paf        31: typedef unsigned int uint;
1.24      paf        32: #undef ulong
                     33: /// handy type
                     34: typedef unsigned long ulong;
1.2       paf        35: 
1.7       paf        36: #ifndef NO_STRING_ORIGIN
1.17      paf        37: /// all String pieces hold information of where they come from
1.4       paf        38: struct Origin {
1.17      paf        39:        const char *file;  ///< macros file name | load file name | sql query text
                     40:        uint line; ///< file line no | record no
1.7       paf        41: };
1.2       paf        42: #endif
1.1       paf        43: 
                     44: #endif

E-mail: