Annotation of parser3/src/include/pa_types.h, revision 1.47
1.17 paf 1: /** @file
1.18 paf 2: Parser: generally used types & constants decls.
3:
1.45 paf 4: Copyright (c) 2001-2003 ArtLebedev Group (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.47 ! paf 11: static const char * const IDENT_TYPES_H="$Date: 2003/11/20 15:35:30 $";
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.17 paf 17: /// for snprintf(buf, MAX_NUMBER, "%.2f")
1.12 paf 18: #define MAX_NUMBER 40
1.2 paf 19:
1.40 paf 20: //{@ handy types
1.34 paf 21: #undef uchar
22: typedef unsigned char uchar;
23:
1.33 paf 24: #undef ushort
25: typedef unsigned short ushort;
1.34 paf 26:
1.1 paf 27: #undef uint
1.33 paf 28: typedef unsigned int uint;
1.34 paf 29:
1.24 paf 30: #undef ulong
31: typedef unsigned long ulong;
1.40 paf 32: //}@
1.2 paf 33:
1.38 paf 34: /// max value of integral type
35: #define max_integral(type) ((1<<sizeof(type)*8)-1)
1.1 paf 36:
37: #endif
E-mail: