Debian Codegraph @

texk/dvipdfm-x/cff_limits.h

raw
1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
2
3 Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
4 the dvipdfmx project team.
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
21 #ifndef _CFF_LIMITS_H_
22 #define _CFF_LIMITS_H_
23
24 #include <limits.h>
25
26 #define CFF_INT_MAX 0x7fffffff
27 #define CFF_INT_MIN (-0x7fffffff - 1)
28
29 #if (INT_MAX < CFF_INT_MAX || INT_MIN > CFF_INT_MIN)
30 #error "CFF support won't work on this system."
31 #endif
32
33 #define CFF_SID_MAX 64999
34 #define CFF_STDSTR_MAX 391
35
36 /* Type 2 Charstring */
37 #define CS_NUM_SUBR_MAX 65536
38 #define CS_STR_LEN_MAX 65536
39 #define CS_STEM_ZONE_MAX 96
40 #define CS_ARG_STACK_MAX 48
41 #define CS_TRANS_ARRAY_MAX 32
42 #define CS_SUBR_NEST_MAX 10
43
44 #endif /* _CFF_LIMITS_H_ */