Annotation of parser3/src/include/pa_types.h, revision 1.51
1.17 paf 1: /** @file
1.18 paf 2: Parser: generally used types & constants decls.
3:
1.51 ! moko 4: Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com)
1.37 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.2 paf 6: */
7:
1.1 paf 8: #ifndef PA_TYPES_H
9: #define PA_TYPES_H
1.42 paf 10:
1.51 ! moko 11: #define IDENT_PA_TYPES_H "$Id: 2007-11-27 09:55:06 $"
1.1 paf 12:
1.23 paf 13: #include "pa_config_includes.h"
1.4 paf 14:
1.17 paf 15: /// for rare cases of undefined length using this-sized strings
1.15 paf 16: #define MAX_STRING 0x400
1.50 misha 17: /// buffer size for parser.log
18: #define MAX_LOG_STRING 0x400*4
1.17 paf 19: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12 paf 20: #define MAX_NUMBER 40
1.2 paf 21:
1.40 paf 22: //{@ handy types
1.34 paf 23: #undef uchar
24: typedef unsigned char uchar;
25:
1.33 paf 26: #undef ushort
27: typedef unsigned short ushort;
1.34 paf 28:
1.1 paf 29: #undef uint
1.33 paf 30: typedef unsigned int uint;
1.34 paf 31:
1.24 paf 32: #undef ulong
33: typedef unsigned long ulong;
1.40 paf 34: //}@
1.2 paf 35:
1.38 paf 36: /// max value of integral type
37: #define max_integral(type) ((1<<sizeof(type)*8)-1)
1.1 paf 38:
39: #endif
E-mail: