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