diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-10-13 18:53:30 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-10-18 16:35:29 +0100 |
commit | bebbe2fc75a9b460e60deb357474de795e113341 (patch) | |
tree | 043e6f92f0c2bccb0f83619e1c627e7dea9bcee8 /base/gxclrast.c | |
parent | 44e4204350e6ee7bd616191b962b7efd0fbb95ce (diff) | |
download | ghostpdl-bebbe2fc75a9b460e60deb357474de795e113341.tar.gz |
Move the clist operator definitions into a single header.
Currently, they appear to be split over 2 headers for no good
reason that I can see (probably something historical).
A load of whitespace changes to align stuff nicely to make it
look less scary.
Diffstat (limited to 'base/gxclrast.c')
-rw-r--r-- | base/gxclrast.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/gxclrast.c b/base/gxclrast.c index a0f208e14..c001cccdd 100644 --- a/base/gxclrast.c +++ b/base/gxclrast.c @@ -713,7 +713,13 @@ in: /* Initialize for a new page. */ const char *const *sub = cmd_sub_op_names[op >> 4]; long offset = (long)clist_file_offset(st, cbp - 1 - cbuf.data); - if (sub) + if (op == cmd_opv_extend) { + unsigned char op2 = *cbp; + if (cmd_extend_op_names[op2]) + dmlprintf1(mem, "[L]%s", cmd_extend_op_names[op2]); + else + dmlprintf1(mem, "[L]?0x%02x?", (int)op2); + } else if (sub) dmlprintf1(mem, "[L]%s", sub[op & 0xf]); else dmlprintf2(mem, "[L]%s %d", cmd_op_names[op >> 4], op & 0xf); |