~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/zpath1.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: zpath1.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: zpath1.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* PostScript Level 1 additional path operators */
16
16
#include "memory_.h"
17
17
#include "ghost.h"
25
25
#include "store.h"
26
26
 
27
27
/* Forward references */
28
 
private int common_arc(i_ctx_t *,
 
28
static int common_arc(i_ctx_t *,
29
29
          int (*)(gs_state *, floatp, floatp, floatp, floatp, floatp));
30
 
private int common_arct(i_ctx_t *, float *);
 
30
static int common_arct(i_ctx_t *, float *);
31
31
 
32
32
/* <x> <y> <r> <ang1> <ang2> arc - */
33
33
int
44
44
}
45
45
 
46
46
/* Common code for arc[n] */
47
 
private int
 
47
static int
48
48
common_arc(i_ctx_t *i_ctx_p,
49
49
      int (*aproc)(gs_state *, floatp, floatp, floatp, floatp, floatp))
50
50
{
73
73
}
74
74
 
75
75
/* <x1> <y1> <x2> <y2> <r> arcto <xt1> <yt1> <xt2> <yt2> */
76
 
private int
 
76
static int
77
77
zarcto(i_ctx_t *i_ctx_p)
78
78
{
79
79
    os_ptr op = osp;
91
91
}
92
92
 
93
93
/* Common code for arct[o] */
94
 
private int
 
94
static int
95
95
common_arct(i_ctx_t *i_ctx_p, float *tanxy)
96
96
{
97
97
    os_ptr op = osp;
104
104
}
105
105
 
106
106
/* - .dashpath - */
107
 
private int
 
107
static int
108
108
zdashpath(i_ctx_t *i_ctx_p)
109
109
{
110
110
    return gs_dashpath(igs);
111
111
}
112
112
 
113
113
/* - flattenpath - */
114
 
private int
 
114
static int
115
115
zflattenpath(i_ctx_t *i_ctx_p)
116
116
{
117
117
    return gs_flattenpath(igs);
118
118
}
119
119
 
120
120
/* - reversepath - */
121
 
private int
 
121
static int
122
122
zreversepath(i_ctx_t *i_ctx_p)
123
123
{
124
124
    return gs_reversepath(igs);
125
125
}
126
126
 
127
127
/* - strokepath - */
128
 
private int
 
128
static int
129
129
zstrokepath(i_ctx_t *i_ctx_p)
130
130
{
131
131
    return gs_strokepath(igs);
132
132
}
133
133
 
134
134
/* - clippath - */
135
 
private int
 
135
static int
136
136
zclippath(i_ctx_t *i_ctx_p)
137
137
{
138
138
    return gs_clippath(igs);
139
139
}
140
140
 
141
141
/* <bool> .pathbbox <llx> <lly> <urx> <ury> */
142
 
private int
 
142
static int
143
143
z1pathbbox(i_ctx_t *i_ctx_p)
144
144
{
145
145
    os_ptr op = osp;
163
163
 * operator, not an operator procedure, even though it has a trivial
164
164
 * definition as a procedure.
165
165
 */
166
 
private int
 
166
static int
167
167
zpathbbox(i_ctx_t *i_ctx_p)
168
168
{
169
169
    os_ptr op = osp;
179
179
}
180
180
 
181
181
/* <moveproc> <lineproc> <curveproc> <closeproc> pathforall - */
182
 
private int path_continue(i_ctx_t *);
183
 
private int path_cleanup(i_ctx_t *);
184
 
private int
 
182
static int path_continue(i_ctx_t *);
 
183
static int path_cleanup(i_ctx_t *);
 
184
static int
185
185
zpathforall(i_ctx_t *i_ctx_p)
186
186
{
187
187
    os_ptr op = osp;
211
211
    return o_push_estack;
212
212
}
213
213
/* Continuation procedure for pathforall */
214
 
private void pf_push(i_ctx_t *, gs_point *, int);
215
 
private int
 
214
static void pf_push(i_ctx_t *, gs_point *, int);
 
215
static int
216
216
path_continue(i_ctx_t *i_ctx_p)
217
217
{
218
218
    gs_path_enum *penum = r_ptr(esp, gs_path_enum);
251
251
    return o_push_estack;
252
252
}
253
253
/* Internal procedure to push one or more points */
254
 
private void
 
254
static void
255
255
pf_push(i_ctx_t *i_ctx_p, gs_point * ppts, int n)
256
256
{
257
257
    os_ptr op = osp;
265
265
    osp = op;
266
266
}
267
267
/* Clean up after a pathforall */
268
 
private int
 
268
static int
269
269
path_cleanup(i_ctx_t *i_ctx_p)
270
270
{
271
271
    gs_path_enum *penum = r_ptr(esp + 6, gs_path_enum);