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

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.9       paf         5:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.8       paf         6: 
1.29    ! paf         7:        $Id: pa_types.h,v 1.28 2001/10/19 14:42:53 parser 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.29    ! paf        15: #if defined(_MSC_VER) || defined(HAVE_PRAGMA_PACK)
        !            16: #pragma pack(1)
        !            17: #endif
        !            18: 
1.23      paf        19: #if _MSC_VER
1.27      parser     20: // using this in calls to parent constructors
                     21: #pragma warning(disable:4355)   
                     22: 
                     23: //#    pragma warning(disable:4065)   // switch statement contains 'default' 
1.23      paf        24:                                                                   // but no 'case' labels
1.27      parser     25: //#    pragma warning(disable:4800)   // (bool)(1&2)
                     26: 
                     27: // assignment operator could not be generated
                     28: //#pragma warning(disable:4512) 
1.28      parser     29: 
                     30: // identifier was truncated to '255' characters in the debug information
                     31: #pragma warning(disable:4786)
1.27      parser     32: 
1.29    ! paf        33: // used #pragma pack to change alignment
        !            34: #pragma warning(disable:4103)
        !            35: 
1.14      paf        36: #endif
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.24      paf        46: #undef ulong
                     47: /// handy type
                     48: typedef unsigned long ulong;
1.2       paf        49: 
1.7       paf        50: #ifndef NO_STRING_ORIGIN
1.17      paf        51: /// all String pieces hold information of where they come from
1.29    ! paf        52: 
1.4       paf        53: struct Origin {
1.17      paf        54:        const char *file;  ///< macros file name | load file name | sql query text
1.29    ! paf        55:        unsigned short line; ///< file line no | record no
1.7       paf        56: };
1.29    ! paf        57: 
1.2       paf        58: #endif
1.1       paf        59: 
                     60: #endif

E-mail: