Annotation of parser3/src/include/pa_types.h, revision 1.17
1.17 ! paf 1: /** @file
1.8 paf 2: Parser
3: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.9 paf 4: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.8 paf 5:
1.17 ! paf 6: $Id: pa_types.h,v 1.16 2001/03/18 20:31:26 paf Exp $
1.2 paf 7: */
8:
1.1 paf 9: #ifndef PA_TYPES_H
10: #define PA_TYPES_H
11:
1.2 paf 12: #ifdef HAVE_CONFIG_H
1.13 paf 13: # include "pa_config.h"
1.2 paf 14: #endif
15:
1.4 paf 16: #ifdef WIN32
1.16 paf 17: # if _MSC_VER
18: # pragma warning(disable:4355) // disable C4355 warning about using this
19: // in calls to parent constructors
20: # endif
1.14 paf 21: #endif
1.13 paf 22:
1.14 paf 23: #ifdef WIN32
1.17 ! paf 24: /// path delimiter char, depens on OS
1.14 paf 25: # define PATH_DELIMITER_CHAR '\\'
1.17 ! paf 26: /// path delimiter string, depens on OS
1.14 paf 27: # define PATH_DELIMITER_STRING "\\"
28: #else
1.17 ! paf 29: /// path delimiter char, depens on OS
1.14 paf 30: # define PATH_DELIMITER_CHAR '/'
1.17 ! paf 31: /// path delimiter char, depens on OS
1.14 paf 32: # define PATH_DELIMITER_STRING "/"
33: #endif
1.13 paf 34:
1.4 paf 35:
1.17 ! paf 36: /// for rare cases of undefined length using this-sized strings
1.15 paf 37: #define MAX_STRING 0x400
1.17 ! paf 38: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12 paf 39: #define MAX_NUMBER 40
1.2 paf 40:
1.1 paf 41: #undef uint
1.17 ! paf 42: /// handy type
1.1 paf 43: typedef unsigned int uint;
1.2 paf 44:
1.7 paf 45: #ifndef NO_STRING_ORIGIN
1.17 ! paf 46: /// all String pieces hold information of where they come from
1.4 paf 47: struct Origin {
1.17 ! paf 48: const char *file; ///< macros file name | load file name | sql query text
! 49: uint line; ///< file line no | record no
1.7 paf 50: };
1.2 paf 51: #endif
1.1 paf 52:
53: #endif
E-mail: