1 /* $Id$ */
2 /*
3  * Copyright (C) 2017 Teluu Inc. (http://www.teluu.com)
4  * Copyright (C) 2017 George Joseph <gjoseph@digium.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 #ifndef __PJ_LIMITS_H__
21 #define __PJ_LIMITS_H__
22 
23 /**
24  * @file limits.h
25  * @brief Common min and max values
26  */
27 
28 #include <pj/compat/limits.h>
29 
30 /** Maximum value for signed 32-bit integer. */
31 #define PJ_MAXINT32	0x7fffffff
32 
33 /** Minimum value for signed 32-bit integer. */
34 #define PJ_MININT32	0x80000000
35 
36 /** Maximum value for unsigned 16-bit integer. */
37 #define PJ_MAXUINT16	0xffff
38 
39 /** Maximum value for unsigned char. */
40 #define PJ_MAXUINT8	0xff
41 
42 /** Maximum value for long. */
43 #define PJ_MAXLONG	LONG_MAX
44 
45 /** Minimum value for long. */
46 #define PJ_MINLONG	LONG_MIN
47 
48 /** Minimum value for unsigned long. */
49 #define PJ_MAXULONG	ULONG_MAX
50 
51 #endif  /* __PJ_LIMITS_H__ */
52