Annotation of parser3/src/include/pa_types.h, revision 1.21
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.21 ! paf 8: $Id: pa_types.h,v 1.20 2001/03/19 19:17:43 paf Exp $
1.2 paf 9: */
10:
1.1 paf 11: #ifndef PA_TYPES_H
12: #define PA_TYPES_H
13:
1.2 paf 14: #ifdef HAVE_CONFIG_H
1.13 paf 15: # include "pa_config.h"
1.2 paf 16: #endif
17:
1.4 paf 18: #ifdef WIN32
1.16 paf 19: # if _MSC_VER
20: # pragma warning(disable:4355) // disable C4355 warning about using this
21: // in calls to parent constructors
1.19 paf 22: # pragma warning(disable:4065) // switch statement contains 'default'
23: // but no 'case' labels
1.16 paf 24: # endif
1.14 paf 25: #endif
1.13 paf 26:
1.21 ! paf 27: /// path delimiter char
1.14 paf 28: # define PATH_DELIMITER_CHAR '/'
1.21 ! paf 29: /// path delimiter string
1.14 paf 30: # define PATH_DELIMITER_STRING "/"
1.4 paf 31:
1.17 paf 32: /// for rare cases of undefined length using this-sized strings
1.15 paf 33: #define MAX_STRING 0x400
1.17 paf 34: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12 paf 35: #define MAX_NUMBER 40
1.2 paf 36:
1.1 paf 37: #undef uint
1.17 paf 38: /// handy type
1.1 paf 39: typedef unsigned int uint;
1.2 paf 40:
1.7 paf 41: #ifndef NO_STRING_ORIGIN
1.17 paf 42: /// all String pieces hold information of where they come from
1.4 paf 43: struct Origin {
1.17 paf 44: const char *file; ///< macros file name | load file name | sql query text
45: uint line; ///< file line no | record no
1.7 paf 46: };
1.2 paf 47: #endif
1.1 paf 48:
49: #endif
E-mail: