From a5039d5474291f19a684d6645f2d4595a82818d7 Mon Sep 17 00:00:00 2001 From: Alex Cherepanov Date: Mon, 28 Sep 2009 12:28:27 +0000 Subject: 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 --- gs/psi/zpdfops.c | 82 ++++++++++++++++++++++++++++---------------------------- 1 file 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. */ -/* ... .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. */ +/* ... .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) +}; -- cgit v1.2.1