summaryrefslogtreecommitdiff
path: root/pcl/pcuptrn.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-19 23:49:56 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-19 23:49:56 +0200
commit781969994b5381ba4bed03beef217f9bde6e7c58 (patch)
treeaede27c7532f0fbe82f03dc0c04c9316be510fd5 /pcl/pcuptrn.c
parent0b17959f31afe3baffbc328e7f92e88e634ad8b8 (diff)
Indent with spaces and strip trailing whitespace.
Diffstat (limited to 'pcl/pcuptrn.c')
-rw-r--r--pcl/pcuptrn.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/pcl/pcuptrn.c b/pcl/pcuptrn.c
index da6ec5cf3..247d8c79b 100644
--- a/pcl/pcuptrn.c
+++ b/pcl/pcuptrn.c
@@ -53,7 +53,7 @@ free_pattern_data(
}
/*
- * Build a pattern data structure. This routine is static as pattern
+ * Build a pattern data structure. This routine is static as pattern
* data structures may only be built as part of a pattern.
*
* All pattern data structure are built as "temporary". Routines that build
@@ -99,7 +99,7 @@ build_pattern_data(
*/
static void
free_pattern_rendering(const gs_memory_t *mem,
- pcl_pattern_t * pptrn
+ pcl_pattern_t * pptrn
)
{
if (pptrn->pcol_ccolor != 0) {
@@ -260,7 +260,7 @@ delete_all_pcl_ptrns(
pl_dict_t * pdict[2];
int i;
- pdict[0] = &pcs->pcl_patterns;
+ pdict[0] = &pcs->pcl_patterns;
pdict[1] = &pcs->gl_patterns;
for (i = 0; i < 2; i++) {
@@ -330,17 +330,17 @@ pcl_pattern_RF(
if (ppixmap != 0) {
pcl_pattern_type_t type = ( ppixmap->pix_depth == 1
? pcl_pattern_uncolored
- : pcl_pattern_colored );
- /* RF appears to use the resolution of the device contrary to
+ : pcl_pattern_colored );
+ /* RF appears to use the resolution of the device contrary to
what the pcl documentation implies */
- gx_device *pdev = gs_currentdevice(pcs->pgs);
+ gx_device *pdev = gs_currentdevice(pcs->pgs);
int code = pcl_pattern_build_pattern( &pptrn,
- ppixmap,
- type,
- pdev->HWResolution[0],
- pdev->HWResolution[1],
- pcs->memory
- );
+ ppixmap,
+ type,
+ pdev->HWResolution[0],
+ pdev->HWResolution[1],
+ pcs->memory
+ );
if (code < 0)
return code;
@@ -362,7 +362,6 @@ pcl_pattern_RF(
return 0;
}
-
/*
* The PCL user-define pattern type. For memory management reasons, this has
* a transitory existence.
@@ -415,7 +414,7 @@ download_pcl_pattern(
int code = 0;
if (count < 8)
- return e_Range;
+ return e_Range;
format = puptrn0->format;
/* non data size - the size of the parameters that describe the data */
@@ -449,7 +448,6 @@ download_pcl_pattern(
if (pixinfo.data == 0)
return e_Memory;
-
if (format == 20) {
pcl_upattern1_t * puptrn1 = (pcl_upattern1_t *)puptrn0;
@@ -465,7 +463,7 @@ download_pcl_pattern(
/* build the pattern */
code = pcl_pattern_build_pattern( &(pptrn),
&pixinfo,
- (format == 1 ? pcl_pattern_colored
+ (format == 1 ? pcl_pattern_colored
: pcl_pattern_uncolored),
xres,
yres,
@@ -540,7 +538,7 @@ pattern_control(
static int
upattern_do_copy(pcl_state_t *psaved, const pcl_state_t *pcs,
pcl_copy_operation_t operation)
-{
+{
int i;
/* copy back any patterns created during macro invocation. */
if ((operation & pcl_copy_after) != 0) {
@@ -560,7 +558,7 @@ upattern_do_copy(pcl_state_t *psaved, const pcl_state_t *pcs,
/*
* Initialization and reset routines.
- */
+ */
static int
upattern_do_registration(
pcl_parser_state_t *pcl_parser_state,
@@ -574,7 +572,7 @@ upattern_do_registration(
},
{
'c', 'Q',
- PCL_COMMAND( "Pattern Control",
+ PCL_COMMAND( "Pattern Control",
pattern_control,
pca_neg_ignore | pca_big_ignore
)