Annotation of parser3/src/include/pa_types.h, revision 1.19
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.19 ! paf 8: $Id: pa_types.h,v 1.18 2001/03/19 17:42:13 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.14 paf 27: #ifdef WIN32
1.17 paf 28: /// path delimiter char, depens on OS
1.14 paf 29: # define PATH_DELIMITER_CHAR '\\'
1.17 paf 30: /// path delimiter string, depens on OS
1.14 paf 31: # define PATH_DELIMITER_STRING "\\"
32: #else
1.17 paf 33: /// path delimiter char, depens on OS
1.14 paf 34: # define PATH_DELIMITER_CHAR '/'
1.17 paf 35: /// path delimiter char, depens on OS
1.14 paf 36: # define PATH_DELIMITER_STRING "/"
37: #endif
1.13 paf 38:
1.4 paf 39:
1.17 paf 40: /// for rare cases of undefined length using this-sized strings
1.15 paf 41: #define MAX_STRING 0x400
1.17 paf 42: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12 paf 43: #define MAX_NUMBER 40
1.2 paf 44:
1.1 paf 45: #undef uint
1.17 paf 46: /// handy type
1.1 paf 47: typedef unsigned int uint;
1.2 paf 48:
1.7 paf 49: #ifndef NO_STRING_ORIGIN
1.17 paf 50: /// all String pieces hold information of where they come from
1.4 paf 51: struct Origin {
1.17 paf 52: const char *file; ///< macros file name | load file name | sql query text
53: uint line; ///< file line no | record no
1.7 paf 54: };
1.2 paf 55: #endif
1.1 paf 56:
57: #endif
E-mail: