summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-02-01 13:15:07 +0000
committerRobin Watts <robin.watts@artifex.com>2012-02-01 13:20:55 +0000
commit00dee1773007462f300e6f3056128bba4efb753e (patch)
tree4283731d35ff9b7e19bcf6ff74eabf5e2341ebdf /pdf
parentdcebbad32c248f4e805cce7b525717a659f53209 (diff)
downloadmupdf-00dee1773007462f300e6f3056128bba4efb753e.tar.xz
Fix alpha sort of operators in parse_code.
The operator list in parse_code is binary searched through, hence operators must be in alphabetical order. Thanks to Brian Adams for pointing out the mistake here.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_function.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c
index 6cc65001..8d1be207 100644
--- a/pdf/pdf_function.c
+++ b/pdf/pdf_function.c
@@ -80,22 +80,20 @@ enum
PS_OP_ABS, PS_OP_ADD, PS_OP_AND, PS_OP_ATAN, PS_OP_BITSHIFT,
PS_OP_CEILING, PS_OP_COPY, PS_OP_COS, PS_OP_CVI, PS_OP_CVR,
PS_OP_DIV, PS_OP_DUP, PS_OP_EQ, PS_OP_EXCH, PS_OP_EXP,
- PS_OP_FALSE, PS_OP_FLOOR, PS_OP_GE, PS_OP_GT, PS_OP_IDIV,
- PS_OP_INDEX, PS_OP_LE, PS_OP_LN, PS_OP_LOG, PS_OP_LT, PS_OP_MOD,
- PS_OP_MUL, PS_OP_NE, PS_OP_NEG, PS_OP_NOT, PS_OP_OR, PS_OP_POP,
- PS_OP_ROLL, PS_OP_ROUND, PS_OP_SIN, PS_OP_SQRT, PS_OP_SUB,
- PS_OP_TRUE, PS_OP_TRUNCATE, PS_OP_XOR, PS_OP_IF, PS_OP_IFELSE,
- PS_OP_RETURN
+ PS_OP_FALSE, PS_OP_FLOOR, PS_OP_GE, PS_OP_GT, PS_OP_IDIV, PS_OP_IF,
+ PS_OP_IFELSE, PS_OP_INDEX, PS_OP_LE, PS_OP_LN, PS_OP_LOG, PS_OP_LT,
+ PS_OP_MOD, PS_OP_MUL, PS_OP_NE, PS_OP_NEG, PS_OP_NOT, PS_OP_OR,
+ PS_OP_POP, PS_OP_RETURN, PS_OP_ROLL, PS_OP_ROUND, PS_OP_SIN,
+ PS_OP_SQRT, PS_OP_SUB, PS_OP_TRUE, PS_OP_TRUNCATE, PS_OP_XOR
};
static char *ps_op_names[] =
{
"abs", "add", "and", "atan", "bitshift", "ceiling", "copy",
"cos", "cvi", "cvr", "div", "dup", "eq", "exch", "exp",
- "false", "floor", "ge", "gt", "idiv", "index", "le", "ln",
- "log", "lt", "mod", "mul", "ne", "neg", "not", "or", "pop",
- "roll", "round", "sin", "sqrt", "sub", "true", "truncate",
- "xor", "if", "ifelse", "return"
+ "false", "floor", "ge", "gt", "idiv", "if", "ifelse", "index", "le", "ln",
+ "log", "lt", "mod", "mul", "ne", "neg", "not", "or", "pop", "return",
+ "roll", "round", "sin", "sqrt", "sub", "true", "truncate", "xor"
};
struct psobj_s