summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/cff_dict.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-09-26 12:47:55 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-09-26 12:47:55 +0000
commitfbcbe9b36240e101914f4b687e609ef5e03b3747 (patch)
tree91f8770ddd48fbceea91bc905b18e1b3c3b4804f /Build/source/texk/dvipdfm-x/cff_dict.c
parent8dc34f4a2fe697d0f38addfc64b096d3f864c0e8 (diff)
dvipdfm-x: Reduced dvipdfmx/xdvipdfmx diffs
git-svn-id: svn://tug.org/texlive/trunk@31776 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/cff_dict.c')
-rw-r--r--Build/source/texk/dvipdfm-x/cff_dict.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Build/source/texk/dvipdfm-x/cff_dict.c b/Build/source/texk/dvipdfm-x/cff_dict.c
index aa2f07d0786..f167e194293 100644
--- a/Build/source/texk/dvipdfm-x/cff_dict.c
+++ b/Build/source/texk/dvipdfm-x/cff_dict.c
@@ -305,11 +305,6 @@ static void add_dict (cff_dict *dict,
if (dict_operator[id].opname == NULL || argtype < 0) {
*status = CFF_ERROR_PARSE_ERROR;
return;
-#ifndef XETEX
- } else if (stack_top < 1) {
- *status = CFF_ERROR_STACK_UNDERFLOW;
- return;
-#endif
}
if (dict->count >= dict->max) {
@@ -323,24 +318,20 @@ static void add_dict (cff_dict *dict,
argtype == CFF_TYPE_BOOLEAN ||
argtype == CFF_TYPE_SID ||
argtype == CFF_TYPE_OFFSET) {
-#ifdef XETEX
/* check for underflow here, as exactly one operand is expected */
if (stack_top < 1) {
*status = CFF_ERROR_STACK_UNDERFLOW;
return;
}
-#endif
stack_top--;
(dict->entries)[dict->count].count = 1;
(dict->entries)[dict->count].values = NEW(1, double);
(dict->entries)[dict->count].values[0] = arg_stack[stack_top];
dict->count += 1;
} else {
-#ifdef XETEX
/* just ignore operator if there were no operands provided;
don't treat this as underflow (e.g. StemSnapV in TemporaLGCUni-Italic.otf) */
if (stack_top > 0)
-#endif
{
(dict->entries)[dict->count].count = stack_top;
(dict->entries)[dict->count].values = NEW(stack_top, double);