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

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.31      paf         5:        Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)
1.8       paf         6: 
1.33    ! paf         7:        $Id: pa_types.h,v 1.32 2001/11/16 12:38:43 paf Exp $
1.2       paf         8: */
                      9: 
1.1       paf        10: #ifndef PA_TYPES_H
                     11: #define PA_TYPES_H
                     12: 
1.23      paf        13: #include "pa_config_includes.h"
1.2       paf        14: 
1.23      paf        15: #if _MSC_VER
1.27      parser     16: // using this in calls to parent constructors
                     17: #pragma warning(disable:4355)   
                     18: 
                     19: //#    pragma warning(disable:4065)   // switch statement contains 'default' 
1.23      paf        20:                                                                   // but no 'case' labels
1.27      parser     21: //#    pragma warning(disable:4800)   // (bool)(1&2)
                     22: 
                     23: // assignment operator could not be generated
                     24: //#pragma warning(disable:4512) 
1.28      parser     25: 
                     26: // identifier was truncated to '255' characters in the debug information
                     27: #pragma warning(disable:4786)
1.27      parser     28: 
1.14      paf        29: #endif
1.4       paf        30: 
1.17      paf        31: /// for rare cases of undefined length using this-sized strings
1.15      paf        32: #define MAX_STRING 0x400
1.17      paf        33: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12      paf        34: #define MAX_NUMBER 40
1.2       paf        35: 
1.33    ! paf        36: /// handy type
        !            37: #undef ushort
        !            38: typedef unsigned short ushort;
        !            39: const size_t MAX_USHORT=1<<sizeof(ushort)*8-1;
        !            40: /// handy type
1.1       paf        41: #undef uint
1.33    ! paf        42: typedef unsigned int uint;
1.17      paf        43: /// handy type
1.24      paf        44: #undef ulong
                     45: typedef unsigned long ulong;
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.29      paf        49: 
1.30      paf        50: #include "pa_pragma_pack_begin.h"
1.4       paf        51: struct Origin {
1.17      paf        52:        const char *file;  ///< macros file name | load file name | sql query text
1.29      paf        53:        unsigned short line; ///< file line no | record no
1.7       paf        54: };
1.32      paf        55: #define ORIGIN_FILE_LINE_FORMAT "%.300s(%d)"
                     56: 
1.30      paf        57: #include "pa_pragma_pack_end.h"
1.29      paf        58: 
1.2       paf        59: #endif
1.1       paf        60: 
                     61: #endif

E-mail: