summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2009-09-28 12:28:27 +0000
committerAlex Cherepanov <alex.cherepanov@artifex.com>2009-09-28 12:28:27 +0000
commita5039d5474291f19a684d6645f2d4595a82818d7 (patch)
tree0fbf6e1b9559255bab2176161582a661c3a9f6d0
parentc8579a08174cfdbddf905f0e23ed0c4f88e457e2 (diff)
downloadghostpdl-a5039d5474291f19a684d6645f2d4595a82818d7.tar.gz
Fix line endings and a corresponding file attribute in a recently added file.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10093 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/psi/zpdfops.c82
1 files changed, 41 insertions, 41 deletions
diff --git a/gs/psi/zpdfops.c b/gs/psi/zpdfops.c
index f79d802c5..2673236e6 100644
--- a/gs/psi/zpdfops.c
+++ b/gs/psi/zpdfops.c
@@ -11,36 +11,36 @@
San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
*/
-/* $Id: $ */
+/* $Id$ */
/* Custom operators for PDF interpreter */
-#include "ghost.h"
-#include "oper.h"
-#include "igstate.h"
-#include "istack.h"
-#include "iutil.h"
-#include "gspath.h"
-
-/* Construct a smooth path passing though a number of points */
-/* on the stack for PDF ink annotations. */
-/* <mark> <x0> <y0> ... <xn> <yn> .pdfinkpath - */
-int
-zpdfinkpath(i_ctx_t *i_ctx_p)
-{
+#include "ghost.h"
+#include "oper.h"
+#include "igstate.h"
+#include "istack.h"
+#include "iutil.h"
+#include "gspath.h"
+
+/* Construct a smooth path passing though a number of points */
+/* on the stack for PDF ink annotations. */
+/* <mark> <x0> <y0> ... <xn> <yn> .pdfinkpath - */
+int
+zpdfinkpath(i_ctx_t *i_ctx_p)
+{
os_ptr optr, op = osp;
- uint count = ref_stack_counttomark(&o_stack);
-
- uint i, ocount;
- int code;
- double x, y;
-
- if (count == 0)
- return_error(e_unmatchedmark);
- if ((count & 1) == 0 || count < 3)
- return_error(e_rangecheck);
-
+ uint count = ref_stack_counttomark(&o_stack);
+
+ uint i, ocount;
+ int code;
+ double x, y;
+
+ if (count == 0)
+ return_error(e_unmatchedmark);
+ if ((count & 1) == 0 || count < 3)
+ return_error(e_rangecheck);
+
ocount = count - 1;
- optr = op - ocount + 1;
+ optr = op - ocount + 1;
code = real_param(optr, &x);
if (code < 0)
@@ -51,8 +51,8 @@ zpdfinkpath(i_ctx_t *i_ctx_p)
code = gs_moveto(igs, x, y);
if (code < 0)
return code;
-
- for (i = 2; i < ocount; i += 2) {
+
+ for (i = 2; i < ocount; i += 2) {
code = real_param(optr + i, &x);
if (code < 0)
return code;
@@ -62,16 +62,16 @@ zpdfinkpath(i_ctx_t *i_ctx_p)
code = gs_lineto(igs, x, y);
if (code < 0)
return code;
- }
-
- ref_stack_pop(&o_stack, count);
- return 0;
-}
-
-/* ------ Initialization procedure ------ */
-
-const op_def zpdfops_op_defs[] =
-{
- {"0.pdfinkpath", zpdfinkpath},
- op_def_end(0)
-};
+ }
+
+ ref_stack_pop(&o_stack, count);
+ return 0;
+}
+
+/* ------ Initialization procedure ------ */
+
+const op_def zpdfops_op_defs[] =
+{
+ {"0.pdfinkpath", zpdfinkpath},
+ op_def_end(0)
+};