Back to index

texmacs  1.0.7.15
cff_limits.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/cff_limits.h,v 1.3 2002/10/30 02:27:05 chofchof Exp $
00002     
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007     
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012     
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017     
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00021 */
00022 
00023 #ifndef _CFF_LIMITS_H_
00024 #define _CFF_LIMITS_H_
00025 
00026 #include <limits.h>
00027 
00028 #define CFF_INT_MAX 0x7fffffff
00029 #define CFF_INT_MIN (-0x7fffffff - 1)
00030 
00031 #if (LONG_MAX < CFF_INT_MAX || LONG_MIN > CFF_INT_MIN)
00032 #error "CFF support won't work on this system."
00033 #endif
00034 
00035 #define CFF_SID_MAX    64999
00036 #define CFF_STDSTR_MAX 391
00037 
00038 /* Type 2 Charstring */
00039 #define CS_NUM_SUBR_MAX    65536
00040 #define CS_STR_LEN_MAX     65536
00041 #define CS_STEM_ZONE_MAX   96
00042 #define CS_ARG_STACK_MAX   48
00043 #define CS_TRANS_ARRAY_MAX 32
00044 #define CS_SUBR_NEST_MAX   10
00045 
00046 #endif /* _CFF_LIMITS_H_ */