| 1 |
/* This is xdvipsk, an eXtended version of dvips(k) by Tomas Rokicki. |
| 2 |
|
| 3 |
Copyright (C) 2016 by VTeX Ltd (www.vtex.lt), |
| 4 |
the xdvipsk project team - Sigitas Tolusis and Arunas Povilaitis. |
| 5 |
|
| 6 |
Program original code copyright (C) 2007-2014 by Jin-Hwan Cho and |
| 7 |
Shunsaku Hirata, the dvipdfmx project team. |
| 8 |
|
| 9 |
This program is free software; you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation; either version 2 of the License, or |
| 12 |
(at your option) any later version. |
| 13 |
|
| 14 |
This program is distributed in the hope that it will be useful, |
| 15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
GNU General Public License for more details. |
| 18 |
|
| 19 |
You should have received a copy of the GNU General Public License |
| 20 |
along with this program; if not, write to the Free Software |
| 21 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef _CFF_LIMITS_H_ |
| 25 |
#define _CFF_LIMITS_H_ |
| 26 |
|
| 27 |
#include <limits.h> |
| 28 |
|
| 29 |
#define CFF_INT_MAX 0x7fffffff |
| 30 |
#define CFF_INT_MIN (-0x7fffffff - 1) |
| 31 |
|
| 32 |
#if (LONG_MAX < CFF_INT_MAX || LONG_MIN > CFF_INT_MIN) |
| 33 |
#error "CFF support won't work on this system." |
| 34 |
#endif |
| 35 |
|
| 36 |
#define CFF_SID_MAX 64999 |
| 37 |
#define CFF_STDSTR_MAX 391 |
| 38 |
|
| 39 |
/* Type 2 Charstring */ |
| 40 |
#define CS_NUM_SUBR_MAX 65536 |
| 41 |
#define CS_STR_LEN_MAX 65536 |
| 42 |
#define CS_STEM_ZONE_MAX 96 |
| 43 |
#define CS_ARG_STACK_MAX 48 |
| 44 |
#define CS_TRANS_ARRAY_MAX 32 |
| 45 |
#define CS_SUBR_NEST_MAX 10 |
| 46 |
|
| 47 |
#endif /* _CFF_LIMITS_H_ */ |