3 This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
5 Copyright (C) 2002-2012 by Jin-Hwan Cho and Shunsaku Hirata,
6 the dvipdfmx project team.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 #ifndef _CFF_LIMITS_H_
24 #define _CFF_LIMITS_H_
28 #define CFF_INT_MAX 0x7fffffff
29 #define CFF_INT_MIN (-0x7fffffff - 1)
31 #if (LONG_MAX < CFF_INT_MAX || LONG_MIN > CFF_INT_MIN)
32 #error "CFF support won't work on this system."
35 #define CFF_SID_MAX 64999
36 #define CFF_STDSTR_MAX 391
38 /* Type 2 Charstring */
39 #define CS_NUM_SUBR_MAX 65536
40 #define CS_STR_LEN_MAX 65536
41 #define CS_STEM_ZONE_MAX 96
42 #define CS_ARG_STACK_MAX 48
43 #define CS_TRANS_ARRAY_MAX 32
44 #define CS_SUBR_NEST_MAX 10
46 #endif /* _CFF_LIMITS_H_ */