Annotation of parser3/src/include/pa_types.h, revision 1.24
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.24 ! paf 8: $Id: pa_types.h,v 1.23 2001/03/23 13:08:09 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.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: