summaryrefslogtreecommitdiff
path: root/print/ghostscript-gpl/files
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript-gpl/files')
-rw-r--r--print/ghostscript-gpl/files/bjc250.contrib.mak31
-rw-r--r--print/ghostscript-gpl/files/chp2200.contrib.mak25
-rw-r--r--print/ghostscript-gpl/files/dj970.contrib.mak9
-rw-r--r--print/ghostscript-gpl/files/epag.contrib.mak8
-rw-r--r--print/ghostscript-gpl/files/lex7000.contrib.mak21
-rw-r--r--print/ghostscript-gpl/files/lqx70ch.upp26
-rw-r--r--print/ghostscript-gpl/files/lqx70cl.upp26
-rw-r--r--print/ghostscript-gpl/files/lqx70cm.upp25
-rw-r--r--print/ghostscript-gpl/files/lx5000.contrib.mak11
-rw-r--r--print/ghostscript-gpl/files/lxm3200.contrib.mak10
-rw-r--r--print/ghostscript-gpl/files/patch-alps:gdevalps.mak25
-rw-r--r--print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.c14
-rw-r--r--print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.h93
-rw-r--r--print/ghostscript-gpl/files/patch-bjc250:src:gdevbjca.c17
-rw-r--r--print/ghostscript-gpl/files/patch-eplaser:gdevescv.c62
-rw-r--r--print/ghostscript-gpl/files/patch-eplaser:gdevesmv.c62
-rw-r--r--print/ghostscript-gpl/files/patch-gdev10v:gdev10v.mak22
-rw-r--r--print/ghostscript-gpl/files/patch-hp2200:gdevcd8.c296
-rw-r--r--print/ghostscript-gpl/files/patch-lib:gs_init.ps19
-rw-r--r--print/ghostscript-gpl/files/patch-lib:gs_statd.ps23
-rw-r--r--print/ghostscript-gpl/files/patch-lips:gdevl4r.c47
-rw-r--r--print/ghostscript-gpl/files/patch-lips:gdevl4v.c122
-rw-r--r--print/ghostscript-gpl/files/patch-lips:gdevlips.mak59
-rw-r--r--print/ghostscript-gpl/files/patch-lips:gdevlprn.h16
-rw-r--r--print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c25
-rw-r--r--print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c50
-rw-r--r--print/ghostscript-gpl/files/patch-md2k:gdevmd2k.mak19
-rw-r--r--print/ghostscript-gpl/files/patch-mjc:gdevmjc.c377
-rw-r--r--print/ghostscript-gpl/files/patch-mjc:gdevmjc.mak43
-rw-r--r--print/ghostscript-gpl/files/patch-src:cpca_gdevl4v.c65
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevccr.c15
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevcp50.c18
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevdj9.c255
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevgdi.c983
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevifno.c15
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevl256.c17
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevlbp8.c70
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevlx50.c17
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevmgr.c17
-rw-r--r--print/ghostscript-gpl/files/patch-src:gdevvglb.c18
-rw-r--r--print/ghostscript-gpl/files/patch-src:genarch.c34
-rw-r--r--print/ghostscript-gpl/files/patch-src:gxobj.h18
-rw-r--r--print/ghostscript-gpl/files/patch-src:smartgdi-contrib.mak16
-rw-r--r--print/ghostscript-gpl/files/patch-src:unix-dll.mak59
-rw-r--r--print/ghostscript-gpl/files/patch-src:unix-gcc.mak133
-rw-r--r--print/ghostscript-gpl/files/patch-src:zmedia2.c25
-rw-r--r--print/ghostscript-gpl/files/stc740ih.upp60
-rw-r--r--print/ghostscript-gpl/files/stc740p.upp36
-rw-r--r--print/ghostscript-gpl/files/stc740pl.upp32
-rw-r--r--print/ghostscript-gpl/files/stp.contrib.mak14
50 files changed, 0 insertions, 3500 deletions
diff --git a/print/ghostscript-gpl/files/bjc250.contrib.mak b/print/ghostscript-gpl/files/bjc250.contrib.mak
deleted file mode 100644
index 5c1ce77e98dc..000000000000
--- a/print/ghostscript-gpl/files/bjc250.contrib.mak
+++ /dev/null
@@ -1,31 +0,0 @@
-### ----------------- The BJC-210/240/250/250ex/265/1000 ---------------- ###
-
-###
-### For questions about the driver, mailto://szaszg@hu.inter.net
-### http://bjc250gs.sourceforge.net
-###
-
-bjc_h=$(GLSRC)gdevbjc_.h
-
-bjc_=$(GLOBJ)gdevbjc_.$(OBJ) $(GLOBJ)gdevbjca.$(OBJ)
-
-$(GLOBJ)gdevbjc_.$(OBJ) : $(GLSRC)gdevbjc_.c $(PDEVH) $(bjc_h)
- $(GLCC) $(GLO_)gdevbjc_.$(OBJ) $(C_) $(GLSRC)gdevbjc_.c
-
-$(GLOBJ)gdevbjca.$(OBJ) : $(GLSRC)gdevbjca.c $(PDEVH) $(bjc_h)
- $(GLCC) $(GLO_)gdevbjca.$(OBJ) $(C_) $(GLSRC)gdevbjca.c
-
-$(DD)bjcmono.dev : $(bjc_) $(DD)page.dev
- $(SETPDEV) $(DD)bjcmono $(bjc_)
-
-$(DD)bjcgray.dev : $(bjc_) $(DD)page.dev
- $(SETPDEV) $(DD)bjcgray $(bjc_)
-
-$(DD)bjccmyk.dev : $(bjc_) $(DD)page.dev
- $(SETPDEV) $(DD)bjccmyk $(bjc_)
-
-$(DD)bjccolor.dev : $(bjc_) $(DD)page.dev
- $(SETPDEV) $(DD)bjccolor $(bjc_)
-
-### -------------------- The H-P Color LaserJet 5/5M -------------------- ###
-
diff --git a/print/ghostscript-gpl/files/chp2200.contrib.mak b/print/ghostscript-gpl/files/chp2200.contrib.mak
deleted file mode 100644
index c71ea8ac3512..000000000000
--- a/print/ghostscript-gpl/files/chp2200.contrib.mak
+++ /dev/null
@@ -1,25 +0,0 @@
-### --------------- The H-P Buisiness Inkjet 2200 devices --------------- ###
-
-cdeskjet8_=$(GLOBJ)gdevcd8.$(OBJ) $(HPPCL)
-
-$(DD)cdj670.dev : $(cdeskjet8_) $(DD)page.dev
- $(SETPDEV2) $(DD)cdj670 $(cdeskjet8_)
-
-$(DD)cdj850.dev : $(cdeskjet8_) $(DD)page.dev
- $(SETPDEV2) $(DD)cdj850 $(cdeskjet8_)
-
-$(DD)cdj880.dev : $(cdeskjet8_) $(DD)page.dev
- $(SETPDEV2) $(DD)cdj880 $(cdeskjet8_)
-
-$(DD)cdj890.dev : $(cdeskjet8_) $(DD)page.dev
- $(SETPDEV2) $(DD)cdj890 $(cdeskjet8_)
-
-$(DD)cdj1600.dev : $(cdeskjet8_) $(DD)page.dev
- $(SETPDEV2) $(DD)cdj1600 $(cdeskjet8_)
-
-$(DD)chp2200.dev : $(cdeskjet8_) $(DD)page.dev
- $(SETPDEV2) $(DD)chp2200 $(cdeskjet8_)
-
-$(GLOBJ)gdevcd8.$(OBJ) : $(GLSRC)gdevcd8.c $(PDEVH) $(math__h)\
- $(gsparam_h) $(gxlum_h) $(gdevpcl_h)
- $(GLCC) $(GLO_)gdevcd8.$(OBJ) $(C_) $(GLSRC)gdevcd8.c
diff --git a/print/ghostscript-gpl/files/dj970.contrib.mak b/print/ghostscript-gpl/files/dj970.contrib.mak
deleted file mode 100644
index 8227012da41a..000000000000
--- a/print/ghostscript-gpl/files/dj970.contrib.mak
+++ /dev/null
@@ -1,9 +0,0 @@
-###- cdj970 - HP 970Cxi Driver under development -------- ###
-cdeskjet9_=$(GLOBJ)gdevdj9.$(OBJ) $(HPPCL)
-
-$(DD)cdj970.dev : $(cdeskjet9_) $(DD)page.dev
- $(SETPDEV2) $(DD)cdj970 $(cdeskjet9_)
-
-$(GLOBJ)gdevdj9.$(OBJ) : $(GLSRC)gdevdj9.c $(PDEVH) $(math__h) \
- $(gsparam_h) $(gxlum_h) $(gdevpcl_h)
- $(GLCC) $(GLO_)gdevdj9.$(OBJ) $(C_) $(GLSRC)gdevdj9.c
diff --git a/print/ghostscript-gpl/files/epag.contrib.mak b/print/ghostscript-gpl/files/epag.contrib.mak
deleted file mode 100644
index 2e6117ad4b51..000000000000
--- a/print/ghostscript-gpl/files/epag.contrib.mak
+++ /dev/null
@@ -1,8 +0,0 @@
-### ------- Epson ESC/Page printer device ----------------- ###
-epag_=$(GLOBJ)gdevepag.$(OBJ)
-
-$(DD)epag.dev : $(epag_) $(DD)page.dev
- $(SETPDEV) $(DD)epag $(epag_)
-
-$(GLOBJ)gdevepag.$(OBJ): $(GLSRC)gdevepag.c $(gdevprn_h) $(PDEVH)
- $(GLCC) $(GLO_)gdevepag.$(OBJ) $(C_) $(GLSRC)gdevepag.c
diff --git a/print/ghostscript-gpl/files/lex7000.contrib.mak b/print/ghostscript-gpl/files/lex7000.contrib.mak
deleted file mode 100644
index a5f1a162b785..000000000000
--- a/print/ghostscript-gpl/files/lex7000.contrib.mak
+++ /dev/null
@@ -1,21 +0,0 @@
-# ------ The Lexmark 5700 and 7000 devices ------ #
-
-lex7000_=$(GLOBJ)gdevlx7.$(OBJ)
-$(DD)lex7000.dev: $(lex7000_) $(DD)page.dev
- $(SETPDEV) $(DD)lex7000 $(lex7000_)
-
-lex5700_=$(GLOBJ)gdevlx7.$(OBJ)
-$(DD)lex5700.dev: $(lex5700_) $(DD)page.dev
- $(SETPDEV) $(DD)lex5700 $(lex5700_)
-
-lex3200_=$(GLOBJ)gdevlx7.$(OBJ)
-$(DD)lex3200.dev: $(lex3200_) $(DD)page.dev
- $(SETPDEV) $(DD)lex3200 $(lex3200_)
-
-lex2050_=$(GLOBJ)gdevlx7.$(OBJ)
-$(DD)lex2050.dev: $(lex2050_) $(DD)page.dev
- $(SETPDEV) $(DD)lex2050 $(lex2050_)
-
-$(GLOBJ)gdevlx7.$(OBJ): $(GLSRC)gdevlx7.c $(PDEVH)
- $(GLCC) $(GLO_)gdevlx7.$(OBJ) $(C_) $(GLSRC)gdevlx7.c
-
diff --git a/print/ghostscript-gpl/files/lqx70ch.upp b/print/ghostscript-gpl/files/lqx70ch.upp
deleted file mode 100644
index b5d3cd49e912..000000000000
--- a/print/ghostscript-gpl/files/lqx70ch.upp
+++ /dev/null
@@ -1,26 +0,0 @@
-# $ApsCVS: src/apsfilter/uniprint/lqx70ch.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $
-#
--supModel="Epson LQ-1170 ESC/P2 Dot Matrix, 360x360DpI, Plain Paper"
--sDEVICE=uniprint
--dNOPAUSE
--dSAFER
--dupColorModel=/DeviceCMYKgenerate
--dupRendering=/ErrorDiffusion
--dupOutputFormat=/EscP2
--r360x360
--dupMargins="{ 9.0 0.0 9.0 24.0}"
--dupOutputPins=24
--dupBeginPageCommand="<
- 1b40 1b40
- 1b2847 0100 01
- 1b2869 0100 01
- 1b2855 0100 0A
- 1b5501
- 1b2865 0200 0002
- 1b2843 0200 0000
- 1b2863 0400 0000 0000
->"
--dupAdjustPageLengthCommand
--dupEndPageCommand="(\014)"
--dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
-
diff --git a/print/ghostscript-gpl/files/lqx70cl.upp b/print/ghostscript-gpl/files/lqx70cl.upp
deleted file mode 100644
index 91fb1aa89906..000000000000
--- a/print/ghostscript-gpl/files/lqx70cl.upp
+++ /dev/null
@@ -1,26 +0,0 @@
-# $ApsCVS: src/apsfilter/uniprint/lqx70cl.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $
-#
--supModel="Epson LQ-1170 ESC/P2 Dot Matrix, 180x180DpI, Plain Paper"
--sDEVICE=uniprint
--dNOPAUSE
--dSAFER
--dupColorModel=/DeviceCMYKgenerate
--dupRendering=/ErrorDiffusion
--dupOutputFormat=/EscP2
--r180x180
--dupMargins="{ 9.0 0.0 9.0 24.0}"
--dupOutputPins=24
--dupBeginPageCommand="<
- 1b40 1b40
- 1b2847 0100 01
- 1b2869 0100 01
- 1b2855 0100 14
- 1b5500
- 1b2865 0200 0002
- 1b2843 0200 0000
- 1b2863 0400 0000 0000
->"
--dupAdjustPageLengthCommand
--dupEndPageCommand="(\014)"
--dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
-
diff --git a/print/ghostscript-gpl/files/lqx70cm.upp b/print/ghostscript-gpl/files/lqx70cm.upp
deleted file mode 100644
index 895af73aa8d8..000000000000
--- a/print/ghostscript-gpl/files/lqx70cm.upp
+++ /dev/null
@@ -1,25 +0,0 @@
-# $ApsCVS: src/apsfilter/uniprint/lqx70cm.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $
-#
--supModel="Epson LQ-1170 ESC/P2 Dot Matrix, 360x180DpI, Plain Paper"
--sDEVICE=uniprint
--dNOPAUSE
--dSAFER
--dupColorModel=/DeviceCMYKgenerate
--dupRendering=/ErrorDiffusion
--dupOutputFormat=/EscP2
--r360x180
--dupMargins="{ 9.0 24.0 9.0 24.0}"
--dupOutputPins=24
--dupBeginPageCommand="<
- 1b40 1b40
- 1b2847 0100 01
- 1b2869 0100 01
- 1b2855 0100 14
- 1b5501
- 1b2843 0200 0000
- 1b2863 0400 0000 0000
->"
--dupAdjustPageLengthCommand
--dupEndPageCommand="(\014)"
--dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
-
diff --git a/print/ghostscript-gpl/files/lx5000.contrib.mak b/print/ghostscript-gpl/files/lx5000.contrib.mak
deleted file mode 100644
index f22c1dbb904c..000000000000
--- a/print/ghostscript-gpl/files/lx5000.contrib.mak
+++ /dev/null
@@ -1,11 +0,0 @@
-### ----------------- LexMark 5000 printer ----------------------------- ###
-### Note: this driver was contributed by users. Please contact: ###
-### Peter B. West <p.west@uq.net.au> ###
-
-lx5000_=$(GLOBJ)gdevlx50.$(OBJ)
-$(DD)lx5000.dev: $(lx5000_)
- $(SETPDEV) $(DD)lx5000 $(lx5000_)
-
-$(GLOBJ)gdevlx50.$(OBJ): $(GLSRC)gdevlx50.c $(PDEVH)
- $(GLCC) $(GLO_)gdevlx50.$(OBJ) $(C_) $(GLSRC)gdevlx50.c
-
diff --git a/print/ghostscript-gpl/files/lxm3200.contrib.mak b/print/ghostscript-gpl/files/lxm3200.contrib.mak
deleted file mode 100644
index c670f6de111c..000000000000
--- a/print/ghostscript-gpl/files/lxm3200.contrib.mak
+++ /dev/null
@@ -1,10 +0,0 @@
-### ---------------- Lexmark 3200 device ----------------- ###
-
-lxm3200_=$(GLOBJ)gdevlx32.$(OBJ)
-
-$(DD)lxm3200.dev: $(lxm3200_) $(DD)page.dev
- $(SETPDEV) $(DD)lxm3200 $(lxm3200_)
-
-$(GLOBJ)gdevlx32.$(OBJ): $(GLSRC)gdevlx32.c $(PDEVH) $(gsparam_h)
- $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c
-
diff --git a/print/ghostscript-gpl/files/patch-alps:gdevalps.mak b/print/ghostscript-gpl/files/patch-alps:gdevalps.mak
deleted file mode 100644
index 45144eaadcfd..000000000000
--- a/print/ghostscript-gpl/files/patch-alps:gdevalps.mak
+++ /dev/null
@@ -1,25 +0,0 @@
---- alps/gdevalps.mak-5.50.orig Sat Jan 12 13:21:12 2002
-+++ alps/gdevalps.mak-5.50 Sat Jan 12 13:23:45 2002
-@@ -2,15 +2,15 @@
-
- alps_=$(GLOBJ)gdevalps.$(OBJ)
-
--md50Mono.dev: $(alps_) page.dev
-- $(SETPDEV) md50Mono $(alps_)
-+$(DD)md50Mono.dev: $(alps_) $(DD)page.dev
-+ $(SETPDEV) $(DD)md50Mono $(alps_)
-
--md50Eco.dev: $(alps_) page.dev
-- $(SETPDEV) md50Eco $(alps_)
-+$(DD)md50Eco.dev: $(alps_) $(DD)page.dev
-+ $(SETPDEV) $(DD)md50Eco $(alps_)
-
--md1xMono.dev: $(alps_) page.dev
-- $(SETPDEV) md1xMono $(alps_)
-+$(DD)md1xMono.dev: $(alps_) $(DD)page.dev
-+ $(SETPDEV) $(DD)md1xMono $(alps_)
-
--$(GLOBJ)gdevalps.$(OBJ): $(GLSRC)gdevalps.c $(PDEVH)
-+$(GLOBJ)gdevalps.$(OBJ): $(GLSRC)gdevalps.c $(gdevprn_h) $(PDEVH)
- $(GLCC) $(GLO_)gdevalps.$(OBJ) $(C_) $(GLSRC)gdevalps.c
-
diff --git a/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.c b/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.c
deleted file mode 100644
index 8eaf44e181c0..000000000000
--- a/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- bjc250/src/gdevbjc_.c.orig Fri Nov 8 06:15:15 2002
-+++ bjc250/src/gdevbjc_.c Fri Nov 8 07:43:31 2002
-@@ -54,9 +54,9 @@
- private dev_proc_put_params(gdev_bjc_put_params);
- private dev_proc_get_params(gdev_bjc_get_params);
- const stringParamDescription *
-- paramValueToParam(P2(const stringParamDescription *, int));
-+ paramValueToParam(const stringParamDescription *, int);
- const stringParamDescription *
-- paramStringToParam(P3(const stringParamDescription *, const char *, uint));
-+ paramStringToParam(const stringParamDescription *, const char *, uint);
-
- BJL_command BJL_command_set[] = {
- { "@Cleaning=1", BJC_BJL_CLEANING, 11},
diff --git a/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.h b/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.h
deleted file mode 100644
index 26af2028cebc..000000000000
--- a/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjc_.h
+++ /dev/null
@@ -1,93 +0,0 @@
---- bjc250/src/gdevbjc_.h.orig Fri Nov 8 06:15:15 2002
-+++ bjc250/src/gdevbjc_.h Fri Nov 8 07:44:18 2002
-@@ -183,48 +183,48 @@
-
- /* Put a BJL command to stream */
-
--void bjc_put_bjl_command(P2(FILE * file, int bjl_command));
-+void bjc_put_bjl_command(FILE * file, int bjl_command);
-
--void bjc_put_LF(P1(FILE *file));
--void bjc_put_FF(P1(FILE *file));
--void bjc_put_CR(P1(FILE *file));
--void bjc_put_initialize(P1(FILE *file));
--void bjc_put_set_initial(P1(FILE *file));
--void bjc_put_set_compression(P2(FILE *file, char compression));
--void bjc_put_print_method_short(P2(FILE *file, char color));
--void bjc_put_print_method(P5(FILE *file, char color, char media, char quality, char density));
--void bjc_put_raster_resolution(P3(FILE *file, int x_resolution, int y_resolution));
--void bjc_put_raster_skip(P2(FILE *file, int skip));
--void bjc_put_page_margins(P5(FILE *file, int length, int lm, int rm, int top));
--void bjc_put_media_supply(P3(FILE *file, char supply, char type));
--void bjc_put_cmyk_image(P4(FILE *file, char component, const char *data, int count));
--void bjc_put_move_lines(P2(FILE *file, int lines));
--void bjc_put_move_lines_unit(P2(FILE *file, int unit));
--void bjc_put_extended_margins(P5(FILE *file, int length, int lm, int rm, int top));
--void bjc_put_image_format(P4(FILE *file, char depth, char format, char ink));
--void bjc_put_page_id(P2(FILE *file, int id));
--void bjc_put_continue_image(P3(FILE *file, const char *data, int count));
--void bjc_put_indexed_image(P4(FILE *file, int dot_rows, int dot_cols, int layers));
--
--bool bjc_invert_bytes(P4(byte *row, uint raster, bool inverse, byte lastmask));
--bool bjc_invert_cmyk_bytes(P8(byte *rowC,byte *rowM, byte *rowY, byte *rowK, uint raster,
-- bool inverse, byte lastmask, skip_t *skip));
--uint bjc_compress(P3(const byte *row, uint raster, byte *compressed));
--
--int FloydSteinbergInitG(P1(gx_device_printer * pdev));
--void FloydSteinbergDitheringG(P5(byte *row, byte *dithered, uint width, uint raster, bool limit_extr));
--void FloydSteinbergCloseG(P1(gx_device_printer *pdev));
--
--int FloydSteinbergForwardCut(P5(int error, int *Errors, int i, byte *dithered, byte bitmask));
--int FloydSteinbergBckwardCut(P5(int error, int *Errors, int i, byte *dithered, byte bitmask));
--int FloydSteinbergInitC(P1(gx_device_printer * pdev));
--void FloydSteinbergDitheringC(P6(byte *row, byte *dithered, uint width, uint raster,
-- bool limit_extr, bool composeK));
--void FloydSteinbergCloseC(P1(gx_device_printer *pdev));
--
--void bjc_build_gamma_table(P2(float gamma, char color));
--void bjc_rgb_to_cmy (P6(byte r, byte g, byte b, int *c, int *m, int *y));
--void bjc_rgb_to_gray(P4(byte r, byte g, byte b, int *k));
-+void bjc_put_LF(FILE *file);
-+void bjc_put_FF(FILE *file);
-+void bjc_put_CR(FILE *file);
-+void bjc_put_initialize(FILE *file);
-+void bjc_put_set_initial(FILE *file);
-+void bjc_put_set_compression(FILE *file, char compression);
-+void bjc_put_print_method_short(FILE *file, char color);
-+void bjc_put_print_method(FILE *file, char color, char media, char quality, char density);
-+void bjc_put_raster_resolution(FILE *file, int x_resolution, int y_resolution);
-+void bjc_put_raster_skip(FILE *file, int skip);
-+void bjc_put_page_margins(FILE *file, int length, int lm, int rm, int top);
-+void bjc_put_media_supply(FILE *file, char supply, char type);
-+void bjc_put_cmyk_image(FILE *file, char component, const char *data, int count);
-+void bjc_put_move_lines(FILE *file, int lines);
-+void bjc_put_move_lines_unit(FILE *file, int unit);
-+void bjc_put_extended_margins(FILE *file, int length, int lm, int rm, int top);
-+void bjc_put_image_format(FILE *file, char depth, char format, char ink);
-+void bjc_put_page_id(FILE *file, int id);
-+void bjc_put_continue_image(FILE *file, const char *data, int count);
-+void bjc_put_indexed_image(FILE *file, int dot_rows, int dot_cols, int layers);
-+
-+bool bjc_invert_bytes(byte *row, uint raster, bool inverse, byte lastmask);
-+bool bjc_invert_cmyk_bytes(byte *rowC,byte *rowM, byte *rowY, byte *rowK, uint raster,
-+ bool inverse, byte lastmask, skip_t *skip);
-+uint bjc_compress(const byte *row, uint raster, byte *compressed);
-+
-+int FloydSteinbergInitG(gx_device_printer * pdev);
-+void FloydSteinbergDitheringG(byte *row, byte *dithered, uint width, uint raster, bool limit_extr);
-+void FloydSteinbergCloseG(gx_device_printer *pdev);
-+
-+int FloydSteinbergForwardCut(int error, int *Errors, int i, byte *dithered, byte bitmask);
-+int FloydSteinbergBckwardCut(int error, int *Errors, int i, byte *dithered, byte bitmask);
-+int FloydSteinbergInitC(gx_device_printer * pdev);
-+void FloydSteinbergDitheringC(byte *row, byte *dithered, uint width, uint raster,
-+ bool limit_extr, bool composeK);
-+void FloydSteinbergCloseC(gx_device_printer *pdev);
-+
-+void bjc_build_gamma_table(float gamma, char color);
-+void bjc_rgb_to_cmy (byte r, byte g, byte b, int *c, int *m, int *y);
-+void bjc_rgb_to_gray(byte r, byte g, byte b, int *k);
- uint bjc_rand(void);
--void bjc_init_tresh(P1(int rnd));
-+void bjc_init_tresh(int rnd);
- #endif /* gdevbjc_INCLUDED */
diff --git a/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjca.c b/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjca.c
deleted file mode 100644
index 37f525bfeb42..000000000000
--- a/print/ghostscript-gpl/files/patch-bjc250:src:gdevbjca.c
+++ /dev/null
@@ -1,17 +0,0 @@
---- bjc250/src/gdevbjca.c.orig Fri Nov 8 06:15:15 2002
-+++ bjc250/src/gdevbjca.c Fri Nov 8 07:47:41 2002
-@@ -46,10 +46,10 @@
- #include <math.h>
- #include <time.h>
-
--private void bjc_put_bytes(P3(FILE *file, const char *data, int count));
--private void bjc_put_hi_lo(P2(FILE *file, int value));
--private void bjc_put_lo_hi(P2(FILE *file, int value));
--private void bjc_put_command(P3(FILE *file, char command, int count));
-+private void bjc_put_bytes(FILE *file, const char *data, int count);
-+private void bjc_put_hi_lo(FILE *file, int value);
-+private void bjc_put_lo_hi(FILE *file, int value);
-+private void bjc_put_command(FILE *file, char command, int count);
-
- /* ---------------- Utilities ---------------- */
-
diff --git a/print/ghostscript-gpl/files/patch-eplaser:gdevescv.c b/print/ghostscript-gpl/files/patch-eplaser:gdevescv.c
deleted file mode 100644
index 3578352b1b7e..000000000000
--- a/print/ghostscript-gpl/files/patch-eplaser:gdevescv.c
+++ /dev/null
@@ -1,62 +0,0 @@
---- eplaser/gdevescv.c.orig Fri Jul 25 20:59:58 2003
-+++ eplaser/gdevescv.c Tue Sep 9 22:03:50 2003
-@@ -37,8 +37,6 @@
-
- */
-
--#include <stdlib.h>
--#include <unistd.h>
- #include <string.h>
-
- #include "math_.h"
-@@ -321,6 +319,16 @@
- };
-
- /* Vector device implementation */
-+#if GS_VERSION_MAJOR >= 8
-+private int escv_beginpage(gx_device_vector * vdev);
-+private int escv_setfillcolor(gx_device_vector * vdev, const gx_drawing_color * pdc);
-+private int escv_setstrokecolor(gx_device_vector * vdev, const gx_drawing_color * pdc);
-+private int escv_setdash(gx_device_vector * vdev, const float *pattern,
-+ uint count, floatp offset);
-+private int escv_setflat(gx_device_vector * vdev, floatp flatness);
-+private int escv_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
-+ gs_logical_operation_t diff);
-+#else
- private int escv_beginpage(P1(gx_device_vector * vdev));
- private int escv_setfillcolor(P2(gx_device_vector * vdev, const gx_drawing_color * pdc));
- private int escv_setstrokecolor(P2(gx_device_vector * vdev, const gx_drawing_color * pdc));
-@@ -329,10 +337,25 @@
- private int escv_setflat(P2(gx_device_vector * vdev, floatp flatness));
- private int escv_setlogop(P3(gx_device_vector * vdev, gs_logical_operation_t lop,
- gs_logical_operation_t diff));
-+#endif
- private int escv_vector_dorect(gx_device_vector * vdev, fixed x0, fixed y0, fixed x1,
- fixed y1, gx_path_type_t type);
- private int escv_vector_dopath(gx_device_vector * vdev, const gx_path * ppath,
- gx_path_type_t type);
-+#if GS_VERSION_MAJOR >= 8
-+private int escv_beginpath(gx_device_vector * vdev, gx_path_type_t type);
-+private int escv_moveto(gx_device_vector * vdev, floatp x0, floatp y0,
-+ floatp x, floatp y, gx_path_type_t type);
-+private int escv_lineto(gx_device_vector * vdev, floatp x0, floatp y0,
-+ floatp x, floatp y, gx_path_type_t type);
-+private int escv_curveto(gx_device_vector * vdev, floatp x0, floatp y0,
-+ floatp x1, floatp y1, floatp x2, floatp y2,
-+ floatp x3, floatp y3, gx_path_type_t type);
-+private int escv_closepath(gx_device_vector * vdev, floatp x, floatp y,
-+ floatp x_start, floatp y_start, gx_path_type_t type);
-+
-+private int escv_endpath(gx_device_vector * vdev, gx_path_type_t type);
-+#else
- private int escv_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
- private int escv_moveto(P6(gx_device_vector * vdev, floatp x0, floatp y0,
- floatp x, floatp y, gx_path_type_t type));
-@@ -345,6 +368,7 @@
- floatp x_start, floatp y_start, gx_path_type_t type));
-
- private int escv_endpath(P2(gx_device_vector * vdev, gx_path_type_t type));
-+#endif
- private int escv_setlinewidth(gx_device_vector * vdev, floatp width);
- private int escv_setlinecap(gx_device_vector * vdev, gs_line_cap cap);
- private int escv_setlinejoin(gx_device_vector * vdev, gs_line_join join);
diff --git a/print/ghostscript-gpl/files/patch-eplaser:gdevesmv.c b/print/ghostscript-gpl/files/patch-eplaser:gdevesmv.c
deleted file mode 100644
index b18c7503f5f5..000000000000
--- a/print/ghostscript-gpl/files/patch-eplaser:gdevesmv.c
+++ /dev/null
@@ -1,62 +0,0 @@
---- eplaser/gdevesmv.c.orig Tue Aug 26 19:45:23 2003
-+++ eplaser/gdevesmv.c Tue Sep 9 22:08:25 2003
-@@ -34,8 +34,6 @@
-
- */
-
--#include <stdlib.h>
--#include <unistd.h>
- #include <string.h>
-
- #include "math_.h"
-@@ -407,6 +405,16 @@
-
-
- /* Vector device implementation */
-+#if GS_VERSION_MAJOR >= 8
-+private int esmv_beginpage(gx_device_vector * vdev);
-+private int esmv_setfillcolor(gx_device_vector * vdev, const gx_drawing_color * pdc);
-+private int esmv_setstrokecolor(gx_device_vector * vdev, const gx_drawing_color * pdc);
-+private int esmv_setdash(gx_device_vector * vdev, const float *pattern,
-+ uint count, floatp offset);
-+private int esmv_setflat(gx_device_vector * vdev, floatp flatness);
-+private int esmv_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
-+ gs_logical_operation_t diff);
-+#else
- private int esmv_beginpage(P1(gx_device_vector * vdev));
- private int esmv_setfillcolor(P2(gx_device_vector * vdev, const gx_drawing_color * pdc));
- private int esmv_setstrokecolor(P2(gx_device_vector * vdev, const gx_drawing_color * pdc));
-@@ -415,10 +423,25 @@
- private int esmv_setflat(P2(gx_device_vector * vdev, floatp flatness));
- private int esmv_setlogop(P3(gx_device_vector * vdev, gs_logical_operation_t lop,
- gs_logical_operation_t diff));
-+#endif
- private int esmv_vector_dorect(gx_device_vector * vdev, fixed x0, fixed y0, fixed x1,
- fixed y1, gx_path_type_t type);
- private int esmv_vector_dopath(gx_device_vector * vdev, const gx_path * ppath,
- gx_path_type_t type);
-+#if GS_VERSION_MAJOR >= 8
-+private int esmv_beginpath(gx_device_vector * vdev, gx_path_type_t type);
-+private int esmv_moveto(gx_device_vector * vdev, floatp x0, floatp y0,
-+ floatp x, floatp y, gx_path_type_t type);
-+private int esmv_lineto(gx_device_vector * vdev, floatp x0, floatp y0,
-+ floatp x, floatp y, gx_path_type_t type);
-+private int esmv_curveto(gx_device_vector * vdev, floatp x0, floatp y0,
-+ floatp x1, floatp y1, floatp x2, floatp y2,
-+ floatp x3, floatp y3, gx_path_type_t type);
-+private int esmv_closepath(gx_device_vector * vdev, floatp x, floatp y,
-+ floatp x_start, floatp y_start, gx_path_type_t type);
-+
-+private int esmv_endpath(gx_device_vector * vdev, gx_path_type_t type);
-+#else
- private int esmv_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
- private int esmv_moveto(P6(gx_device_vector * vdev, floatp x0, floatp y0,
- floatp x, floatp y, gx_path_type_t type));
-@@ -431,6 +454,7 @@
- floatp x_start, floatp y_start, gx_path_type_t type));
-
- private int esmv_endpath(P2(gx_device_vector * vdev, gx_path_type_t type));
-+#endif
- private int esmv_setlinewidth(gx_device_vector * vdev, floatp width);
- private int esmv_setlinecap(gx_device_vector * vdev, gs_line_cap cap);
- private int esmv_setlinejoin(gx_device_vector * vdev, gs_line_join join);
diff --git a/print/ghostscript-gpl/files/patch-gdev10v:gdev10v.mak b/print/ghostscript-gpl/files/patch-gdev10v:gdev10v.mak
deleted file mode 100644
index 25a8317379b8..000000000000
--- a/print/ghostscript-gpl/files/patch-gdev10v:gdev10v.mak
+++ /dev/null
@@ -1,22 +0,0 @@
---- gdev10v/gdev10v.mak.orig Thu Oct 12 11:17:50 2000
-+++ gdev10v/gdev10v.mak Thu Oct 12 11:21:12 2000
-@@ -1,12 +1,13 @@
- ### ----------------- The Canon BubbleJet BJ10v device ----------------- ###
-
--bj10v_=gdev10v.$(OBJ) gdevprn.$(OBJ)
--bj10v.dev: $(bj10v_)
-- $(SHP)gssetdev bj10v $(bj10v_)
--bj10vh.dev: $(bj10v_)
-- $(SHP)gssetdev bj10vh $(bj10v_)
-+bj10v_=$(GLOBJ)gdev10v.$(OBJ) $(GLOBJ)gdevprn.$(OBJ)
-+$(DD)bj10v.dev: $(bj10v_) $(DD)page.dev
-+ $(SETPDEV) $(DD)bj10v $(bj10v_)
-+$(DD)bj10vh.dev: $(bj10v_) $(DD)page.dev
-+ $(SETPDEV) $(DD)bj10vh $(bj10v_)
-
- # Uncomment the following line if you are using MS-DOS on PC9801 series.
-
--gdev10v.$(OBJ): gdevbj10.c $(PDEVH)
-+$(GLOBJ)gdev10v.$(OBJ): $(GLSRC)gdevbj10.c $(PDEVH)
-+ $(GLCC) $(GLO_)gdev10v.$(OBJ) $(C_) $(GLSRC)gdev10v.c
- # $(CCC) -DPC9801 gdev10v.c
diff --git a/print/ghostscript-gpl/files/patch-hp2200:gdevcd8.c b/print/ghostscript-gpl/files/patch-hp2200:gdevcd8.c
deleted file mode 100644
index 497acc7d3b65..000000000000
--- a/print/ghostscript-gpl/files/patch-hp2200:gdevcd8.c
+++ /dev/null
@@ -1,296 +0,0 @@
---- hp2200/gdevcd8.c.orig Wed Jun 21 20:39:33 2000
-+++ hp2200/gdevcd8.c Sat Nov 23 03:03:58 2002
-@@ -409,19 +409,19 @@
- };
-
- private int
-- rescale_byte_wise1x1(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise1x1(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
- private int
-- rescale_byte_wise2x1(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise2x1(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
- private int
-- rescale_byte_wise1x2(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise1x2(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
- private int
-- rescale_byte_wise2x2(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise2x2(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
-
--private int (* const rescale_color_plane[2][2]) (P4(int, const byte *, const byte *, byte *)) = {
-+private int (* const rescale_color_plane[2][2]) (int, const byte *, const byte *, byte *) = {
- {
- rescale_byte_wise1x1, rescale_byte_wise1x2
- },
-@@ -574,16 +574,16 @@
- };
-
- /* function pointer typedefs for device driver struct */
--typedef void (*StartRasterMode) (P3(gx_device_printer * pdev, int paper_size,
-- FILE * prn_stream));
--typedef void (*PrintNonBlankLines) (P6(gx_device_printer * pdev,
-+typedef void (*StartRasterMode) (gx_device_printer * pdev, int paper_size,
-+ FILE * prn_stream);
-+typedef void (*PrintNonBlankLines) (gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
-
--typedef void (*TerminatePage) (P2(gx_device_printer * pdev, FILE * prn_stream));
-+typedef void (*TerminatePage) (gx_device_printer * pdev, FILE * prn_stream);
-
- typedef struct gx_device_cdj850_s {
- gx_device_common;
-@@ -729,60 +729,60 @@
- * functions.
- */
- private void
-- cdj850_start_raster_mode(P3(gx_device_printer * pdev,
-- int papersize, FILE * prn_stream));
-+ cdj850_start_raster_mode(gx_device_printer * pdev,
-+ int papersize, FILE * prn_stream);
-
- private void
-- cdj850_print_non_blank_lines(P6(gx_device_printer * pdev,
-+ cdj850_print_non_blank_lines(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
-
- private void
-- cdj850_terminate_page(P2(gx_device_printer * pdev, FILE * prn_stream));
-+ cdj850_terminate_page(gx_device_printer * pdev, FILE * prn_stream);
-
- /* The 880C and siblings need a separate set of functions because they seem
- * to require a somewhat different version of PCL3+.
- */
- private void
-- cdj880_start_raster_mode(P3(gx_device_printer * pdev,
-- int papersize, FILE * prn_stream));
-+ cdj880_start_raster_mode(gx_device_printer * pdev,
-+ int papersize, FILE * prn_stream);
-
- private void
-- cdj880_print_non_blank_lines(P6(gx_device_printer * pdev,
-+ cdj880_print_non_blank_lines(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
-
- private void
-- cdj880_terminate_page(P2(gx_device_printer * pdev, FILE * prn_stream));
-+ cdj880_terminate_page(gx_device_printer * pdev, FILE * prn_stream);
-
- /* Functions for the 1600C.
- */
- private void
-- cdj1600_start_raster_mode(P3(gx_device_printer * pdev,
-- int papersize, FILE * prn_stream));
-+ cdj1600_start_raster_mode(gx_device_printer * pdev,
-+ int papersize, FILE * prn_stream);
- private void
-- cdj1600_print_non_blank_lines(P6(gx_device_printer * pdev,
-+ cdj1600_print_non_blank_lines(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
- private void
-- cdj1600_terminate_page(P2(gx_device_printer * pdev, FILE * prn_stream));
-+ cdj1600_terminate_page(gx_device_printer * pdev, FILE * prn_stream);
-
- /* Functions for the HP2200C */
- private void
-- chp2200_start_raster_mode(P3(gx_device_printer * pdev,
-- int papersize, FILE * prn_stream));
-+ chp2200_start_raster_mode(gx_device_printer * pdev,
-+ int papersize, FILE * prn_stream);
-
- private void
-- chp2200_terminate_page(P2(gx_device_printer * pdev, FILE * prn_stream));
-+ chp2200_terminate_page(gx_device_printer * pdev, FILE * prn_stream);
-
-
- private const gx_device_procs cdj670_procs =
-@@ -855,12 +855,12 @@
- chp2200_terminate_page);
-
- /* Forward references */
--private int cdj_put_param_int(P6(gs_param_list *, gs_param_name,
-- int *, int, int, int));
--private int cdj_put_param_float(P6(gs_param_list *, gs_param_name, float
-- *, float, float, int));
--private int cdj_put_param_bpp(P5(gx_device *, gs_param_list *, int, int, int));
--private int cdj_set_bpp(P3(gx_device *, int, int));
-+private int cdj_put_param_int(gs_param_list *, gs_param_name,
-+ int *, int, int, int);
-+private int cdj_put_param_float(gs_param_list *, gs_param_name, float
-+ *, float, float, int);
-+private int cdj_put_param_bpp(gx_device *, gs_param_list *, int, int, int);
-+private int cdj_set_bpp(gx_device *, int, int);
-
-
- /* hp_colour_open()
-@@ -1102,73 +1102,73 @@
-
- /* internal functions */
- private void
-- FSDlinebw(P7(int scan, int plane_size,
-+ FSDlinebw(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * kP,
-- int n, int *ep, byte * dp));
-+ int n, int *ep, byte * dp);
- private void
-- FSDlinec2(P9(int scan, int plane_size,
-+ FSDlinec2(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * cPa, byte * mPa, byte * yPa, int n,
-- byte * dp, int *ep));
-+ byte * dp, int *ep);
- private void
-- FSDlinec3(P12(int scan, int plane_size,
-+ FSDlinec3(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * cPa, byte * mPa, byte * yPa,
- byte * cPb, byte * mPb, byte * yPb,
-- int n, byte * dp, int *ep));
-+ int n, byte * dp, int *ep);
- private void
-- FSDlinec4(P12(int scan, int plane_size,
-+ FSDlinec4(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * cPa, byte * mPa, byte * yPa,
- byte * cPb, byte * mPb, byte * yPb,
-- int n, byte * dp, int *ep));
-+ int n, byte * dp, int *ep);
- private void
- init_error_buffer(struct misc_struct *misc_vars,
- struct ptr_arrays *data_ptrs);
- private void
-- do_floyd_steinberg(P8(int scan, int cscan, int plane_size,
-+ do_floyd_steinberg(int scan, int cscan, int plane_size,
- int plane_size_c, int n,
- struct ptr_arrays *data_ptrs,
- gx_device_printer * pdev,
-- struct error_val_field *error_values));
-+ struct error_val_field *error_values);
- private int
-- do_gcr(P8(int bytecount, byte * inbyte, const byte * kvalues,
-+ do_gcr(int bytecount, byte * inbyte, const byte * kvalues,
- const byte * cvalues, const byte * mvalues,
- const byte * yvalues, const int *kcorrect,
-- word * inword));
-+ word * inword);
-
- /* UNUSED
- *private int
-- *test_scan (P4(int size,
-+ *test_scan (int size,
- * byte * current,
- * byte * last,
-- * byte * control));
-+ * byte * control);
- *private void
-- *save_color_data(P3(int size,
-+ *save_color_data(int size,
- * byte * current,
-- * byte * saved));
-+ * byte * saved);
- *
- */
- private void
-- send_scan_lines(P6(gx_device_printer * pdev,
-+ send_scan_lines(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
- private void
-- do_gamma(P3(float mastergamma, float gammaval, byte * values));
-+ do_gamma(float mastergamma, float gammaval, byte * values);
- private void
-- do_black_correction(P2(float kvalue, int *kcorrect));
-+ do_black_correction(float kvalue, int *kcorrect);
-
- private void
-- init_data_structure(P3(gx_device_printer * pdev,
-+ init_data_structure(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
-- struct misc_struct *misc_vars));
-+ struct misc_struct *misc_vars);
- private void
-- calculate_memory_size(P2(gx_device_printer * pdev,
-- struct misc_struct *misc_vars));
-+ calculate_memory_size(gx_device_printer * pdev,
-+ struct misc_struct *misc_vars);
-
-
- private void
-@@ -3393,13 +3393,14 @@
- (y) = gx_bits_to_color_value((v) & ((1 << (b)) - 1), (b))
-
- private gx_color_index
--gdev_cmyk_map_cmyk_color(gx_device * pdev,
-- gx_color_value cyan, gx_color_value magenta,
-- gx_color_value yellow,
-- gx_color_value black)
-+gdev_cmyk_map_cmyk_color(gx_device * pdev, const gx_color_value cv[])
- {
-
- gx_color_index color;
-+ gx_color_value cyan = cv[0];
-+ gx_color_value magenta = cv[1];
-+ gx_color_value yellow = cv[2];
-+ gx_color_value black = cv[3];
-
- switch (pdev->color_info.depth) {
- case 1:
-@@ -3432,9 +3433,11 @@
- /* Mapping of RGB colors to gray values. */
-
- private gx_color_index
--gdev_cmyk_map_rgb_color(gx_device * pdev, gx_color_value r, gx_color_value
-- g, gx_color_value b)
-+gdev_cmyk_map_rgb_color(gx_device * pdev, const gx_color_value cv[])
- {
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- if (gx_color_value_to_byte(r & g & b) == 0xff) {
- return (gx_color_index) 0; /* White */
- } else {
-@@ -3522,9 +3525,11 @@
- }
-
- private gx_color_index
--gdev_pcl_map_rgb_color(gx_device * pdev, gx_color_value r,
-- gx_color_value g, gx_color_value b)
-+gdev_pcl_map_rgb_color(gx_device * pdev, const gx_color_value cv[])
- {
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- if (gx_color_value_to_byte(r & g & b) == 0xff)
- return (gx_color_index) 0; /* white */
- else {
diff --git a/print/ghostscript-gpl/files/patch-lib:gs_init.ps b/print/ghostscript-gpl/files/patch-lib:gs_init.ps
deleted file mode 100644
index 70de88245ddc..000000000000
--- a/print/ghostscript-gpl/files/patch-lib:gs_init.ps
+++ /dev/null
@@ -1,19 +0,0 @@
---- lib/gs_init.ps.orig Fri Feb 1 12:25:45 2002
-+++ lib/gs_init.ps Sat Feb 9 01:42:10 2002
-@@ -1274,7 +1274,7 @@
- % Set the default screen and BG/UCR.
- /.setdefaultbgucr {
- systemdict /setblackgeneration known {
-- { pop 0 } dup setblackgeneration setundercolorremoval
-+ {} dup setblackgeneration setundercolorremoval
- } if
- } bind def
- /.useloresscreen { % - .useloresscreen <bool>
-@@ -1874,3 +1874,7 @@
- userdict /AGM_preserve_spots false put
-
- % The interpreter will run the initial procedure (start).
-+
-+% unofficial patch:
-+% make it possible to print from within acroread pdf viewer
-+/Default currenthalftone /Halftone defineresource pop
diff --git a/print/ghostscript-gpl/files/patch-lib:gs_statd.ps b/print/ghostscript-gpl/files/patch-lib:gs_statd.ps
deleted file mode 100644
index d78c6e16bfc0..000000000000
--- a/print/ghostscript-gpl/files/patch-lib:gs_statd.ps
+++ /dev/null
@@ -1,23 +0,0 @@
---- lib/gs_statd.ps.orig Fri Oct 11 02:29:39 2002
-+++ lib/gs_statd.ps Fri Dec 6 04:53:01 2002
-@@ -105,6 +105,12 @@
- /flsa {612 936 //.setpagesize exec} bind def % U.S. foolscap
- /flse {612 936 //.setpagesize exec} bind def % European foolscap
- /halfletter {396 612 //.setpagesize exec} bind def
-+ /postcard {284 419 //.setpagesize exec} bind def
-+ /dbl_postcard {419 568 //.setpagesize exec} bind def
-+ /Executive {522 756 //.setpagesize exec} bind def
-+ /jenv_you4 {298 666 //.setpagesize exec} bind def
-+ /jenv_you2 {324 460 //.setpagesize exec} bind def
-+ /jenv_kaku2 {682 942 //.setpagesize exec} bind def
- % /tabloid {792 1224 //.setpagesize exec} bind def % 11x17 portrait
- % /csheet {1224 1584 //.setpagesize exec} bind def % ANSI C 17x22
- % /dsheet {1584 2448 //.setpagesize exec} bind def % ANSI D 22x34
-@@ -121,6 +127,7 @@
- [ /letter /note %do not change this line, needed by 'setpagetype'
- /legal /lettersmall
- /11x17 /ledger
-+ /postcard /dbl_postcard /Executive /jenv_you4 /jenv_you2 /jenv_kaku2
- /a4small /a3 /a4
- STRICT { (%END SIZES) .skipeof } if
- /a0 /a1 /a2 /a5 /a6 /a7 /a8 /a9 /a10
diff --git a/print/ghostscript-gpl/files/patch-lips:gdevl4r.c b/print/ghostscript-gpl/files/patch-lips:gdevl4r.c
deleted file mode 100644
index 267f26ac8a13..000000000000
--- a/print/ghostscript-gpl/files/patch-lips:gdevl4r.c
+++ /dev/null
@@ -1,47 +0,0 @@
---- lips/gdevl4r.c.orig Thu Nov 2 12:09:18 2000
-+++ lips/gdevl4r.c Fri Sep 12 09:22:08 2003
-@@ -178,8 +178,13 @@
- private int lips4c_output_page(gx_device_printer * pdev, FILE * prn_stream);
- private int lips_delta_encode(byte * inBuff, byte * prevBuff, byte * outBuff, byte * diffBuff, int Length);
- private int lips_byte_cat(byte * TotalBuff, byte * Buff, int TotalLen, int Len);
-+#if GS_VERSION_MAJOR >= 8
-+private int lips_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies);
-+private int lips_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies);
-+#else
- private int lips_print_page_copies(P4(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies));
- private int lips_print_page_copies(P4(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies));
-+#endif
- private int lips4type_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, int num_copies, int ptype);
-
- private int
-@@ -1065,11 +1070,11 @@
- if (paper_size == USER_SIZE) {
- fprintf(prn_stream, "%c2 I", LIPS_CSI);
- fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI,
-- width * 10, height * 10);
-+ height * 10, width * 10);
- } else if (paper_size == USER_SIZE + LANDSCAPE) {
- fprintf(prn_stream, "%c2 I", LIPS_CSI);
- fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI,
-- height * 10, width * 10);
-+ width * 10, height * 10);
- } else {
- fprintf(prn_stream, "%c%dp", LIPS_CSI, paper_size);
- }
-@@ -1078,14 +1083,14 @@
- prev_paper_height != height) {
- fprintf(prn_stream, "%c2 I", LIPS_CSI);
- fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI,
-- width * 10, height * 10);
-+ height * 10, width * 10);
- }
- } else if (paper_size == USER_SIZE + LANDSCAPE) {
- if (prev_paper_width != width ||
- prev_paper_height != height) {
- fprintf(prn_stream, "%c2 I", LIPS_CSI);
- fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI,
-- height * 10, width * 10);
-+ width * 10, height * 10);
- }
- }
- /* desired number of copies */
diff --git a/print/ghostscript-gpl/files/patch-lips:gdevl4v.c b/print/ghostscript-gpl/files/patch-lips:gdevl4v.c
deleted file mode 100644
index 91da63b0b63e..000000000000
--- a/print/ghostscript-gpl/files/patch-lips:gdevl4v.c
+++ /dev/null
@@ -1,122 +0,0 @@
---- lips/gdevl4v.c.orig Thu Nov 2 12:09:18 2000
-+++ lips/gdevl4v.c Fri Sep 12 10:11:25 2003
-@@ -230,41 +230,66 @@
- };
-
- /* Vector device implementation */
--private int lips4v_beginpage(P1(gx_device_vector * vdev));
--private int lips4v_setfillcolor(P2(gx_device_vector * vdev,
-- const gx_drawing_color * pdc));
--private int lips4v_setstrokecolor(P2(gx_device_vector * vdev,
-- const gx_drawing_color * pdc));
--private int lips4v_setdash(P4(gx_device_vector * vdev, const float *pattern,
-- uint count, floatp offset));
--private int lips4v_setflat(P2(gx_device_vector * vdev, floatp flatness));
-+#if GS_VERSION_MAJOR >= 8
-+private int lips4v_beginpage(gx_device_vector * vdev);
-+private int lips4v_setfillcolor(gx_device_vector * vdev,
-+ const gx_drawing_color * pdc);
-+private int lips4v_setstrokecolor(gx_device_vector * vdev,
-+ const gx_drawing_color * pdc);
-+private int lips4v_setdash(gx_device_vector * vdev, const float *pattern,
-+ uint count, floatp offset);
-+private int lips4v_setflat(gx_device_vector * vdev, floatp flatness);
-+private int
-+lips4v_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
-+ gs_logical_operation_t diff);
- private int
--lips4v_setlogop(P3
-
-- (gx_device_vector * vdev, gs_logical_operation_t lop,
-- gs_logical_operation_t diff));
-+lips4v_beginpath(gx_device_vector * vdev, gx_path_type_t type);
-+private int
-+lips4v_moveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-+ floatp y, gx_path_type_t type);
-+private int
-+lips4v_lineto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-+ floatp y, gx_path_type_t type);
-+private int
-+lips4v_curveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x1,
-+ floatp y1, floatp x2, floatp y2, floatp x3, floatp y3,
-+ gx_path_type_t type);
-+lips4v_closepath(gx_device_vector * vdev, floatp x, floatp y, floatp x_start,
-+ floatp y_start, gx_path_type_t type);
-+
-+private int lips4v_endpath(gx_device_vector * vdev, gx_path_type_t type);
-+#else
-+private int lips4v_beginpage(P1(gx_device_vector * vdev));
-+private int lips4v_setfillcolor(gx_device_vector * vdev,
-+ const gx_drawing_color * pdc);
-+private int lips4v_setstrokecolor(gx_device_vector * vdev,
-+ const gx_drawing_color * pdc);
-+private int lips4v_setdash(gx_device_vector * vdev, const float *pattern,
-+ uint count, floatp offset);
-+private int lips4v_setflat(gx_device_vector * vdev, floatp flatness);
-+private int
-+lips4v_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
-+ gs_logical_operation_t diff);
- private int
-
--lips4v_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
-+lips4v_beginpath(gx_device_vector * vdev, gx_path_type_t type);
- private int
--lips4v_moveto(P6
-- (gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-- floatp y, gx_path_type_t type));
-+lips4v_moveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-+ floatp y, gx_path_type_t type);
- private int
--lips4v_lineto(P6
-- (gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-- floatp y, gx_path_type_t type));
-+lips4v_lineto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-+ floatp y, gx_path_type_t type);
- private int
--lips4v_curveto(P10
-- (gx_device_vector * vdev, floatp x0, floatp y0, floatp x1,
-+lips4v_curveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x1,
- floatp y1, floatp x2, floatp y2, floatp x3, floatp y3,
-- gx_path_type_t type));
-+ gx_path_type_t type);
- private int
--lips4v_closepath(P6
-- (gx_device_vector * vdev, floatp x, floatp y, floatp x_start,
-- floatp y_start, gx_path_type_t type));
-+lips4v_closepath(gx_device_vector * vdev, floatp x, floatp y, floatp x_start,
-+ floatp y_start, gx_path_type_t type);
-
--private int lips4v_endpath(P2(gx_device_vector * vdev, gx_path_type_t type));
-+private int lips4v_endpath(gx_device_vector * vdev, gx_path_type_t type);
-+#endif
- private int lips4v_setlinewidth(gx_device_vector * vdev, floatp width);
- private int lips4v_setlinecap(gx_device_vector * vdev, gs_line_cap cap);
- private int lips4v_setlinejoin(gx_device_vector * vdev, gs_line_join join);
-@@ -758,10 +783,10 @@
- /* Íѻ極¥¤¥º */
- if (pdev->prev_paper_size != paper_size) {
- if (paper_size == USER_SIZE) {
-- sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10);
-+ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10);
- lputs(s, paper);
- } else if (paper_size == USER_SIZE + LANDSCAPE) {
-- sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10);
-+ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10);
- lputs(s, paper);
- } else {
- sprintf(paper, "%c%dp", LIPS_CSI, paper_size);
-@@ -770,12 +795,12 @@
- } else if (paper_size == USER_SIZE) {
- if (pdev->prev_paper_width != width ||
- pdev->prev_paper_height != height)
-- sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10);
-+ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10);
- lputs(s, paper);
- } else if (paper_size == USER_SIZE + LANDSCAPE) {
- if (pdev->prev_paper_width != width ||
- pdev->prev_paper_height != height)
-- sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10);
-+ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10);
- lputs(s, paper);
- }
- pdev->prev_paper_size = paper_size;
diff --git a/print/ghostscript-gpl/files/patch-lips:gdevlips.mak b/print/ghostscript-gpl/files/patch-lips:gdevlips.mak
deleted file mode 100644
index a434f739a5fa..000000000000
--- a/print/ghostscript-gpl/files/patch-lips:gdevlips.mak
+++ /dev/null
@@ -1,59 +0,0 @@
---- lips/gdevlips.mak.orig Thu Nov 2 12:12:13 2000
-+++ lips/gdevlips.mak Sat Sep 27 22:16:20 2003
-@@ -1,17 +1,19 @@
- # ---------------- Laser Printer devices ---------------- #
- # $Id: gdevlips.mak $
-
-+lips_opts=-DGS_VERSION_MAJOR=$(GS_VERSION_MAJOR)
-+
- $(GLOBJ)gdevlprn.$(OBJ): $(GLSRC)gdevlprn.c $(GLSRC)gdevlprn.h\
- $(gdevprn_h) $(PDEVH)
-- $(GLCC) $(GLO_)gdevlprn.$(OBJ) $(C_) $(GLSRC)gdevlprn.c
-+ $(GLCC) $(GLO_)gdevlprn.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevlprn.c
-
- ### --- The Canon LIPS II+/III/IVc/IV printer device --- ###
-
- lipsr_=$(GLOBJ)gdevl4r.$(OBJ) $(GLOBJ)gdevlips.$(OBJ) $(GLOBJ)gdevlprn.$(OBJ)
- $(GLOBJ)gdevl4r.$(OBJ): $(GLSRC)gdevl4r.c $(GLSRC)gdevlips.h $(PDEVH)
-- $(GLCC) -DA4 $(GLO_)gdevl4r.$(OBJ) $(C_) $(GLSRC)gdevl4r.c
-+ $(GLCC) -DA4 $(GLO_)gdevl4r.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevl4r.c
- $(GLOBJ)gdevlips.$(OBJ): $(GLSRC)gdevlips.c
-- $(GLCC) $(GLO_)gdevlips.$(OBJ) $(C_) $(GLSRC)gdevlips.c
-+ $(GLCC) $(GLO_)gdevlips.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevlips.c
- $(DD)lips2p.dev: $(lipsr_) $(DD)page.dev
- $(SETPDEV) $(DD)lips2p $(lipsr_)
- $(DD)lips3.dev: $(lipsr_) $(DD)page.dev
-@@ -29,13 +31,13 @@
- $(GLOBJ)gdevl4v.$(OBJ): $(GLSRC)gdevl4v.c $(GLSRC)gdevlips.h $(GDEV) $(math__h)\
- $(gscspace_h) $(gsutil_h) $(gsparam_h) $(gsmatrix_h) $(gdevvec_h)\
- $(ghost_h) $(gzstate_h) $(igstate_h)
-- $(GLCC) -DA4 $(GLO_)gdevl4v.$(OBJ) $(C_) $(GLSRC)gdevl4v.c
-+ $(GLCC) -DA4 $(GLO_)gdevl4v.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevl4v.c
-
- ### ------- Epson ESC/Page printer device ----------------- ###
-
- escpage_=$(GLOBJ)gdevespg.$(OBJ) $(GLOBJ)gdevlprn.$(OBJ)
- $(GLOBJ)gdevespg.$(OBJ): $(GLSRC)gdevespg.c $(GLSRC)gdevlprn.h $(PDEVH)
-- $(GLCC) -DA4 $(GLO_)gdevespg.$(OBJ) $(C_) $(GLSRC)gdevespg.c
-+ $(GLCC) -DA4 $(GLO_)gdevespg.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevespg.c
-
- $(GLOBJ)escpage.dev: $(escpage_) $(DD)page.dev
- $(SETPDEV) $(DD)escpage $(escpage_)
-@@ -47,7 +49,7 @@
-
- npdl_=$(GLOBJ)gdevnpdl.$(OBJ) $(GLOBJ)gdevlprn.$(OBJ)
- $(GLOBJ)gdevnpdl.$(OBJ): $(GLSRC)gdevnpdl.c $(GLSRC)gdevlprn.h $(PDEVH)
-- $(GLCC) -DA4 $(GLO_)gdevnpdl.$(OBJ) $(C_) $(GLSRC)gdevnpdl.c
-+ $(GLCC) -DA4 $(GLO_)gdevnpdl.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevnpdl.c
-
- $(GLOBJ)npdl.dev: $(npdl_) $(DD)page.dev
- $(SETPDEV) $(DD)npdl $(npdl_)
-@@ -56,7 +58,7 @@
-
- rpdl_=$(GLOBJ)gdevrpdl.$(OBJ) $(GLOBJ)gdevlprn.$(OBJ)
- $(GLOBJ)gdevrpdl.$(OBJ): $(GLSRC)gdevrpdl.c $(GLSRC)gdevlprn.h $(PDEVH)
-- $(GLCC) -DA4 $(GLO_)gdevrpdl.$(OBJ) $(C_) $(GLSRC)gdevrpdl.c
-+ $(GLCC) -DA4 $(GLO_)gdevrpdl.$(OBJ) $(C_) $(lips_opts) $(GLSRC)gdevrpdl.c
-
- $(GLOBJ)rpdl.dev: $(rpdl_) $(DD)page.dev
- $(SETPDEV) $(DD)rpdl $(rpdl_)
diff --git a/print/ghostscript-gpl/files/patch-lips:gdevlprn.h b/print/ghostscript-gpl/files/patch-lips:gdevlprn.h
deleted file mode 100644
index f692dbe410a2..000000000000
--- a/print/ghostscript-gpl/files/patch-lips:gdevlprn.h
+++ /dev/null
@@ -1,16 +0,0 @@
---- lips/gdevlprn.h.orig Thu Nov 2 12:09:18 2000
-+++ lips/gdevlprn.h Sat Sep 13 23:06:38 2003
-@@ -28,8 +28,13 @@
-
- #include "gdevprn.h"
-
-+#if GS_VERSION_MAJOR >= 8
-+#define lprn_dev_proc_image_out(proc)\
-+ void proc(gx_device_printer *, FILE *, int, int, int, int)
-+#else
- #define lprn_dev_proc_image_out(proc)\
- void proc(P6(gx_device_printer *, FILE *, int, int, int, int))
-+#endif
-
- #define dev_proc_image_out(proc) lprn_dev_proc_image_out(proc)
-
diff --git a/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c b/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
deleted file mode 100644
index fef3a6452e40..000000000000
--- a/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- lxm3200/gdevlx32.c.orig Wed Apr 23 01:06:20 2003
-+++ lxm3200/gdevlx32.c Thu May 15 08:24:08 2003
-@@ -422,9 +422,11 @@
- * of the nearest color.
- */
- private gx_color_index
--lxm3200_map_rgb_color(gx_device *dev, gx_color_value r,
-- gx_color_value g, gx_color_value b)
-+lxm3200_map_rgb_color(gx_device *dev, const gx_color_value cv[])
- {
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- gx_color_index col;
- int c, m, y;
-
-@@ -479,7 +481,7 @@
- break;
-
- default:
-- col = gdev_prn_map_rgb_color(dev, r, g, b);
-+ col = gdev_prn_map_rgb_color(dev, cv);
- break;
- }
-
diff --git a/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c b/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c
deleted file mode 100644
index 4b1049db015c..000000000000
--- a/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.c
+++ /dev/null
@@ -1,50 +0,0 @@
---- md2k/gdevmd2k.c.orig Sun May 2 14:07:57 1999
-+++ md2k/gdevmd2k.c Fri Nov 8 07:29:13 2002
-@@ -638,11 +638,13 @@
- (k) = gx_bits_to_color_value((v) & ((1 << (b)) - 1), (b))
-
- private gx_color_index
--alps_map_cmyk_color(gx_device* pdev,
-- gx_color_value c, gx_color_value m,
-- gx_color_value y, gx_color_value k)
-+alps_map_cmyk_color(gx_device* pdev, const gx_color_value cv[])
- {
- gx_color_index color;
-+ gx_color_value c = cv[0];
-+ gx_color_value m = cv[1];
-+ gx_color_value y = cv[2];
-+ gx_color_value k = cv[3];
-
- switch (pdev->color_info.depth) {
- case 1:
-@@ -675,10 +677,12 @@
- }
-
- private gx_color_index
--alps_map_cmy_color(gx_device* pdev,
-- gx_color_value c, gx_color_value m,
-- gx_color_value y, gx_color_value k)
-+alps_map_cmy_color(gx_device* pdev, const gx_color_value cv[])
- {
-+ gx_color_value c = cv[0];
-+ gx_color_value m = cv[1];
-+ gx_color_value y = cv[2];
-+ gx_color_value k = cv[3];
- int nbits = pdev->color_info.depth;
- ulong weight = ((gx_max_color_value - k) << 10) / gx_max_color_value;
- c = ((c * weight) >> 10) + k;
-@@ -694,10 +698,12 @@
- /* Mapping of RGB colors to gray values. */
-
- private gx_color_index
--alps_map_rgb_color(gx_device *pdev,
-- gx_color_value r, gx_color_value g, gx_color_value b)
-+alps_map_rgb_color(gx_device *pdev, const gx_color_value cv[])
- {
-
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- if (gx_color_value_to_byte(r & g & b) == 0xff) {
- return (gx_color_index) 0; /* White */
- } else {
diff --git a/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.mak b/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.mak
deleted file mode 100644
index b003efb81f7f..000000000000
--- a/print/ghostscript-gpl/files/patch-md2k:gdevmd2k.mak
+++ /dev/null
@@ -1,19 +0,0 @@
---- md2k/gdevmd2k.mak-5.50.orig Sun Nov 19 18:42:20 2000
-+++ md2k/gdevmd2k.mak-5.50 Sun Nov 19 18:52:14 2000
-@@ -3,11 +3,11 @@
-
- md2k_=$(GLOBJ)gdevmd2k.$(OBJ)
-
--md2k.dev: $(md2k_) page.dev
-- $(SETPDEV) md2k $(md2k_)
-+$(DD)md2k.dev: $(md2k_) $(DD)page.dev
-+ $(SETPDEV) $(DD)md2k $(md2k_)
-
--md5k.dev: $(md2k_) page.dev
-- $(SETPDEV) md5k $(md2k_)
-+$(DD)md5k.dev: $(md2k_) $(DD)page.dev
-+ $(SETPDEV) $(DD)md5k $(md2k_)
-
--$(GLOBJ)gdevmd2k.$(OBJ): gdevmd2k.c $(PDEVH) $(gsparam_h)
-+$(GLOBJ)gdevmd2k.$(OBJ): $(GLSRC)gdevmd2k.c $(PDEVH) $(gsparam_h)
- $(GLCC) $(GLO_)gdevmd2k.$(OBJ) $(C_) $(GLSRC)gdevmd2k.c
diff --git a/print/ghostscript-gpl/files/patch-mjc:gdevmjc.c b/print/ghostscript-gpl/files/patch-mjc:gdevmjc.c
deleted file mode 100644
index ffdae781ffa1..000000000000
--- a/print/ghostscript-gpl/files/patch-mjc:gdevmjc.c
+++ /dev/null
@@ -1,377 +0,0 @@
---- mjc/gdevmjc.c.orig Sat Nov 2 17:58:50 1996
-+++ mjc/gdevmjc.c Sun Nov 10 21:37:22 2002
-@@ -43,7 +43,8 @@
- #include <limits.h>
- #include "gdevprn.h"
- #include "gdevpcl.h"
--#include "gsprops.h"
-+#include "gsparam.h"
-+#include "gsstate.h"
-
- #include "mjmtx2.c"
- #include "mjbksep.c"
-@@ -150,7 +151,9 @@
-
- /* Undefined macros expected to be defined in gdevpcl.h */
- #define PAPER_SIZE_A3_NOBI 28
-+#ifndef PAPER_SIZE_A2
- #define PAPER_SIZE_A2 29
-+#endif
- #define PAPER_SIZE_B4 30
- #define PAPER_SIZE_B5 31
-
-@@ -190,18 +193,16 @@
- private dev_proc_print_page(mjc720_print_page);
- private dev_proc_print_page(mj500c_print_page);
-
--private dev_proc_get_props(mj_get_props);
--private dev_proc_put_props(mj_put_props);
--
--private void expand_line(P4(word*, int, int, int));
--private int put_prop_float(P5(gs_prop_item *, float *, float, float, int));
--private int put_prop_int(P5(gs_prop_item *, int *, int, int, int));
-+private dev_proc_get_params(mj_get_params);
-+private dev_proc_put_params(mj_put_params);
-
--private void set_bpp(P2(gx_device *, int));
-+private void expand_line(word*, int, int, int);
-+private int mj_put_param_int(gs_param_list *, gs_param_name, int *, int, int, int);
-+private void mj_set_bpp(gx_device *, int);
-
--private uint gdev_prn_rasterwidth(P2(const gx_device_printer *, int ));
-+private uint gdev_prn_rasterwidth(const gx_device_printer *, int );
-
--private gx_color_index mjc_correct_color(P2(gx_device_printer *, gx_color_index));
-+private gx_color_index mjc_correct_color(gx_device_printer *, gx_color_index);
-
- /* The device descriptors */
- struct gx_device_mj_s {
-@@ -224,7 +225,7 @@
- #define mj ((gx_device_mj *) pdev)
-
- #define prn_hp_colour_device(procs, dev_name, x_dpi, y_dpi, bpp, print_page)\
-- prn_device_body(gx_device_printer, procs, dev_name,\
-+ prn_device_body(gx_device_mj, procs, dev_name,\
- WIDTH_10THS, HEIGHT_10THS, x_dpi, y_dpi, 0, 0, 0, 0, 0,\
- bpp, 0, 0, 0, 0, print_page)
-
-@@ -235,9 +236,9 @@
- }
-
-
--#define mj_colour_procs(proc_colour_open, proc_get_props, proc_put_props) {\
-+#define mj_colour_procs(proc_colour_open, proc_get_params, proc_put_params) {\
- proc_colour_open,\
-- gdev_pcl_get_initial_matrix,\
-+ gx_default_get_initial_matrix,\
- gx_default_sync_output,\
- gdev_prn_output_page,\
- gdev_prn_close,\
-@@ -249,15 +250,15 @@
- NULL, /* copy_color */\
- NULL, /* draw_line */\
- gx_default_get_bits,\
-- proc_get_props,\
-- proc_put_props\
-+ proc_get_params,\
-+ proc_put_params\
- }
-
--private int mjc_open(P1(gx_device *));
--private int mj_colour_open(P1(gx_device *));
-+private int mjc_open(gx_device *);
-+private int mj_colour_open(gx_device *);
-
- private gx_device_procs mj_procs =
--mj_colour_procs(mjc_open, mj_get_props, mj_put_props);
-+mj_colour_procs(mjc_open, mj_get_params, mj_put_params);
-
- gx_device_mj far_data gs_mjc180_device =
- mj_device(mj_procs, "mjc180", 180, 180, BITSPERPIXEL,
-@@ -306,14 +307,14 @@
- static const float mj_b4[4] = { MJ700V2C_MARGINS_B4 };
- static const float mj_b5[4] = { MJ700V2C_MARGINS_B5 };
- static const float mj_letter[4] = { MJ700V2C_MARGINS_LETTER };
-- const float _ds *m;
-+ const float *m;
- int psize;
-
- int paper_size;
-
- /* Set up colour params if put_props has not already done so */
- if (pdev->color_info.num_components == 0)
-- set_bpp(pdev, pdev->color_info.depth);
-+ mj_set_bpp(pdev, pdev->color_info.depth);
-
- paper_size = gdev_mjc_paper_size(pdev);
- if (paper_size == PAPER_SIZE_A2 ) {
-@@ -332,10 +333,7 @@
- m = mj_letter;
- }
-
-- pdev->l_margin = m[0];
-- pdev->b_margin = m[1];
-- pdev->r_margin = m[2];
-- pdev->t_margin = m[3];
-+ gx_device_set_margins(pdev, m, true);
-
- switch (mj->colorcomp) {
- case 1:
-@@ -360,84 +358,78 @@
- * and control over the bits-per-pixel used in output rendering */
- /* Added properties for DeskJet 5xxC */
-
--private const gs_prop_item props_mj[] = {
-- /* Read-write properties. */
-- prop_def("Density", prt_int),
-- prop_def("Cyan", prt_int),
-- prop_def("Magenta", prt_int),
-- prop_def("Yellow", prt_int),
-- prop_def("Black", prt_int),
-- prop_def("Dither", prt_int),
-- prop_def("ColorComponent", prt_int),
-- prop_def("Direction", prt_int),
-- prop_def("MicroWeave", prt_int),
-- prop_def("DotSize", prt_int),
--};
--
- private int
--mj_get_props(gx_device *pdev, gs_prop_item *plist)
--{ int start = gdev_prn_get_props(pdev, plist);
-- if ( plist != 0 ) {
-- register gs_prop_item *pi = plist + start;
-- memcpy(pi, props_mj, sizeof(props_mj));
-- pi[0].value.i = mj->density;
-- pi[1].value.i = mj->cyan;
-- pi[2].value.i = mj->magenta;
-- pi[3].value.i = mj->yellow;
-- pi[4].value.i = mj->black;
-- pi[5].value.i = mj->dither;
-- pi[6].value.i = mj->colorcomp;
-- pi[7].value.i = mj->direction;
-- pi[8].value.i = mj->microweave;
-- pi[9].value.i = mj->dotsize;
-- }
-- return start + sizeof(props_mj) / sizeof(gs_prop_item);
-+mj_get_params(gx_device *pdev, gs_param_list *plist)
-+{ int code = gdev_prn_get_params(pdev, plist);
-+ if ( code < 0 ||
-+ (code = param_write_int(plist, "Density", &mj->density)) < 0 ||
-+ (code = param_write_int(plist, "Cyan", &mj->cyan)) < 0 ||
-+ (code = param_write_int(plist, "Magenta", &mj->magenta)) < 0 ||
-+ (code = param_write_int(plist, "Yellow", &mj->yellow)) < 0 ||
-+ (code = param_write_int(plist, "Black", &mj->black)) < 0 ||
-+ (code = param_write_int(plist, "Dither", &mj->dither)) < 0 ||
-+ (code = param_write_int(plist, "ColorComponent", &mj->colorcomp)) < 0 ||
-+ (code = param_write_int(plist, "Direction", &mj->direction)) < 0 ||
-+ (code = param_write_int(plist, "MicroWeave", &mj->microweave)) < 0 ||
-+ (code = param_write_int(plist, "DotSize", &mj->dotsize)) < 0
-+ )
-+ return code;
-+ return code;
- }
-
- /* Put properties. */
- private int
--mj_put_props(gx_device *pdev, gs_prop_item *plist, int count)
-+mj_put_params(gx_device *pdev, gs_param_list *plist)
- {
-- static const argn = 10;
--/* gs_prop_item *known[argn]; */
-- gs_prop_item *known[10];
- int old_bpp = mj->color_info.depth;
- int bpp = 0;
- int code = 0;
--
-- props_extract(plist, count, props_mj, argn, known, 0);
-- code = gdev_prn_put_props(pdev, plist, count);
-- if ( code < 0 ) return code;
--
-- code = put_prop_int(known[0], &mj->density, 0, INT_MAX, code);
-- code = put_prop_int(known[1], &mj->cyan, 0, INT_MAX, code);
-- code = put_prop_int(known[2], &mj->magenta, 0, INT_MAX, code);
-- code = put_prop_int(known[3], &mj->yellow, 0, INT_MAX, code);
-- code = put_prop_int(known[4], &mj->black, 0, INT_MAX, code);
-- code = put_prop_int(known[5], &mj->dither, 0, 1, code);
-- code = put_prop_int(known[6], &mj->colorcomp, 1, 4, code);
-- code = put_prop_int(known[7], &mj->direction, 1, 2, code);
-- code = put_prop_int(known[8], &mj->microweave, 0, 1, code);
-- code = put_prop_int(known[9], &mj->dotsize, 0, 1, code);
--
-+ int density = mj->density;
-+ int cyan = mj->cyan;
-+ int magenta = mj->magenta;
-+ int yellow = mj->yellow;
-+ int black = mj->black;
-+ int dither = mj->dither;
-+ int colorcomp = mj->colorcomp;
-+ int direction = mj->direction;
-+ int microweave = mj->microweave;
-+ int dotsize = mj->dotsize;
-+ code = mj_put_param_int(plist, "Density", &density, 0, INT_MAX, code);
-+ code = mj_put_param_int(plist, "Cyan", &cyan, 0, INT_MAX, code);
-+ code = mj_put_param_int(plist, "Magenta", &magenta, 0, INT_MAX, code);
-+ code = mj_put_param_int(plist, "Yellow", &yellow, 0, INT_MAX, code);
-+ code = mj_put_param_int(plist, "Black", &black, 0, INT_MAX, code);
-+ code = mj_put_param_int(plist, "Dither", &dither, 0, 1, code);
-+ code = mj_put_param_int(plist, "ColorComponent", &colorcomp, 1, 4, code);
-+ code = mj_put_param_int(plist, "Direction", &direction, 1, 2, code);
-+ code = mj_put_param_int(plist, "MicroWeave", &microweave, 0, 1, code);
-+ code = mj_put_param_int(plist, "DotSize", &dotsize, 0, 1, code);
-+ code = mj_put_param_int(plist, "BitsPerPixel", &bpp, 1, 32, code);
- if ( code < 0 )
-- return_error(code);
--
-- if (bpp != 0) {
-- set_bpp(pdev, bpp);
--
-- /* Close the device; gs_putdeviceprops will reopen it. */
-+ return code;
-+ mj->density = density;
-+ mj->cyan = cyan;
-+ mj->magenta = magenta;
-+ mj->yellow = yellow;
-+ mj->black = black;
-+ mj->dither = dither;
-+ mj->colorcomp = colorcomp;
-+ mj->direction = direction;
-+ mj->microweave = microweave;
-+ mj->dotsize = dotsize;
-+ if ( bpp != 0 ) {
-+ mj_set_bpp(pdev, bpp);
-+ gdev_prn_put_params(pdev, plist);
- if ( bpp != old_bpp && pdev->is_open )
-- { int ccode = gs_closedevice(pdev);
-- if ( ccode < 0 ) return ccode;
-- }
-+ return gs_closedevice(pdev);
-+ return 0;
- }
--
-- return code;
-+ else
-+ return gdev_prn_put_params(pdev, plist);
- }
-
- /* ------ Internal routines ------ */
--private int mj_colour_print_page(P3(gx_device_printer *, FILE *, int));
-+private int mj_colour_print_page(gx_device_printer *, FILE *, int);
-
-
- private int
-@@ -1163,7 +1155,8 @@
-
- /* Send each scan line in turn */
- {
-- long int lend = pdev->height - (pdev->t_margin + pdev->b_margin) * y_dpi;
-+ long int lend = pdev->height -
-+ (dev_t_margin_points(pdev) + dev_b_margin_points(pdev));
- int cErr, mErr, yErr, kErr;
- int this_pass, i;
- long int lnum;
-@@ -1412,10 +1405,10 @@
-
- void
- mj_color_correct(gx_color_value *Rptr ,gx_color_value *Gptr , gx_color_value *Bptr )
-- /* R,G,B : 0`255 */
-+ /* R,G,B : 0)B`255 */
- {
-- short R,G,B; /* R,G,B : 0`255 */
-- short C,M,Y; /* C,M,Y : 0`1023 */
-+ short R,G,B; /* R,G,B : 0)B`255 */
-+ short C,M,Y; /* C,M,Y : 0)B`1023 */
- short H,D,Wa; /* ese-HSV */
- long S; /* HSV */
-
-@@ -1517,9 +1510,11 @@
- * c, m, y, inks by reducing the cyan component to give a truer black.
- */
- private gx_color_index
--gdev_mjc_map_rgb_color(gx_device *pdev, gx_color_value r,
-- gx_color_value g, gx_color_value b)
-+gdev_mjc_map_rgb_color(gx_device *pdev, const gx_color_value cv[])
- {
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- if (gx_color_value_to_byte(r & g & b) == 0xff)
- return (gx_color_index)0; /* white */
- else {
-@@ -1685,39 +1680,25 @@
- }
-
- private int
--put_prop_int(gs_prop_item *pi, int *property, int minval, int maxval, int code)
--{
-- if ( pi == 0 )
-- return (code);
--
-- if ( pi->value.i < minval || pi->value.i > maxval )
-- { pi->status = pv_rangecheck;
-- return (gs_error_rangecheck);
-- }
-- else
-- { *property = pi->value.i;
-- return (code ? code : 1);
-- }
--}
--
--private int
--put_prop_float(gs_prop_item *pi, float *property, float minval, float maxval, int code)
--{
-- if ( pi == 0 )
-- return (code);
--
-- if ( pi->value.f < minval || pi->value.f > maxval )
-- { pi->status = pv_rangecheck;
-- return (gs_error_rangecheck);
-- }
-- else
-- { *property = pi->value.f;
-- return (code ? code : 1);
-- }
-+mj_put_param_int(gs_param_list *plist, gs_param_name pname, int *pvalue,
-+ int minval, int maxval, int ecode)
-+{ int code, value;
-+ switch ( code = param_read_int(plist, pname, &value) )
-+ {
-+ default:
-+ return code;
-+ case 1:
-+ return ecode;
-+ case 0:
-+ if ( value < minval || value > maxval )
-+ param_signal_error(plist, pname, gs_error_rangecheck);
-+ *pvalue = value;
-+ return (ecode < 0 ? ecode : 1);
-+ }
- }
-
- private void
--set_bpp(gx_device *pdev, int bits_per_pixel)
-+mj_set_bpp(gx_device *pdev, int bits_per_pixel)
- { gx_device_color_info *ci = &pdev->color_info;
- /* Only valid bits-per-pixel are 1, 3, 8, 16, 24, 32 */
- int bpp = bits_per_pixel < 3 ? 1 : bits_per_pixel < 8 ? 3 :
-@@ -1725,9 +1706,9 @@
- ci->num_components = ((bpp == 1) || (bpp == 8) ? 1 : 3);
- ci->depth = ((bpp > 1) && (bpp < 8) ? 8 : bpp);
- ci->max_gray = (bpp >= 8 ? 255 : 1);
-- ci->max_rgb = (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0);
-- ci->dither_gray = (bpp >= 8 ? 5 : 2);
-- ci->dither_rgb = (bpp >= 8 ? 5 : bpp > 1 ? 2 : 0);
-+ ci->max_color = (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0);
-+ ci->dither_grays = (bpp >= 8 ? 5 : 2);
-+ ci->dither_colors = (bpp >= 8 ? 5 : bpp > 1 ? 2 : 0);
- }
-
- /* This returns either the number of pixels in a scan line, or the number
-@@ -1736,7 +1717,7 @@
- gdev_prn_rasterwidth(const gx_device_printer *pdev, int pixelcount)
- {
- word raster_width =
-- pdev->width - pdev->x_pixels_per_inch * (pdev->l_margin + pdev->r_margin);
-+ pdev->width - (pdev->HWMargins[0] + pdev->HWMargins[2]);
- return (pixelcount ?
- (uint)raster_width :
- (uint)((raster_width * pdev->color_info.depth + 7) >> 3));
diff --git a/print/ghostscript-gpl/files/patch-mjc:gdevmjc.mak b/print/ghostscript-gpl/files/patch-mjc:gdevmjc.mak
deleted file mode 100644
index a094ea08812f..000000000000
--- a/print/ghostscript-gpl/files/patch-mjc:gdevmjc.mak
+++ /dev/null
@@ -1,43 +0,0 @@
---- mjc/gdevmjc.mak.orig Tue May 23 19:19:13 2000
-+++ mjc/gdevmjc.mak Tue May 23 19:19:40 2000
-@@ -4,25 +4,22 @@
- # Supports MJ-700V2C, MJ-5000C, MJ-900C, MJ-800C, MJ-500C
- #
- ##
--#
--# Append this file to Makefile
--#
--##
--MJCSRC = gdevmjc.c mjmtx2.c mjbksep.c mjhtocmy.c mjvtbl.c \
-- mjgrnsp.c mjgrnsp2.c mjespdtc.c mjespdtm.c mjespdty.c mjbarrie.c
-+MJCSRC = $(GLSRC)gdevmjc.c $(GLSRC)mjmtx2.c $(GLSRC)mjbksep.c \
-+ $(GLSRC)mjhtocmy.c $(GLSRC)mjvtbl.c $(GLSRC)mjgrnsp.c \
-+ $(GLSRC)mjgrnsp2.c $(GLSRC)mjespdtc.c $(GLSRC)mjespdtm.c \
-+ $(GLSRC)mjespdty.c $(GLSRC)mjbarrie.c
-
--mj700v2c_=gdevmjc.$(OBJ) $(HPPCL)
-+mj700v2c_=$(GLOBJ)gdevmjc.$(OBJ) $(HPPCL)
-
- # To make A4 paper the default, change the second line below this to
--gdevmjc.$(OBJ): $(MJCSRC) $(PDEVH) $(gdevpcl_h)
-- $(CCC) -DA4 gdevmjc.c
--
--mjc180.dev: $(mj700v2c_)
-- $(SHP)gssetdev mjc180 $(mj700v2c_)
--mjc360.dev: $(mj700v2c_)
-- $(SHP)gssetdev mjc360 $(mj700v2c_)
--mjc720.dev: $(mj700v2c_)
-- $(SHP)gssetdev mjc720 $(mj700v2c_)
--mj500c.dev: $(mj700v2c_)
-- $(SHP)gssetdev mj500c $(mj700v2c_)
-+$(GLOBJ)gdevmjc.$(OBJ): $(MJCSRC) $(PDEVH) $(gdevpcl_h)
-+ $(GLCC) -DA4 $(GLO_)gdevmjc.$(OBJ) $(C_) $(GLSRC)gdevmjc.c
-
-+$(GLOBJ)mjc180.dev: $(mj700v2c_) $(DD)page.dev
-+ $(SETPDEV) $(DD)mjc180 $(mj700v2c_)
-+$(GLOBJ)mjc360.dev: $(mj700v2c_) $(DD)page.dev
-+ $(SETPDEV) $(DD)mjc360 $(mj700v2c_)
-+$(GLOBJ)mjc720.dev: $(mj700v2c_) $(DD)page.dev
-+ $(SETPDEV) $(DD)mjc720 $(mj700v2c_)
-+$(GLOBJ)mj500c.dev: $(mj700v2c_) $(DD)page.dev
-+ $(SETPDEV) $(DD)mj500c $(mj700v2c_)
diff --git a/print/ghostscript-gpl/files/patch-src:cpca_gdevl4v.c b/print/ghostscript-gpl/files/patch-src:cpca_gdevl4v.c
deleted file mode 100644
index 005f7cdf39dc..000000000000
--- a/print/ghostscript-gpl/files/patch-src:cpca_gdevl4v.c
+++ /dev/null
@@ -1,65 +0,0 @@
---- src/cpca_gdevl4v.c.orig Tue May 7 00:30:00 2002
-+++ src/cpca_gdevl4v.c Fri Dec 6 04:59:34 2002
-@@ -316,41 +316,35 @@
- };
-
- /* Vector device implementation */
--private int lips4v_beginpage(P1(gx_device_vector * vdev));
--private int lips4v_setfillcolor(P2(gx_device_vector * vdev,
-- const gx_drawing_color * pdc));
--private int lips4v_setstrokecolor(P2(gx_device_vector * vdev,
-- const gx_drawing_color * pdc));
--private int lips4v_setdash(P4(gx_device_vector * vdev, const float *pattern,
-- uint count, floatp offset));
--private int lips4v_setflat(P2(gx_device_vector * vdev, floatp flatness));
-+private int lips4v_beginpage(gx_device_vector * vdev);
-+private int lips4v_setfillcolor(gx_device_vector * vdev,
-+ const gx_drawing_color * pdc);
-+private int lips4v_setstrokecolor(gx_device_vector * vdev,
-+ const gx_drawing_color * pdc);
-+private int lips4v_setdash(gx_device_vector * vdev, const float *pattern,
-+ uint count, floatp offset);
-+private int lips4v_setflat(gx_device_vector * vdev, floatp flatness);
- private int
--lips4v_setlogop(P3
--
-- (gx_device_vector * vdev, gs_logical_operation_t lop,
-- gs_logical_operation_t diff));
-+lips4v_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
-+ gs_logical_operation_t diff);
- private int
-
--lips4v_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
-+lips4v_beginpath(gx_device_vector * vdev, gx_path_type_t type);
-+private int
-+lips4v_moveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-+ floatp y, gx_path_type_t type);
- private int
--lips4v_moveto(P6
-- (gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-- floatp y, gx_path_type_t type));
--private int
--lips4v_lineto(P6
-- (gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-- floatp y, gx_path_type_t type));
-+lips4v_lineto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x,
-+ floatp y, gx_path_type_t type);
- private int
--lips4v_curveto(P10
-- (gx_device_vector * vdev, floatp x0, floatp y0, floatp x1,
-+lips4v_curveto(gx_device_vector * vdev, floatp x0, floatp y0, floatp x1,
- floatp y1, floatp x2, floatp y2, floatp x3, floatp y3,
-- gx_path_type_t type));
-+ gx_path_type_t type);
- private int
--lips4v_closepath(P6
-- (gx_device_vector * vdev, floatp x, floatp y, floatp x_start,
-- floatp y_start, gx_path_type_t type));
-+lips4v_closepath(gx_device_vector * vdev, floatp x, floatp y, floatp x_start,
-+ floatp y_start, gx_path_type_t type);
-
--private int lips4v_endpath(P2(gx_device_vector * vdev, gx_path_type_t type));
-+private int lips4v_endpath(gx_device_vector * vdev, gx_path_type_t type);
- private int lips4v_setlinewidth(gx_device_vector * vdev, floatp width);
- private int lips4v_setlinecap(gx_device_vector * vdev, gs_line_cap cap);
- private int lips4v_setlinejoin(gx_device_vector * vdev, gs_line_join join);
diff --git a/print/ghostscript-gpl/files/patch-src:gdevccr.c b/print/ghostscript-gpl/files/patch-src:gdevccr.c
deleted file mode 100644
index 56bb760b8ac8..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevccr.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- src/gdevccr.c.orig Fri Feb 22 07:24:51 2002
-+++ src/gdevccr.c Sun Nov 10 22:38:51 2002
-@@ -112,8 +112,11 @@
- /* ------ Color mapping routines ------ */
- /* map an rgb color to a ccr cmy bitmap */
- private gx_color_index
--ccr_map_rgb_color(gx_device *pdev, ushort r, ushort g, ushort b)
-+ccr_map_rgb_color(gx_device *pdev, const ushort cv[])
- {
-+ ushort r = cv[0];
-+ ushort g = cv[1];
-+ ushort b = cv[2];
- register int shift = gx_color_value_bits - 1;
- r>>=shift;
- g>>=shift;
diff --git a/print/ghostscript-gpl/files/patch-src:gdevcp50.c b/print/ghostscript-gpl/files/patch-src:gdevcp50.c
deleted file mode 100644
index ffc8308ec35d..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevcp50.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/gdevcp50.c.orig Fri Feb 22 07:24:51 2002
-+++ src/gdevcp50.c Sun Nov 10 22:35:13 2002
-@@ -204,9 +204,12 @@
-
- /* Map a r-g-b color to a color index. */
- private gx_color_index
--cp50_rgb_color(gx_device *dev, gx_color_value r, gx_color_value g,
-- gx_color_value b)
--{ return ((ulong)gx_color_value_to_byte(r) << 16)+
-+cp50_rgb_color(gx_device *dev, const gx_color_value cv[])
-+{
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
-+ return ((ulong)gx_color_value_to_byte(r) << 16)+
- ((uint)gx_color_value_to_byte(g) << 8) +
- gx_color_value_to_byte(b);
- }
diff --git a/print/ghostscript-gpl/files/patch-src:gdevdj9.c b/print/ghostscript-gpl/files/patch-src:gdevdj9.c
deleted file mode 100644
index f58a6c7de792..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevdj9.c
+++ /dev/null
@@ -1,255 +0,0 @@
---- src/gdevdj9.c.orig Fri Nov 8 06:15:08 2002
-+++ src/gdevdj9.c Sun Nov 10 22:00:45 2002
-@@ -243,19 +243,19 @@
- };
-
- private int
-- rescale_byte_wise1x1(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise1x1(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
- private int
-- rescale_byte_wise2x1(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise2x1(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
- private int
-- rescale_byte_wise1x2(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise1x2(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
- private int
-- rescale_byte_wise2x2(P4(int bytecount, const byte * inbytea,
-- const byte * inbyteb, byte * outbyte));
-+ rescale_byte_wise2x2(int bytecount, const byte * inbytea,
-+ const byte * inbyteb, byte * outbyte);
-
--private int (* const rescale_color_plane[2][2]) (P4(int, const byte *, const byte *, byte *)) = {
-+private int (* const rescale_color_plane[2][2]) (int, const byte *, const byte *, byte *) = {
- {
- rescale_byte_wise1x1, rescale_byte_wise1x2
- },
-@@ -264,7 +264,7 @@
- }
- };
- /*
--private int (* const rescale_color_plane[2][2]) (P4(int, const byte *, const byte *, byte *)) = {
-+private int (* const rescale_color_plane[2][2]) (int, const byte *, const byte *, byte *) = {
- {
- rescale_byte_wise1x1, rescale_byte_wise1x1
- },
-@@ -273,8 +273,8 @@
- }
- };
- */
--private int cdj970_write_header(P2(gx_device *, FILE *));
--private int cdj970_write_trailer(P2(gx_device *, FILE *));
-+private int cdj970_write_header(gx_device *, FILE *);
-+private int cdj970_write_trailer(gx_device *, FILE *);
-
- /*
- * Drivers stuff.
-@@ -422,16 +422,16 @@
- };
-
- /* function pointer typedefs for device driver struct */
--typedef void (*StartRasterMode) (P3(gx_device_printer * pdev, int paper_size,
-- FILE * prn_stream));
--typedef void (*PrintNonBlankLines) (P6(gx_device_printer * pdev,
-+typedef void (*StartRasterMode) (gx_device_printer * pdev, int paper_size,
-+ FILE * prn_stream);
-+typedef void (*PrintNonBlankLines) (gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
-
--typedef void (*TerminatePage) (P2(gx_device_printer * pdev, FILE * prn_stream));
-+typedef void (*TerminatePage) (gx_device_printer * pdev, FILE * prn_stream);
-
- typedef struct gx_device_cdj970_s {
- gx_device_common;
-@@ -529,18 +529,18 @@
- }
-
- private void
-- cdj970_start_raster_mode(P3(gx_device_printer * pdev,
-- int papersize, FILE * prn_stream));
-+ cdj970_start_raster_mode(gx_device_printer * pdev,
-+ int papersize, FILE * prn_stream);
-
- private void
-- cdj970_print_non_blank_lines(P6(gx_device_printer * pdev,
-+ cdj970_print_non_blank_lines(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
- private void
-- cdj970_terminate_page(P2(gx_device_printer * pdev, FILE * prn_stream));
-+ cdj970_terminate_page(gx_device_printer * pdev, FILE * prn_stream);
-
-
- private const gx_device_procs cdj970_procs =
-@@ -555,12 +555,12 @@
- cdj970_terminate_page);
-
- /* Forward references */
--private int cdj_put_param_int(P6(gs_param_list *, gs_param_name,
-- int *, int, int, int));
--private int cdj_put_param_float(P6(gs_param_list *, gs_param_name, float
-- *, float, float, int));
--private int cdj_put_param_bpp(P5(gx_device *, gs_param_list *, int, int, int));
--private int cdj_set_bpp(P3(gx_device *, int, int));
-+private int cdj_put_param_int(gs_param_list *, gs_param_name,
-+ int *, int, int, int);
-+private int cdj_put_param_float(gs_param_list *, gs_param_name, float
-+ *, float, float, int);
-+private int cdj_put_param_bpp(gx_device *, gs_param_list *, int, int, int);
-+private int cdj_set_bpp(gx_device *, int, int);
-
- static int PageCtr = 0;
-
-@@ -692,70 +692,70 @@
-
- /* internal functions */
- private void
-- FSDlinebw(P7(int scan, int plane_size,
-+ FSDlinebw(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * kP,
-- int n, int *ep, byte * dp));
-+ int n, int *ep, byte * dp);
-
- private void
-- FSDlinec2(P9(int scan, int plane_size,
-+ FSDlinec2(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * cPa, byte * mPa, byte * yPa, int n,
-- byte * dp, int *ep));
-+ byte * dp, int *ep);
-
- private void
-- FSDlinec3(P12(int scan, int plane_size,
-+ FSDlinec3(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * cPa, byte * mPa, byte * yPa,
- byte * cPb, byte * mPb, byte * yPb,
-- int n, byte * dp, int *ep));
-+ int n, byte * dp, int *ep);
-
- private void
-- FSDlinec4(P12(int scan, int plane_size,
-+ FSDlinec4(int scan, int plane_size,
- struct error_val_field *error_values,
- byte * cPa, byte * mPa, byte * yPa,
- byte * cPb, byte * mPb, byte * yPb,
-- int n, byte * dp, int *ep));
-+ int n, byte * dp, int *ep);
-
- private void
- init_error_buffer(struct misc_struct *misc_vars,
- struct ptr_arrays *data_ptrs);
-
- private void
-- do_floyd_steinberg(P8(int scan, int cscan, int plane_size,
-+ do_floyd_steinberg(int scan, int cscan, int plane_size,
- int plane_size_c, int n,
- struct ptr_arrays *data_ptrs,
- gx_device_printer * pdev,
-- struct error_val_field *error_values));
-+ struct error_val_field *error_values);
-
-
- private int
-- do_gcr(P7(int bytecount, byte * inbyte, const byte * kvalues,
-+ do_gcr(int bytecount, byte * inbyte, const byte * kvalues,
- const byte * cvalues, const byte * mvalues,
-- const byte * yvalues, const int *kcorrect));
-+ const byte * yvalues, const int *kcorrect);
-
- private void
-- send_scan_lines(P6(gx_device_printer * pdev,
-+ send_scan_lines(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
- struct misc_struct *misc_vars,
- struct error_val_field *error_values,
- const Gamma *gamma,
-- FILE * prn_stream));
-+ FILE * prn_stream);
-
- private void
-- do_gamma(P3(float mastergamma, float gammaval, byte * values));
-+ do_gamma(float mastergamma, float gammaval, byte * values);
-
- private void
-- do_black_correction(P2(float kvalue, int *kcorrect));
-+ do_black_correction(float kvalue, int *kcorrect);
-
- private void
-- init_data_structure(P3(gx_device_printer * pdev,
-+ init_data_structure(gx_device_printer * pdev,
- struct ptr_arrays *data_ptrs,
-- struct misc_struct *misc_vars));
-+ struct misc_struct *misc_vars);
-
- private void
-- calculate_memory_size(P2(gx_device_printer * pdev,
-- struct misc_struct *misc_vars));
-+ calculate_memory_size(gx_device_printer * pdev,
-+ struct misc_struct *misc_vars);
-
-
- /* assign_dpi:
-@@ -2292,12 +2292,13 @@
- /* gdev_cmyk_map_cmyk_color:
- ----------------------------------------------------------------------------------*/
- private gx_color_index gdev_cmyk_map_cmyk_color(gx_device *pdev,
-- gx_color_value cyan,
-- gx_color_value magenta,
-- gx_color_value yellow,
-- gx_color_value black)
-+ const gx_color_value cv[])
- {
- gx_color_index color;
-+ gx_color_value cyan = cv[0];
-+ gx_color_value magenta = cv[1];
-+ gx_color_value yellow = cv[2];
-+ gx_color_value black = cv[3];
-
- switch (pdev->color_info.depth) {
- case 1:
-@@ -2331,10 +2332,11 @@
- /* gdev_cmyk_map_rgb_color: Mapping of RGB colors to gray values.
- ----------------------------------------------------------------------------------*/
- private gx_color_index gdev_cmyk_map_rgb_color( gx_device *pdev,
-- gx_color_value r,
-- gx_color_value g,
-- gx_color_value b)
-+ const gx_color_value cv[])
- {
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- if (gx_color_value_to_byte(r & g & b) == 0xff) {
- return (gx_color_index) 0; /* White */
- } else {
-@@ -2427,10 +2429,11 @@
- /* gdev_pcl_map_rgb_color:
- ----------------------------------------------------------------------------------*/
- private gx_color_index gdev_pcl_map_rgb_color( gx_device *pdev,
-- gx_color_value r,
-- gx_color_value g,
-- gx_color_value b)
-+ const gx_color_value cv[])
- {
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- if (gx_color_value_to_byte(r & g & b) == 0xff)
- return (gx_color_index) 0; /* white */
- else {
diff --git a/print/ghostscript-gpl/files/patch-src:gdevgdi.c b/print/ghostscript-gpl/files/patch-src:gdevgdi.c
deleted file mode 100644
index 996758e09685..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevgdi.c
+++ /dev/null
@@ -1,983 +0,0 @@
---- src/gdevgdi.c.orig Wed Jun 19 19:32:49 2002
-+++ src/gdevgdi.c Mon Jul 21 13:44:41 2003
-@@ -60,8 +60,8 @@
- #define GDI_REPEAT_LENGTH 2
- #define GDI_BAND_HEIGHT 128
- #define GDI_MAX_BAND 66
--//#define GDI_BAND_WIDTH 4928
--//#define GDI_BAND_WIDTH_BYTES (((GDI_BAND_WIDTH + 31)/32)*4)
-+/*#define GDI_BAND_WIDTH 4928*/
-+/*#define GDI_BAND_WIDTH_BYTES (((GDI_BAND_WIDTH + 31)/32)*4)*/
-
- #define GDI_PRE_COMP 2
- #define GDI_REAL_COMP 0
-@@ -74,8 +74,8 @@
-
- #define GDI_MARGINS_A4 0.167, 0.167, 0.167, 0.167
- #define GDI_MARGINS_LETTER 0.167, 0.167, 0.167, 0.167
--//#define GDI_MARGINS_A4 0.0, 0.0, 0.0, 0.0
--//#define GDI_MARGINS_LETTER 0.0, 0.0, 0.0, 0.0
-+/*#define GDI_MARGINS_A4 0.0, 0.0, 0.0, 0.0*/
-+/*#define GDI_MARGINS_LETTER 0.0, 0.0, 0.0, 0.0*/
-
- /* The number of blank lines that make it worthwhile to reposition */
- /* the cursor. */
-@@ -86,9 +86,15 @@
-
- int GDI_BAND_WIDTH[] = {4768, 4928};
-
-+#if GS_VERSION_MAJOR >= 8
-+private int gdi_print_page(gx_device_printer *pdev, FILE *prn_stream);
-+private int gdi_open(gx_device *pdev);
-+private int gdi_close(gx_device *pdev);
-+#else
- private int gdi_print_page(P2(gx_device_printer *pdev, FILE *prn_stream));
- private int gdi_open(P1(gx_device *pdev));
- private int gdi_close(P1(gx_device *pdev));
-+#endif
-
- /* The device descriptors */
- private dev_proc_open_device(gdi_open);
-@@ -107,6 +113,14 @@
- 1, /* color bit */
- gdi_print_page);
-
-+gx_device_printer far_data gs_samsunggdi_device =
-+ prn_device(prn_gdi_procs, "samsunggdi",
-+ DEFAULT_WIDTH_10THS, DEFAULT_HEIGHT_10THS, /* paper size (unit : 10/72 inch size) */
-+ X_DPI2, Y_DPI2,
-+ 0.20, 0.25, 0.25, 0.25, /* margins filled in by gdi_open */
-+ 1, /* color bit */
-+ gdi_print_page);
-+
- private FILE *WritePJLHeaderData(gx_device_printer *pdev, FILE *fp);
- private FILE *WriteBandHeader(FILE *fp, unsigned int usBandNo,
- unsigned char ubCompMode, unsigned int usBandWidth,
-@@ -220,7 +234,7 @@
- memset(obp, 0x00, ul_band_size*13/10);
- for (j=0; j<band_height; j++) {
- memset(tmp, 0x00, raster);
-- //code = gdev_prn_copy_scan_lines(pdev, i*band_height+j,
-+ /*code = gdev_prn_copy_scan_lines(pdev, i*band_height+j, */
- if (y == num_rows) break;
- code = gdev_prn_copy_scan_lines(pdev, y++,
- (byte*)tmp, raster);
-@@ -232,15 +246,71 @@
-
- /* Write Band Data
- Because of Scanline compression, extract Scanline compression mode */
-- //ul_tiff_size = FrameTiffComp(obp, ibp, band_height, band_width_bytes, GDI_PRE_COMP);
-- //ul_scan_size = (unsigned long)bmp2run(obp, ibp, band_height, band_width_bytes, GDI_PRE_COMP);
-- //ul_min_size = (ul_scan_size > ul_tiff_size) ? ul_tiff_size : ul_scan_size;
-+ /*ul_tiff_size = FrameTiffComp(obp, ibp, band_height, band_width_bytes, GDI_PRE_COMP);*/
-+ /*ul_scan_size = (unsigned long)bmp2run(obp, ibp, band_height, band_width_bytes, GDI_PRE_COMP);*/
-+ /*ul_min_size = (ul_scan_size > ul_tiff_size) ? ul_tiff_size : ul_scan_size;*/
- ul_min_size = ul_tiff_size;
- compression_type = GDI_COMP_MODITIFF;
-- //compression_type = (ul_scan_size > ul_tiff_size) ? GDI_COMP_MODITIFF : GDI_COMP_SCANLINE;
-+ /*compression_type = (ul_scan_size > ul_tiff_size) ? GDI_COMP_MODITIFF : GDI_COMP_SCANLINE;*/
- switch (compression_type) {
- case GDI_COMP_MODITIFF:
-+#define FUDGE_BIG_BANDS
-+#ifndef FUDGE_BIG_BANDS
- ul_comp_size = FrameTiffComp(obp, ibp, band_height, band_width_bytes, GDI_REAL_COMP);
-+#else
-+ {
-+ /* Very ugly. The printer will hose if the compressed
-+ band size is over 65536, so we "fudge" the data in
-+ this case repeatedly until we get what we want.
-+
-+ The fudge algorithm is simple, this is kinda-sorta
-+ RLE, so we just round groups of bits in groups of
-+ 2, then 3, then 4, etc until the thing works. */
-+#define MAXBAND 0xffff
-+#define ASSERT(x)
-+ int fudge=0;
-+ byte *use_band=ibp;
-+ do {
-+ ul_comp_size = FrameTiffComp(obp, use_band,
-+ band_height, band_width_bytes,
-+ GDI_REAL_COMP);
-+ if (ul_comp_size > MAXBAND-8) {
-+ int f, g, h;
-+ if (!fudge) {
-+ ASSERT(use_band == ibp);
-+ use_band = (byte*)gs_malloc(ul_band_size, 1, "gdi_print_page/fudge");
-+ fudge=1;
-+ }
-+ memcpy(use_band, ibp, ul_band_size);
-+ fudge++;
-+ ASSERT(fudge>=2);
-+ {
-+#define FUDGE2(x) ( (((((x)>>6)&0x3)?3:0)<<6) \
-+ | (((((x)>>4)&0x3)?3:0)<<4) \
-+ | (((((x)>>2)&0x3)?3:0)<<2) \
-+ | (((((x)>>0)&0x3)?3:0)) )
-+#define FUDGE4(x) ( (((((x)>>4)&0xf)?0xf:0)<<4) \
-+ | (((((x)>>0)&0xf)?0xf:0)) )
-+#define FUDGE8(x) ( (((((x)>>0)&0xff)?0xf:0)) )
-+#define FUDGE(fudge, x) ( (fudge == 2 ? FUDGE2(x) \
-+ : fudge == 3 ? FUDGE4(x) \
-+ : fudge == 4 ? FUDGE8(x) \
-+ : 0 ) )
-+
-+ for(f=0;f<ul_band_size; f++) {
-+ use_band[f] = FUDGE(fudge, ibp[f]);
-+ }
-+ }
-+ }
-+ } while (ul_comp_size > MAXBAND-8);
-+ oh_well:
-+ if (fudge > 1) {
-+ ASSERT(use_band != ibp);
-+ gs_free(use_band, ul_band_size, 1, "gdi_print_page/fudge");
-+ /*fprintf(stderr, "smartgdi: band %d fudge factor is %d\n", i, fudge);*/
-+ }
-+ }
-+#endif
- break;
- case GDI_COMP_SCANLINE:
- ul_comp_size = bmp2run(obp, ibp, band_height, band_width_bytes, GDI_REAL_COMP);
-@@ -253,7 +323,7 @@
-
- prn_stream = WriteBandHeader(prn_stream, i, compression_type, (band_width_bytes * 8),
- band_height, ul_comp_size);
-- //fprintf(prn_stream, "[%d] band, size : %d\n", i, ul_tiff_size);
-+ /*fprintf(prn_stream, "[%d] band, size : %d\n", i, ul_tiff_size);*/
- fwrite(obp, ul_comp_size, 1, prn_stream);
- }
-
-@@ -271,50 +341,50 @@
- unsigned char buffer[300];
- int dots_per_inch = (int)pdev->y_pixels_per_inch;
-
-- strcpy(buffer, "\x1b%-12345X");
-+ strcpy(buffer, "\033%-12345X");
-
-- // Paper Type
-- strcat(buffer, "@PJL SET PAPERTYPE = NORMAL ON\x0d\x0a");
-- //Density
-- strcat(buffer, "@PJL SET DENSITY = 1\x0d\x0a");
-- // Toner Save
-- strcat(buffer, "@PJL SET TONERSAVE = OFF\x0d\x0a");
-- // Enter Language SMART
-- strcat(buffer, "@PJL ENTER LANGUAGE = SMART\x0d\x0a");
-- // JobStart
-- strcat(buffer, "$PJL JOB START\x0d\x0a");
-+ /* Paper Type*/
-+ strcat(buffer, "@PJL SET PAPERTYPE = NORMAL ON\015\012");
-+ /*Density*/
-+ strcat(buffer, "@PJL SET DENSITY = 1\015\012");
-+ /* Toner Save*/
-+ strcat(buffer, "@PJL SET TONERSAVE = OFF\015\012");
-+ /* Enter Language SMART*/
-+ strcat(buffer, "@PJL ENTER LANGUAGE = SMART\015\012");
-+ /* JobStart*/
-+ strcat(buffer, "$PJL JOB START\015\012");
-
-- // Resolution
-+ /* Resolution*/
- if (dots_per_inch == 600)
-- strcat(buffer, "$PJL RESOLUTION = 600\x0d\x0a");
-+ strcat(buffer, "$PJL RESOLUTION = 600\015\012");
- else
-- strcat(buffer, "$PJL RESOLUTION = 300\x0d\x0a");
-+ strcat(buffer, "$PJL RESOLUTION = 300\015\012");
-
-- // Copies
-- strcat(buffer, "$PJL COPIES = 1\x0d\x0a");
-- // Paper Size
-+ /* Copies*/
-+ strcat(buffer, "$PJL COPIES = 1\015\012");
-+ /* Paper Size*/
- switch (gdev_pcl_paper_size((gx_device*)pdev))
- {
- case PAPER_SIZE_A4:
-- strcat(buffer, "$PJL PAGE A4 AUTO\x0d\x0a");
-+ strcat(buffer, "$PJL PAGE A4 AUTO\015\012");
- break;
- case PAPER_SIZE_LETTER:
-- strcat(buffer, "$PJL PAGE LETTER AUTO\x0d\x0a");
-+ strcat(buffer, "$PJL PAGE LETTER AUTO\015\012");
- break;
- case PAPER_SIZE_LEGAL:
-- strcat(buffer, "$PJL PAGE LEGAL AUTO\x0d\x0a");
-+ strcat(buffer, "$PJL PAGE LEGAL AUTO\015\012");
- break;
- default:
-- strcat(buffer, "$PJL PAGE LETTER AUTO\x0d\x0a");
-+ strcat(buffer, "$PJL PAGE LETTER AUTO\015\012");
- break;
- }
-- // bitmap start
-- strcat(buffer, "$PJL BITMAP START\x0d\x0a");
-- // write buffer to file.
-+ /* bitmap start*/
-+ strcat(buffer, "$PJL BITMAP START\015\012");
-+ /* write buffer to file.*/
- ulSize = strlen(buffer);
- fwrite(buffer, 1, ulSize, fp );
- return(fp);
--} // WritePJLHeaderData()
-+} /* WritePJLHeaderData() */
-
-
- FILE *WriteBandHeader
-@@ -335,33 +405,33 @@
-
- ulBandSize += 8;
-
-- // bandsize
-+ /* bandsize*/
- buf[i++] = (unsigned char)((ulBandSize >> 24) & 0xff);
- buf[i++] = (unsigned char)((ulBandSize >> 16) & 0xff);
- buf[i++] = (unsigned char)((ulBandSize >> 8) & 0xff);
- buf[i++] = (unsigned char)(ulBandSize & 0xff);
-
-- // id
-+ /* id */
- buf[i++] = (unsigned char)((usBandNo >> 8) & 0xff);
- buf[i++] = (unsigned char)(usBandNo & 0xff);
-
-- // compress mode
-+ /* compress mode */
- buf[i++] = (unsigned char)(ubCompMode & 0xff);
-
-- // ubLeft
-+ /* ubLeft */
- buf[i++] = (unsigned char)(ubLeft & 0xff);
-
-- // height
-+ /* height*/
- buf[i++] = (unsigned char)((usBandHeight >> 8) & 0xff);
- buf[i++] = (unsigned char)(usBandHeight & 0xff);
-
-- // width
-+ /* width */
- buf[i++] = (unsigned char)((usBandWidth >> 8) & 0xff);
- buf[i++] = (unsigned char)(usBandWidth & 0xff);
-
- fwrite(buf, 1, i, fp);
- return(fp);
--} // end of WriteBandHeader()
-+} /* end of WriteBandHeader()*/
-
- FILE *WriteTrailerData(FILE *fp)
- {
-@@ -369,18 +439,18 @@
- unsigned long buffer[200];
-
- memset((char*)buffer, 0x00, 200);
-- strcpy((char*)buffer, "$PJL PRINT 4\x0d\x0a");
-- strcat((char*)buffer, "$PJL EOJ\x0d\x0a");
-- strcat((char*)buffer, "$PJL SYNC\x0d\x0a");
-- strcat((char*)buffer, "$PJL RELEASE 0 2047\x0d\x0a");
-- strcat((char*)buffer, "$PJL GARBAGE\x0d\x0a");
-- strcat((char*)buffer, "\x1b%-12345X\x0d\x0a");
-+ strcpy((char*)buffer, "$PJL PRINT 4\015\012");
-+ strcat((char*)buffer, "$PJL EOJ\015\012");
-+ strcat((char*)buffer, "$PJL SYNC\015\012");
-+ strcat((char*)buffer, "$PJL RELEASE 0 2047\015\012");
-+ strcat((char*)buffer, "$PJL GARBAGE\015\012");
-+ strcat((char*)buffer, "\033%-12345X\015\012");
-
- ulSize = strlen((char*)buffer);
- fwrite(buffer, 1, ulSize, fp);
-
- return(fp);
--} // WriteTrailerData()
-+} /* WriteTrailerData()*/
-
- unsigned long FrameTiffComp(unsigned char *pubDest,
- unsigned char *pubSrc,
-@@ -399,7 +469,7 @@
-
- for (i = 0; i < usTotalLines; i++)
- {
-- if (!(ubMode & 0x02)) //
-+ if (!(ubMode & 0x02))
- {
- usLineSize = FrameTiff_Comp(SrcPtr, TgtPtr, usBytesPerLine);
- }
-@@ -416,7 +486,7 @@
- ulret += usLineSize;
- }
-
-- if (!(ubMode & 0x02)) //
-+ if (!(ubMode & 0x02))
- {
- switch (ulret%4)
- {
-@@ -448,7 +518,7 @@
- }
- }
- return(ulret);
--} // FrameTiffComp()
-+} /* FrameTiffComp()*/
-
- unsigned int FrameTiff_Comp(unsigned char *lpSrcBuf, unsigned char *lpTgtBuf, unsigned int nSrcBytes)
- {
-@@ -528,13 +598,13 @@
- usEndCnt = 16384;
- }
- usEndCnt = usCount - 2;
-- // usEndCnt = usCount - 2; original
-- // 19990824 by LSM : for end file while (usEndCnt--)
-+ /* usEndCnt = usCount - 2; original*/
-+ /* 19990824 by LSM : for end file while (usEndCnt--)*/
- while (usEndCnt--)
- {
- /* read next data */
- ubFirst = ubSecond;
-- ubSecond = *pubSrc++; // read 3rd Data
-+ ubSecond = *pubSrc++; /* read 3rd Data*/
- if (ubFirst == ubSecond)
- {
- if (usEndCnt <= 1)
-@@ -544,7 +614,7 @@
- }
- else
- {
-- ubSecond = *pubSrc++; // read 4th Data
-+ ubSecond = *pubSrc++; /* read 4th Data*/
- usEndCnt--;
- if (ubFirst == ubSecond)
- {
-@@ -660,14 +730,14 @@
- {
- usEndCnt = 16384;
- }
-- // usEndCnt = usCount - 2;
-+ /* usEndCnt = usCount - 2;*/
- usEndCnt = usCount - 2;
-- // 19990824 by LSM : for Last file while (usEndCnt--)
-+ /* 19990824 by LSM : for Last file while (usEndCnt--)*/
- while (usEndCnt--)
- {
- /* read next data */
- ubFirst = ubSecond;
-- ubSecond = *pubSrc++; // read 3rd Data
-+ ubSecond = *pubSrc++; /* read 3rd Data*/
- if (ubFirst == ubSecond)
- {
- if (usEndCnt <= 1)
-@@ -677,8 +747,8 @@
- }
- else
- {
-- ubSecond = *pubSrc++; // read 4th Data
-- usEndCnt--; // 19990824 by LSM
-+ ubSecond = *pubSrc++; /* read 4th Data*/
-+ usEndCnt--; /* 19990824 by LSM*/
- if (ubFirst == ubSecond)
- {
- ubMisCnt = 3;
-@@ -691,7 +761,7 @@
- /* save data */
- usControl = (unsigned int) (pubSrc - pubOrg);
- usControl -= ubMisCnt;
-- // 19990824 by LSM : for fixing GPF on Photoshop
-+ /* 19990824 by LSM : for fixing GPF on Photoshop*/
- if (usControl > usCount)
- {
- usControl = usCount;
-@@ -728,77 +798,77 @@
- } sc_tbl;
-
- static sc_tbl gdi_ScanTbl[256] = {
--{ 8, 0, 0 }, { 7, 1, 1 }, { 6, 1, 0 }, { 6, 2, 1 }, // 0x00
-+{ 8, 0, 0 }, { 7, 1, 1 }, { 6, 1, 0 }, { 6, 2, 1 }, /* 0x00*/
- { 5, 1, 0 }, { 0, 0, 1 }, { 5, 2, 0 }, { 5, 3, 1 },
- { 4, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 4, 2, 0 }, { 0, 0, 1 }, { 4, 3, 0 }, { 4, 4, 1 },
--{ 3, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x10
-+{ 3, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x10*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 3, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 3, 3, 0 }, { 0, 0, 1 }, { 3, 4, 0 }, { 3, 5, 1 },
--{ 2, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x20
-+{ 2, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x20*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 2, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x30
-+{ 2, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x30*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 2, 3, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 2, 4, 0 }, { 0, 0, 1 }, { 2, 5, 0 }, { 2, 6, 1 },
--{ 1, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x40
-+{ 1, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x40*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x50
-+{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x50*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 1, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x60
-+{ 1, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x60*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 1, 3, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x70
-+{ 1, 3, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x70*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 1, 4, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 1, 5, 0 }, { 0, 0, 1 }, { 1, 6, 0 }, { 1, 7, 1 },
--{ 0, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x80
-+{ 0, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x80*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x90
-+{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x90*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0xa0
-+{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0xa0*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0xb0
-+{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0xb0*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0xc0
-+{ 0, 2, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0xc0*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0xd0
-+{ 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0xd0*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 3, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0xe0
-+{ 0, 3, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0xe0*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
--{ 0, 4, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0xf0
-+{ 0, 4, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0xf0*/
- { 0, 0, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 5, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 },
- { 0, 6, 0 }, { 0, 0, 1 }, { 0, 7, 0 }, { 0, 8, 1 },
- };
-
- static sc_tbl gdi_ScanTbl4[16] = {
--{ 4, 0, 0 }, { 3, 1, 1 }, { 2, 1, 0 }, { 2, 2, 1 }, // 0x00
--{ 1, 1, 0 }, { 0, 0, 1 }, { 1, 2, 0 }, { 1, 3, 1 }, // 0x04
--{ 0, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, // 0x08
--{ 0, 2, 0 }, { 0, 0, 1 }, { 0, 3, 0 }, { 0, 4, 1 } // 0x0c
-+{ 4, 0, 0 }, { 3, 1, 1 }, { 2, 1, 0 }, { 2, 2, 1 }, /* 0x00*/
-+{ 1, 1, 0 }, { 0, 0, 1 }, { 1, 2, 0 }, { 1, 3, 1 }, /* 0x04*/
-+{ 0, 1, 0 }, { 0, 0, 1 }, { 0, 0, 0 }, { 0, 0, 1 }, /* 0x08*/
-+{ 0, 2, 0 }, { 0, 0, 1 }, { 0, 3, 0 }, { 0, 4, 1 } /* 0x0c*/
- };
-
- long SaveScanData( unsigned char *, unsigned short, unsigned short, unsigned short, unsigned short, unsigned short );
-@@ -816,32 +886,32 @@
- lWarp = (long)(usWarp << 3);
- lDis = ((long)usDy * lWarp) + (long)sDx;
-
-- // 1st, 2nd, 3rd & 4th byte
-- ultmp_dat = 0xc0000000;
-+ /* 1st, 2nd, 3rd & 4th byte*/
-+ ultmp_dat = 0xc0000000ul;
- if (lDis < 0)
- {
-- ultmp_dat |= 0x20000000;
-+ ultmp_dat |= 0x20000000ul;
- }
-- ultmp_dat |= (lDis & 0x1fffffff);
-- *out_buf++ = (unsigned char)((ultmp_dat & 0xff000000) >> 24);
-- *out_buf++ = (unsigned char)((ultmp_dat & 0xff0000) >> 16);
-- *out_buf++ = (unsigned char)((ultmp_dat & 0xff00) >> 8);
-- *out_buf++ = (unsigned char)(ultmp_dat & 0xff);
-+ ultmp_dat |= (lDis & 0x1ffffffful);
-+ *out_buf++ = (unsigned char)((ultmp_dat & 0xff000000ul) >> 24);
-+ *out_buf++ = (unsigned char)((ultmp_dat & 0xff0000ul) >> 16);
-+ *out_buf++ = (unsigned char)((ultmp_dat & 0xff00ul) >> 8);
-+ *out_buf++ = (unsigned char)(ultmp_dat & 0xfful);
-
-- // 5th & 6th byte
-+ /* 5th & 6th byte*/
- ustmp_dat = 0xc000;
- ustmp_dat |= (usRl & 0x3fff);
- *out_buf++ = (unsigned char)((ustmp_dat & 0xff00) >> 8);
- *out_buf++ = (unsigned char)(ustmp_dat & 0xff);
-
- return(6);
--} // Save6Bytes()
-+} /* Save6Bytes()*/
-
- long Save4Bytes(unsigned char *out_buf, unsigned short usDy, unsigned short usRl, short sDx)
- {
- unsigned short ustmp_dat;
-
-- // 1st & 2nd byte
-+ /* 1st & 2nd byte*/
- ustmp_dat = 0x8000;
- if (sDx < 0)
- {
-@@ -851,7 +921,7 @@
- *out_buf++ = (unsigned char)((ustmp_dat & 0xff00) >> 8);
- *out_buf++ = (unsigned char)(ustmp_dat & 0xff);
-
-- // 3rd & 4th byte
-+ /* 3rd & 4th byte*/
- ustmp_dat = 0x8000;
- ustmp_dat |= ((usDy & 0x03) << 12);
- ustmp_dat |= (usRl & 0xfff);
-@@ -859,13 +929,13 @@
- *out_buf++ = (unsigned char)(ustmp_dat & 0xff);
-
- return(4);
--} // end of Save4Bytes()
-+} /* end of Save4Bytes()*/
-
- long Save2Bytes(unsigned char *out_buf, unsigned short usDy, unsigned short usRl, short sDx)
- {
- unsigned char ubtmp_dat;
-
-- // 1st byte
-+ /* 1st byte*/
- ubtmp_dat = 0x00;
- if (usDy == 1)
- {
-@@ -874,7 +944,7 @@
- ubtmp_dat |= (usRl & 0x3f);
- *out_buf++ = ubtmp_dat;
-
-- // 2nd byte
-+ /* 2nd byte*/
- if (sDx < 0)
- {
- ubtmp_dat = 0x80;
-@@ -886,7 +956,7 @@
- ubtmp_dat |= ((unsigned char)sDx & 0x7f);
- *out_buf++ = ubtmp_dat;
- return(2);
--} // end of Save2Bytes()
-+} /* end of Save2Bytes()*/
-
- long SaveScanData (unsigned char *out_buf,
- unsigned short us1Cnt,
-@@ -900,26 +970,26 @@
-
- sDisX = (int)usPosX01 - (int)usPosX10;
-
-- // 48 bit
-+ /* 48 bit*/
- if ( (usDy > 3) || (us1Cnt > 4095) )
- {
- Save6Bytes(out_buf, usDy, us1Cnt, sDisX, usWarp);
- lRet = 6;
- }
-- // 32 bit
-+ /* 32 bit*/
- else if ( (usDy > 1) || (us1Cnt > 63) || (sDisX > 127) || (sDisX < -128) )
- {
- Save4Bytes(out_buf, usDy, us1Cnt, sDisX);
- lRet = 4;
- }
-- // 16 bit
-+ /* 16 bit*/
- else
- {
- Save2Bytes(out_buf, usDy, us1Cnt, sDisX);
- lRet = 2;
- }
- return(lRet);
--} // end of SaveScanData()
-+} /* end of SaveScanData()*/
-
-
- long UpdateScanSize (unsigned char *out_buf,
-@@ -934,23 +1004,23 @@
-
- sDisX = usPosX01 - usPosX10;
-
-- // 48 bit
-+ /* 48 bit*/
- if ( (usDy > 3) || (us1Cnt > 4095) )
- {
- lRet = 6;
- }
-- // 32 bit
-+ /* 32 bit*/
- else if ( (usDy > 1) || (us1Cnt > 63) || (sDisX > 127) || (sDisX < -128) )
- {
- lRet = 4;
- }
-- // 16 bit
-+ /* 16 bit*/
- else
- {
- lRet = 2;
- }
- return(lRet);
--} // end of UpdateScanSize() by bglee 19981224
-+} /* end of UpdateScanSize() by bglee 19981224*/
-
- long GetSimpleScan(unsigned char *out_buf,
- unsigned char ubSizeMode,
-@@ -983,10 +1053,10 @@
- }
-
-
-- // 1 X 1 X
-+ /* 1 X 1 X*/
- if (ubPreBit)
- {
-- // 1 0 1 X
-+ /* 1 0 1 X*/
- if (ubDx)
- {
- lScanSize += (*UpdateScanLine[ubSizeMode])(out_buf, *us1Count, *usDy, *usPosX10, *usPosX01, usWidth);
-@@ -994,23 +1064,23 @@
- *usPosX01 = usBytePos + ubDx;
- *us1Count = ubRl;
- *usDy = 0;
-- // 1 0 1 0
-+ /* 1 0 1 0*/
- if (!ubLastBit)
- {
-- // 19990330 by bglee
-+ /* 19990330 by bglee*/
- out_buf = out_buf + lScanSize;
-
- lScanSize += (*UpdateScanLine[ubSizeMode])(out_buf, *us1Count, *usDy, *usPosX10, *usPosX01, usWidth);
- *usPosX10 = *usPosX01 ;
- *us1Count = 0;
- }
-- // 1 0 1 1
-+ /* 1 0 1 1*/
- }
-- // 1 1 1 X
-+ /* 1 1 1 X*/
- else
- {
- *us1Count += ubRl;
-- // 1 1 1 0
-+ /* 1 1 1 0*/
- if (!ubLastBit)
- {
- lScanSize += (*UpdateScanLine[ubSizeMode])(out_buf, *us1Count, *usDy, *usPosX10, *usPosX01, usWidth);
-@@ -1018,16 +1088,16 @@
- *us1Count = 0;
- *usDy = 0;
- }
-- // 1 1 1 1
-+ /* 1 1 1 1*/
- }
- }
-- // 0 X 1 X
-+ /* 0 X 1 X*/
- else
- {
-- // 0 X 1 X
-+ /* 0 X 1 X*/
- *usPosX01 = usBytePos + ubDx;
- *us1Count += ubRl;
-- // 0 X 1 0
-+ /* 0 X 1 0*/
- if (!ubLastBit)
- {
- lScanSize += (*UpdateScanLine[ubSizeMode])(out_buf, *us1Count, *usDy, *usPosX10, *usPosX01, usWidth);
-@@ -1035,11 +1105,11 @@
- *us1Count = 0;
- *usDy = 0;
- }
-- // 0 X 1 1
-+ /* 0 X 1 1*/
- }
-
- return(lScanSize);
--} // end of GetSimpleScan()
-+} /* end of GetSimpleScan() */
-
-
- long scan_map (unsigned char *in_buf,
-@@ -1049,7 +1119,7 @@
- unsigned char ubMode)
- {
- unsigned int i, j, k;
-- unsigned char ubPreBit, ubCrtByte;//, ubLastBit;
-+ unsigned char ubPreBit, ubCrtByte;/*, ubLastBit;*/
- long lScanSize, lTmp;
- long lCrtSize;
- unsigned short us1Count;
-@@ -1078,7 +1148,7 @@
- switch (ubCrtByte)
- {
- case 0x00:
-- // 1 0
-+ /* 1 0 */
- if (ubPreBit)
- {
- lTmp = (*UpdateScanLine[ubSizeMode])(out_buf, us1Count, usDy, usPosX10, usPosX01, usWidth);
-@@ -1088,16 +1158,16 @@
- us1Count = 0;
- usDy = 0;
- }
-- // 0 0
-+ /* 0 0*/
- break;
-
- case 0xff:
-- // 1 1
-+ /* 1 1*/
- if (ubPreBit)
- {
- us1Count += 8;
- }
-- // 0 1
-+ /* 0 1*/
- else
- {
- us1Count = 8;
-@@ -1106,7 +1176,7 @@
- break;
-
- default:
-- // X X 1 X
-+ /* X X 1 X*/
- if (gdi_ScanTbl[ubCrtByte].ubRl)
- {
- usBytePos = (j << 3);
-@@ -1114,7 +1184,7 @@
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
- }
-- // complex pattern
-+ /* complex pattern*/
- else
- {
- for (k = 0; k < 2; k++)
-@@ -1124,7 +1194,7 @@
- switch (ubTemp)
- {
- case 0x00:
-- // 1 0
-+ /* 1 0*/
- if (ubPreBit)
- {
- lTmp = (*UpdateScanLine[ubSizeMode])(out_buf, us1Count, usDy, usPosX10, usPosX01, usWidth);
-@@ -1134,16 +1204,16 @@
- us1Count = 0;
- usDy = 0;
- }
-- // 0 0
-+ /* 0 0*/
- break;
-
- case 0x0f:
-- // 1 1
-+ /* 1 1*/
- if (ubPreBit)
- {
- us1Count += 4;
- }
-- // 0 1
-+ /* 0 1*/
- else
- {
- us1Count = 4;
-@@ -1152,7 +1222,7 @@
- break;
-
- case 0x05:
-- // 1 0101
-+ /* 1 0101*/
- if (ubPreBit)
- {
- lTmp = (*UpdateScanLine[ubSizeMode])(out_buf, us1Count, usDy, usPosX10, usPosX01, usWidth);
-@@ -1162,13 +1232,13 @@
- usPosX10 = usBytePos - us1Count;
- usDy = 0;
- }
-- // 0 0101
-+ /* 0 0101*/
- usPosX01 = usBytePos + 1;
- lTmp = (*UpdateScanLine[ubSizeMode])(out_buf, 1, usDy, usPosX10, usPosX01, usWidth);
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
-
-- // next
-+ /* next*/
- usPosX10 = 0;
- usPosX01 = 2;
- usDy = 0;
-@@ -1176,12 +1246,12 @@
- break;
-
- case 0x09:
-- // 1 1001
-+ /* 1 1001*/
- if (ubPreBit)
- {
- us1Count++;
- }
-- // 0 1001
-+ /* 0 1001*/
- else
- {
- usPosX01 = usBytePos;
-@@ -1191,7 +1261,7 @@
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
-
-- // next
-+ /* next*/
- if (ubPreBit)
- {
- usPosX10 = usBytePos - us1Count + 1;
-@@ -1207,12 +1277,12 @@
- break;
-
- case 0x0a:
-- // 1 1010
-+ /* 1 1010*/
- if (ubPreBit)
- {
- us1Count++;
- }
-- // 0 1010
-+ /* 0 1010*/
- else
- {
- us1Count = 1;
-@@ -1222,25 +1292,25 @@
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
-
-- // next
-+ /* next*/
- usPosX10 = usBytePos - us1Count + 1;
- usPosX01 = usBytePos + 2;
- lTmp = (*UpdateScanLine[ubSizeMode])(out_buf, 1, 0, usPosX10, usPosX01, usWidth);
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
-- // next
-+ /* next*/
- usPosX10 = usBytePos + 2;
- usDy = 0;
- us1Count = 0;
- break;
-
- case 0x0b:
-- // 1 1011
-+ /* 1 1011*/
- if (ubPreBit)
- {
- us1Count++;
- }
-- // 0 1011
-+ /* 0 1011*/
- else
- {
- us1Count = 1;
-@@ -1250,7 +1320,7 @@
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
-
-- // next
-+ /* next*/
- if (ubPreBit)
- {
- usPosX10 = usBytePos - us1Count + 1;
-@@ -1267,12 +1337,12 @@
- break;
-
- case 0x0d:
-- // 1 1101
-+ /* 1 1101*/
- if (ubPreBit)
- {
- us1Count += 2;
- }
-- // 0 1101
-+ /* 0 1101*/
- else
- {
- us1Count = 2;
-@@ -1282,7 +1352,7 @@
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
-
-- // next
-+ /* next*/
- if (ubPreBit)
- {
- usPosX10 = usBytePos - us1Count + 2;
-@@ -1298,17 +1368,17 @@
- break;
-
- default:
-- // X X 1 X
-+ /* X X 1 X*/
- lTmp = GetSimpleScan(out_buf, ubSizeMode, &us1Count, &usDy, &usPosX10, &usPosX01, usBytePos, ubTemp, 4, ubPreBit, usWidth);
- out_buf = out_buf + lTmp;
- lScanSize += lTmp;
- break;
-- } // end of switch()
-+ } /* end of switch()*/
- ubPreBit = ubTemp & 0x01;
-- } // end of k-loop
-+ } /* end of k-loop*/
- }
- break;
-- } // end of switch()
-+ } /* end of switch()*/
-
- ubPreBit = ubCrtByte & 0x01;
- } /*for usWidth */
-@@ -1326,7 +1396,7 @@
- }
- usDy++;
-
-- // check size over
-+ /* check size over*/
- if ( (i % 5) == 4 )
- {
- lCrtSize = (long)((long)usWidth * (long)(i + 1));
-@@ -1342,7 +1412,7 @@
- lScanSize = -1;
- }
- return(lScanSize);
--} // end of scan_map()
-+} /* end of scan_map() */
-
- /*****************************************************************
- * H : bmp2run
-@@ -1362,7 +1432,7 @@
- unsigned char *tmp_buf1, *tmp_buf2;
- long scan_size;
-
-- //return(-1); // 19990323 by bglee - request from SM Lee
-+ /*return(-1);*/ /* 19990323 by bglee - request from SM Lee*/
-
- tmp_buf1 = in_buf;
- tmp_buf2 = out_buf;
-@@ -1372,7 +1442,7 @@
- return(-1);
- }
-
-- if ( !(ubMode & 0x02) ) // real compression //---
-+ if ( !(ubMode & 0x02) ) /* real compression */
- {
- out_buf = tmp_buf2 + scan_size;
- *out_buf++ = 0x00;
-@@ -1385,7 +1455,7 @@
- scan_size += 2;
- }
- }
-- else // pre-compression
-+ else /* pre-compression*/
- {
- scan_size += 2;
- if (scan_size % 4)
diff --git a/print/ghostscript-gpl/files/patch-src:gdevifno.c b/print/ghostscript-gpl/files/patch-src:gdevifno.c
deleted file mode 100644
index b3bc447dd27a..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevifno.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- src/gdevifno.c.orig Sun Jun 16 14:48:55 2002
-+++ src/gdevifno.c Sun Nov 10 22:49:32 2002
-@@ -99,8 +99,10 @@
- * rgb and color map entries
- */
- private gx_color_index
--inferno_rgb2cmap(gx_device *dev, gx_color_value red,
-- gx_color_value green, gx_color_value blue) {
-+inferno_rgb2cmap(gx_device *dev, const gx_color_value cv[]) {
-+ gx_color_value red = cv[0];
-+ gx_color_value green = cv[1];
-+ gx_color_value blue = cv[2];
- int shift;
- inferno_device *bdev = (inferno_device*) dev;
- int nbits = bdev->nbits;
diff --git a/print/ghostscript-gpl/files/patch-src:gdevl256.c b/print/ghostscript-gpl/files/patch-src:gdevl256.c
deleted file mode 100644
index 3102abf74716..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevl256.c
+++ /dev/null
@@ -1,17 +0,0 @@
---- src/gdevl256.c.orig Fri Feb 22 07:24:51 2002
-+++ src/gdevl256.c Tue May 20 03:08:15 2003
-@@ -147,10 +147,12 @@
- /* for compatibility with the older display modes: */
- /* these are indexed as 0.0.R0.G0.B0.R1.G1.B1. */
- gx_color_index
--lvga256_map_rgb_color(gx_device * dev, gx_color_value r, gx_color_value g,
-- gx_color_value b)
-+lvga256_map_rgb_color(gx_device * dev, const gx_color_value cv[])
- {
- #define cv_bits(v,n) (v >> (gx_color_value_bits - n))
-+ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
- ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5);
- static const byte cube_bits[32] =
- {0, 128, 128, 128, 128, 128, 128, 128, 128, 128,
diff --git a/print/ghostscript-gpl/files/patch-src:gdevlbp8.c b/print/ghostscript-gpl/files/patch-src:gdevlbp8.c
deleted file mode 100644
index 052492c58f6a..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevlbp8.c
+++ /dev/null
@@ -1,70 +0,0 @@
---- src/gdevlbp8.c.orig Wed Aug 1 09:48:23 2001
-+++ src/gdevlbp8.c Thu Mar 14 20:56:05 2002
-@@ -22,6 +22,8 @@
-
- /*
- Modifications:
-+ 3.10.00 Johnny Lam
-+ Removed LIPS III code, as it's obsoleted by gdevlips driver.
- 2.2.97 Lauri Paatero
- Changed CSI command into ESC [. DCS commands may still need to be changed
- (to ESC P).
-@@ -49,7 +51,6 @@
-
- /* The device descriptors */
- private dev_proc_print_page(lbp8_print_page);
--private dev_proc_print_page(lips3_print_page);
-
- const gx_device_printer far_data gs_lbp8_device =
- prn_device(prn_std_procs, "lbp8",
-@@ -58,14 +59,6 @@
- 0.16, 0.2, 0.32, 0.21, /* margins: left, bottom, right, top */
- 1, lbp8_print_page);
-
--const gx_device_printer far_data gs_lips3_device =
-- prn_device(prn_std_procs, "lips3",
-- 82, /* width_10ths, 8.3" */
-- 117, /* height_10ths, 11.7" */
-- X_DPI, Y_DPI,
-- 0.16, 0.27, 0.23, 0.27, /* margins */
-- 1, lips3_print_page);
--
- /* ------ Internal routines ------ */
-
- #define ESC 0x1b
-@@ -84,23 +77,6 @@
-
- static const char *lbp8_end = NULL;
-
--static const char lips3_init[] = {
-- ESC, '<', /* soft reset */
-- DCS, '0', 'J', ST, /* JOB END */
-- DCS, '3', '1', ';', '3', '0', '0', ';', '2', 'J', ST, /* 300dpi, LIPS3 JOB START */
-- ESC, '<', /* soft reset */
-- DCS, '2', 'y', 'P', 'r', 'i', 'n', 't', 'i', 'n', 'g', '(', 'g', 's', ')', ST, /* Printing (gs) display */
-- ESC, '[', '?', '1', 'l', /* auto cr-lf disable */
-- ESC, '[', '?', '2', 'h', /* auto ff disable */
-- ESC, '[', '1', '1', 'h', /* set mode */
-- ESC, '[', '7', ' ', 'I', /* select unit size (300dpi)*/
-- ESC, '[', 'f' /* move to home position */
--};
--
--static const char lips3_end[] = {
-- DCS, '0', 'J', ST /* JOB END */
--};
--
- /* Send the page to the printer. */
- private int
- can_print_page(gx_device_printer *pdev, FILE *prn_stream,
-@@ -203,11 +179,4 @@
- lbp8_print_page(gx_device_printer *pdev, FILE *prn_stream)
- { return can_print_page(pdev, prn_stream, lbp8_init, sizeof(lbp8_init),
- lbp8_end, sizeof(lbp8_end));
--}
--
--/* Print a LIPS III page. */
--private int
--lips3_print_page(gx_device_printer *pdev, FILE *prn_stream)
--{ return can_print_page(pdev, prn_stream, lips3_init, sizeof(lips3_init),
-- lips3_end, sizeof(lips3_end));
- }
diff --git a/print/ghostscript-gpl/files/patch-src:gdevlx50.c b/print/ghostscript-gpl/files/patch-src:gdevlx50.c
deleted file mode 100644
index 01ceae208cd3..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevlx50.c
+++ /dev/null
@@ -1,17 +0,0 @@
---- src/gdevlx50.c.orig Thu May 15 07:38:07 2003
-+++ src/gdevlx50.c Thu May 15 08:02:58 2003
-@@ -2603,9 +2603,12 @@
-
- /* Map CMYK to color. */
- private gx_color_index
--lx5000_map_cmyk_color(gx_device * dev, gx_color_value cyan,
-- gx_color_value magenta, gx_color_value yellow, gx_color_value black)
-+lx5000_map_cmyk_color(gx_device * dev, const gx_color_value cv[])
- {
-+ gx_color_value cyan = cv[0];
-+ gx_color_value magenta = cv[1];
-+ gx_color_value yellow = cv[2];
-+ gx_color_value black = cv[3];
- int bpc = dev->color_info.depth / 4;
- int drop = sizeof(gx_color_value) * 8 - bpc;
- gx_color_index color =
diff --git a/print/ghostscript-gpl/files/patch-src:gdevmgr.c b/print/ghostscript-gpl/files/patch-src:gdevmgr.c
deleted file mode 100644
index 8f2dc4028c34..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevmgr.c
+++ /dev/null
@@ -1,17 +0,0 @@
---- src/gdevmgr.c.orig Sun Jun 16 14:48:55 2002
-+++ src/gdevmgr.c Sun Nov 10 22:52:19 2002
-@@ -364,9 +364,11 @@
- /* (1/6, 1/2, and 5/6), instead of the obvious 8x8x4. */
-
- gx_color_index
--mgr_8bit_map_rgb_color(gx_device *dev, gx_color_value r, gx_color_value g,
-- gx_color_value b)
--{ uint rv = r / (gx_max_color_value / 7 + 1);
-+mgr_8bit_map_rgb_color(gx_device *dev, const gx_color_value cv[])
-+{ gx_color_value r = cv[0];
-+ gx_color_value g = cv[1];
-+ gx_color_value b = cv[2];
-+ uint rv = r / (gx_max_color_value / 7 + 1);
- uint gv = g / (gx_max_color_value / 7 + 1);
- uint bv = b / (gx_max_color_value / 7 + 1);
- return (gx_color_index)
diff --git a/print/ghostscript-gpl/files/patch-src:gdevvglb.c b/print/ghostscript-gpl/files/patch-src:gdevvglb.c
deleted file mode 100644
index b21032ce8779..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gdevvglb.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/gdevvglb.c.orig Fri Feb 22 07:24:52 2002
-+++ src/gdevvglb.c Tue May 20 23:57:29 2003
-@@ -152,10 +152,12 @@
- }
-
- private gx_color_index
--vgalib_map_rgb_color(gx_device * dev, gx_color_value red,
-- gx_color_value green, gx_color_value blue)
-+vgalib_map_rgb_color(gx_device * dev, const gx_color_value cv[])
- {
-- return pc_4bit_map_rgb_color(dev, red, green, blue);
-+ gx_color_value red = cv[0];
-+ gx_color_value green = cv[1];
-+ gx_color_value blue = cv[2];
-+ return pc_4bit_map_rgb_color(dev, cv);
- }
-
- private int
diff --git a/print/ghostscript-gpl/files/patch-src:genarch.c b/print/ghostscript-gpl/files/patch-src:genarch.c
deleted file mode 100644
index 3b74ac7e6145..000000000000
--- a/print/ghostscript-gpl/files/patch-src:genarch.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- src/genarch.c.orig Wed Sep 20 04:00:23 2000
-+++ src/genarch.c Wed Jun 20 04:05:36 2001
-@@ -40,6 +40,7 @@
- fprintf(f, "\n\t /* ---------------- %s ---------------- */\n\n", str);
- }
-
-+#ifndef __FreeBSD__
- private clock_t
- time_clear(char *buf, int bsize, int nreps)
- {
-@@ -50,6 +51,7 @@
- memset(buf, 0, bsize);
- return clock() - t;
- }
-+#endif /* __FreeBSD__ */
-
- private void
- define(FILE *f, const char *str)
-@@ -180,6 +182,7 @@
- fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
- #undef PRINT_MAX
-
-+#ifndef __FreeBSD__
- section(f, "Cache sizes");
-
- /*
-@@ -240,6 +243,7 @@
- }
- define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
- }
-+#endif /* __FreeBSD__ */
-
- section(f, "Miscellaneous");
-
diff --git a/print/ghostscript-gpl/files/patch-src:gxobj.h b/print/ghostscript-gpl/files/patch-src:gxobj.h
deleted file mode 100644
index 1b3bb6758042..000000000000
--- a/print/ghostscript-gpl/files/patch-src:gxobj.h
+++ /dev/null
@@ -1,18 +0,0 @@
---- src/gxobj.h.orig Thu Feb 21 14:24:53 2002
-+++ src/gxobj.h Sat Sep 27 19:17:17 2003
-@@ -103,11 +103,15 @@
- * required by the hardware, regardless of the value of obj_align_mod.
- * See gsmemraw.h for more information about this.
- */
-+#if !defined(__ia64__) && !defined(__amd64__)
- #define obj_align_mod\
- (((arch_align_memory_mod - 1) |\
- (align_bitmap_mod - 1) |\
- (obj_back_scale - 1)) + 1)
- /* The only possible values for obj_align_mod are 4, 8, or 16.... */
-+#else
-+#define obj_align_mod 16
-+#endif
- #if obj_align_mod == 4
- # define log2_obj_align_mod 2
- #else
diff --git a/print/ghostscript-gpl/files/patch-src:smartgdi-contrib.mak b/print/ghostscript-gpl/files/patch-src:smartgdi-contrib.mak
deleted file mode 100644
index 3b832daff662..000000000000
--- a/print/ghostscript-gpl/files/patch-src:smartgdi-contrib.mak
+++ /dev/null
@@ -1,16 +0,0 @@
---- src/smartgdi-contrib.mak.orig Wed Jun 19 21:43:43 2002
-+++ src/smartgdi-contrib.mak Mon Jul 21 13:59:00 2003
-@@ -3,10 +3,12 @@
- ### Note : this driver is used by Samsung SmartGDI compatible printers. ###
- ###
-
-+gdi_opts=-DGS_VERSION_MAJOR=$(GS_VERSION_MAJOR)
-+
- GDIMONO=$(GLOBJ)gdevgdi.$(OBJ) $(HPPCL)
-
- $(DD)gdi.dev: $(GDIMONO) $(DD)page.dev
- $(SETPDEV) $(DD)gdi $(GDIMONO)
-
- $(GLOBJ)gdevgdi.$(OBJ): $(GLSRC)gdevgdi.c $(PDEVH) $(gdevpcl_h)
-- $(GLCC) $(GLO_)gdevgdi.$(OBJ) $(C_) $(GLSRC)gdevgdi.c
-+ $(GLCC) $(GLO_)gdevgdi.$(OBJ) $(C_) $(gdi_opts) $(GLSRC)gdevgdi.c
diff --git a/print/ghostscript-gpl/files/patch-src:unix-dll.mak b/print/ghostscript-gpl/files/patch-src:unix-dll.mak
deleted file mode 100644
index 2ee0a5c3a0d1..000000000000
--- a/print/ghostscript-gpl/files/patch-src:unix-dll.mak
+++ /dev/null
@@ -1,59 +0,0 @@
---- src/unix-dll.mak.orig Wed Oct 17 19:11:23 2001
-+++ src/unix-dll.mak Sat Feb 9 04:53:18 2002
-@@ -48,11 +48,9 @@
-
- # shared library
- GS_SONAME=lib$(GS).so
--GS_SONAME_MAJOR=$(GS_SONAME).$(GS_VERSION_MAJOR)
--GS_SONAME_MAJOR_MINOR= $(GS_SONAME).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR)
-+GS_SONAME_MAJOR=$(GS_SONAME).$(GS_SHLIB_VER)
- GS_SO=$(BINDIR)/$(GS_SONAME)
--GS_SO_MAJOR=$(GS_SO).$(GS_VERSION_MAJOR)
--GS_SO_MAJOR_MINOR=$(GS_SO_MAJOR).$(GS_VERSION_MINOR)
-+GS_SO_MAJOR=$(GS_SO).$(GS_SHLIB_VER)
-
- # Shared object is built by redefining GS_XE in a recursive make.
-
-@@ -60,24 +58,20 @@
-
- $(GS_SO): $(GS_SO_MAJOR)
- $(RM_) $(GS_SO)
-- ln -s $(GS_SONAME_MAJOR_MINOR) $(GS_SO)
--
--$(GS_SO_MAJOR): $(GS_SO_MAJOR_MINOR)
-- $(RM_) $(GS_SO_MAJOR)
-- ln -s $(GS_SONAME_MAJOR_MINOR) $(GS_SO_MAJOR)
-+ ln -s $(GS_SONAME_MAJOR) $(GS_SO)
-
- # Build the small Ghostscript loaders, with Gtk+ and without
-
- $(GSSOX_XE): $(GS_SO) $(GLSRC)dxmain.c
-- $(GLCC) -g `gtk-config --cflags` -o $(GSSOX_XE) $(GLSRC)dxmain.c -L$(BINDIR) -l$(GS) `gtk-config --libs`
-+ $(GLCC) `$(GTK_CONFIG) --cflags` -o $(GSSOX_XE) $(GLSRC)dxmain.c -L$(BINDIR) -l$(GS) `$(GTK_CONFIG) --libs`
-
- $(GSSOC_XE): $(GS_SO) $(GLSRC)dxmainc.c
-- $(GLCC) -g -o $(GSSOC_XE) $(GLSRC)dxmainc.c -L$(BINDIR) -l$(GS)
-+ $(GLCC) -o $(GSSOC_XE) $(GLSRC)dxmainc.c -L$(BINDIR) -l$(GS)
-
- # ------------------------- Recursive make targets ------------------------- #
-
- SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -shared -Wl,-soname,$(GS_SONAME_MAJOR)'\
-- GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\
-+ GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR)\
- STDIO_IMPLEMENTATION=c\
- DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\
- BINDIR=$(BINDIR)/$(SOBINRELDIR)\
-@@ -106,11 +100,9 @@
- -mkdir $(libdir)
- $(INSTALL_PROGRAM) $(GSSOC) $(bindir)/$(GSSOC_XENAME)
- $(INSTALL_PROGRAM) $(GSSOX) $(bindir)/$(GSSOX_XENAME)
-- $(INSTALL_PROGRAM) $(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR) $(libdir)/$(GS_SONAME_MAJOR_MINOR)
-+ $(INSTALL_PROGRAM) $(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR) $(libdir)/$(GS_SONAME_MAJOR)
- $(RM_) $(libdir)/$(GS_SONAME)
-- ln -s $(GS_SONAME_MAJOR_MINOR) $(libdir)/$(GS_SONAME)
-- $(RM_) $(libdir)/$(GS_SONAME_MAJOR)
-- ln -s $(GS_SONAME_MAJOR_MINOR) $(libdir)/$(GS_SONAME_MAJOR)
-+ ln -s $(GS_SONAME_MAJOR) $(libdir)/$(GS_SONAME)
-
- soinstall: install-so install-scripts install-data
-
diff --git a/print/ghostscript-gpl/files/patch-src:unix-gcc.mak b/print/ghostscript-gpl/files/patch-src:unix-gcc.mak
deleted file mode 100644
index 0ef8d446ab00..000000000000
--- a/print/ghostscript-gpl/files/patch-src:unix-gcc.mak
+++ /dev/null
@@ -1,133 +0,0 @@
---- src/unix-gcc.mak.orig Thu Oct 24 21:57:57 2002
-+++ src/unix-gcc.mak Sun Nov 17 22:01:58 2002
-@@ -24,14 +24,15 @@
- # source, generated intermediate file, and object directories
- # for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
--BINDIR=./bin
--GLSRCDIR=./src
--GLGENDIR=./obj
--GLOBJDIR=./obj
--PSSRCDIR=./src
--PSLIBDIR=./lib
--PSGENDIR=./obj
--PSOBJDIR=./obj
-+.CURDIR?=.
-+BINDIR=${.CURDIR}/bin
-+GLSRCDIR=${.CURDIR}/src
-+GLGENDIR=${.CURDIR}/obj
-+GLOBJDIR=${.CURDIR}/obj
-+PSSRCDIR=${.CURDIR}/src
-+PSLIBDIR=${.CURDIR}/lib
-+PSGENDIR=${.CURDIR}/obj
-+PSOBJDIR=${.CURDIR}/obj
-
- # Do not edit the next group of lines.
-
-@@ -50,11 +51,10 @@
- # the directories also define the default search path for the
- # initialization files (gs_*.ps) and the fonts.
-
--INSTALL = $(GLSRCDIR)/instcopy -c
--INSTALL_PROGRAM = $(INSTALL) -m 755
--INSTALL_DATA = $(INSTALL) -m 644
-+INSTALL_PROGRAM = ${BSD_INSTALL_SCRIPT}
-+INSTALL_DATA = ${BSD_INSTALL_DATA}
-
--prefix = /usr/local
-+prefix = ${PREFIX}
- exec_prefix = $(prefix)
- bindir = $(exec_prefix)/bin
- scriptdir = $(bindir)
-@@ -143,7 +143,7 @@
- # some older JPEG streams that violate the standard. If the JPEG
- # library built from local sources, the patch will be applied.
-
--SHARE_JPEG=0
-+SHARE_JPEG=1
- JPEG_NAME=jpeg
-
- # Define the directory where the PNG library sources are stored,
-@@ -158,7 +158,7 @@
- # what its name is.
- # See gs.mak and Make.htm for more information.
-
--SHARE_LIBPNG=0
-+SHARE_LIBPNG=1
- LIBPNG_NAME=png
-
- # Define the directory where the zlib sources are stored.
-@@ -170,7 +170,7 @@
- # what its name is (usually libz, but sometimes libgz).
- # See gs.mak and Make.htm for more information.
-
--SHARE_ZLIB=0
-+SHARE_ZLIB=1
- #ZLIB_NAME=gz
- ZLIB_NAME=z
-
-@@ -197,7 +197,7 @@
-
- # Define the name of the C compiler.
-
--CC=gcc
-+CC?=cc
-
- # Define the name of the linker for the final link step.
- # Normally this is the same as the C compiler.
-@@ -214,9 +214,9 @@
- # Define the added flags for standard, debugging, profiling
- # and shared object builds.
-
--CFLAGS_STANDARD=-O2
--CFLAGS_DEBUG=-g -O0
--CFLAGS_PROFILE=-pg -O2
-+CFLAGS_STANDARD?=-O2
-+CFLAGS_DEBUG=-g
-+CFLAGS_PROFILE=-pg
- CFLAGS_SO=-fPIC
-
- # Define the other compilation flags. Add at most one of the following:
-@@ -230,7 +230,7 @@
- # We don't include -ansi, because this gets in the way of the platform-
- # specific stuff that <math.h> typically needs; nevertheless, we expect
- # gcc to accept ANSI-style function prototypes and function definitions.
--XCFLAGS=
-+XCFLAGS+=-I${LOCALBASE}/include
-
- CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
-
-@@ -241,7 +241,7 @@
- # -R /usr/local/xxx/lib:/usr/local/lib
- # giving the full path names of the shared library directories.
- # XLDFLAGS can be set from the command line.
--XLDFLAGS=
-+XLDFLAGS=-L${LOCALBASE}/lib
-
- LDFLAGS=$(XLDFLAGS)
-
-@@ -274,7 +274,7 @@
- # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
- # not in $(XINCLUDE).
-
--XINCLUDE=-I/usr/X11R6/include
-+XINCLUDE=-I${X11BASE}/include
-
- # Define the directory/ies and library names for the X11 library files.
- # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
-@@ -286,12 +286,12 @@
- # Solaris and other SVR4 systems with dynamic linking probably want
- #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
- # X11R6 (on any platform) may need
--#XLIBS=Xt SM ICE Xext X11
-+XLIBS=Xt SM ICE Xext X11
-
- #XLIBDIRS=-L/usr/local/X/lib
--XLIBDIRS=-L/usr/X11R6/lib
-+XLIBDIRS=-L${X11BASE}/lib
- XLIBDIR=
--XLIBS=Xt Xext X11
-+#XLIBS=Xt Xext X11
-
- # Define whether this platform has floating point hardware:
- # FPU_TYPE=2 means floating point is faster than fixed point.
diff --git a/print/ghostscript-gpl/files/patch-src:zmedia2.c b/print/ghostscript-gpl/files/patch-src:zmedia2.c
deleted file mode 100644
index 9033a4388085..000000000000
--- a/print/ghostscript-gpl/files/patch-src:zmedia2.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- src/zmedia2.c.orig Fri Apr 27 02:57:41 2001
-+++ src/zmedia2.c Fri Nov 2 04:08:16 2001
-@@ -429,11 +429,17 @@
-
- rx = ry, ry = temp;
- }
-- /* Adjust the medium size if flexible. */
-- if (medium->p.x < MIN_MEDIA_SIZE && mx > rx)
-- mx = rx;
-- if (medium->p.y < MIN_MEDIA_SIZE && my > ry)
-- my = ry;
-+ /* If 'medium' is flexible, adjust 'mx' and 'my' towards 'rx' and 'ry',
-+ respectively. Note that 'mx' and 'my' have just acquired the largest
-+ permissible value, medium->q. */
-+ if (medium->p.x < mx) /* non-empty width range */
-+ if (rx < medium->p.x) mx = medium->p.x; /* minimum */
-+ else if (mx > rx) mx = rx; /* fits */
-+ /* else use medium->q.x, i.e., the maximum */
-+ if (medium->p.y < my) /* non-empty height range */
-+ if (ry < medium->p.y) my = medium->p.y; /* minimum */
-+ else if (my > ry) my = ry; /* fits */
-+ /* else use medium->q.y, i.e., the maximum */
-
- /* Translate to align the centers. */
- gs_make_translation(mx / 2, my / 2, pmat);
diff --git a/print/ghostscript-gpl/files/stc740ih.upp b/print/ghostscript-gpl/files/stc740ih.upp
deleted file mode 100644
index bb9805f55fb8..000000000000
--- a/print/ghostscript-gpl/files/stc740ih.upp
+++ /dev/null
@@ -1,60 +0,0 @@
-# $ApsCVS: src/apsfilter/uniprint/stc740ih.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $
-#
--supModel="Epson Stylus Color 740, 1440x720DpI, Inkjet Paper"
--sDEVICE=uniprint
--dNOPAUSE
--dSAFER
--dupColorModel=/DeviceCMYKgenerate
--dupRendering=/FSCMYK32
--dupOutputFormat=/EscP2XY
--r1440x720
--dupMargins="{ 9.0 39.96 9.0 9.0}"
--dupBlackTransfer="{
- 0.00000000 0.00627451 0.01254902 0.02196078 0.02980392 0.03764706 0.04549020
- 0.05490196 0.06431373 0.07215686 0.08156863 0.09098039 0.10196078 0.11450980
- 0.12862745 0.14588235 0.16313725 0.18509804 0.20862745 0.25411765 0.40000000
-}"
--dupCyanTransfer="{
- 0.00000000 0.00627451 0.01254902 0.02196078 0.02980392 0.03764706 0.04549020
- 0.05490196 0.06431373 0.07215686 0.08156863 0.09098039 0.10196078 0.11450980
- 0.12862745 0.14588235 0.16313725 0.18509804 0.20862745 0.25411765 0.40000000
-}"
--dupMagentaTransfer="{
- 0.00000000 0.00627451 0.01254902 0.02196078 0.02980392 0.03764706 0.04549020
- 0.05490196 0.06431373 0.07215686 0.08156863 0.09098039 0.10196078 0.11450980
- 0.12862745 0.14588235 0.16313725 0.18509804 0.20862745 0.25411765 0.40000000
-}"
--dupYellowTransfer="{
- 0.00000000 0.00627451 0.01254902 0.02196078 0.02980392 0.03764706 0.04549020
- 0.05490196 0.06431373 0.07215686 0.08156863 0.09098039 0.10196078 0.11450980
- 0.12862745 0.14588235 0.16313725 0.18509804 0.20862745 0.25411765 0.40000000
-}"
--dupOutputComponentOrder="{ 1 2 3 0 }"
--dupWeaveXPasses=2
--dupOutputXStep=2
--dupWeaveYPasses=6
--dupOutputPins=46
--dupWeaveYFeeds="{23 23 23 23 23 23 23 23 23 23 23 23}"
--dupWeaveXStarts="{0 1 0 1 0 1 1 0 1 0 1 0}"
--dupWeaveYOffset=50
--dupWeaveInitialYFeeds="{ 5 5 5 5 5 5 5 5 5 5 5 23}"
--dupWeaveInitialXStarts="{0 1 0 1 0 1 1 0 1 0 1 0}"
--dupWeaveInitialPins="{ 13 16 19 22 25 28 31 34 37 40 43 46}"
--dupFormatYabsolute
--dupBeginPageCommand="<
- 1b40 1b40
- 1b2847 0100 01
- 1b2855 0100 05
- 1b2873 0100 02
- 1b5501
- 1b2865 0200 0001
- 1b2843 0200 0000
- 1b2863 0400 0000 0000
->"
--dupAdjustPageLengthCommand
--dupAdjustTopMarginCommand
--dupAdjustBottomMarginCommand
--dupXStepCommand="<1b285c 0400 a005 0100 0000>"
--dupEndPageCommand="(\033@\014)"
--dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
-
diff --git a/print/ghostscript-gpl/files/stc740p.upp b/print/ghostscript-gpl/files/stc740p.upp
deleted file mode 100644
index a4e7f5441793..000000000000
--- a/print/ghostscript-gpl/files/stc740p.upp
+++ /dev/null
@@ -1,36 +0,0 @@
-# $ApsCVS: src/apsfilter/uniprint/stc740p.upp,v 1.2 2000/04/21 18:48:00 andreas Exp $
-#
--supModel="Epson Stylus Color 740, 720x720DpI, Plain Paper"
--sDEVICE=uniprint
--dNOPAUSE
--dSAFER
--dupColorModel=/DeviceCMYKgenerate
--dupRendering=/FSCMYK32
--dupOutputFormat=/EscP2
--r720x720
--dupMargins="{ 9.0 39.96 9.0 9.0}"
--dupBlackTransfer="{ 0.0000 0.0453 0.1058 0.1898 0.4321 1.0000 }"
--dupCyanTransfer="{ 0.0000 0.0453 0.1058 0.1898 0.4321 1.0000 }"
--dupMagentaTransfer="{ 0.0000 0.0453 0.1058 0.1898 0.4321 1.0000 }"
--dupYellowTransfer="{ 0.0000 0.0453 0.1058 0.1898 0.4321 1.0000 }"
--dupOutputComponentOrder="{ 1 2 3 0 }"
--dupWeaveYPasses=6
--dupOutputPins=48
--dupWeaveYFeeds="{47 47 47 53 47 47}"
--dupWeaveInitialYFeeds="{1 1 1 1 1 43}"
--dupWeaveInitialPins="{ 8 48 40 31 23 15}"
--dupBeginPageCommand="<
- 1b40 1b40
- 1b2847 0100 01
- 1b2855 0100 05
- 1b5500
- 1b2865 0200 0002
- 1b2843 0200 0000
- 1b2863 0400 0000 0000
->"
--dupAdjustPageLengthCommand
--dupAdjustTopMarginCommand
--dupAdjustBottomMarginCommand
--dupEndPageCommand="(\033@\014)"
--dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
-
diff --git a/print/ghostscript-gpl/files/stc740pl.upp b/print/ghostscript-gpl/files/stc740pl.upp
deleted file mode 100644
index b2fdb0dbbc06..000000000000
--- a/print/ghostscript-gpl/files/stc740pl.upp
+++ /dev/null
@@ -1,32 +0,0 @@
-# $ApsCVS: src/apsfilter/uniprint/stc740pl.upp,v 1.2 2000/04/21 18:48:01 andreas Exp $
-#
--supModel="Epson Stylus Color 740, 360x360DpI, Plain Paper"
--sDEVICE=uniprint
--dNOPAUSE
--dSAFER
--dupColorModel=/DeviceCMYKgenerate
--dupRendering=/FSCMYK32
--dupOutputFormat=/EscP2
--r360x360
--dupMargins="{ 9.0 39.96 9.0 9.0}"
--dupOutputComponentOrder="{ 1 2 3 0 }"
--dupWeaveYPasses=3
--dupOutputPins=48
--dupWeaveYFeeds="{47 50 47}"
--dupWeaveInitialYFeeds="{1 1 46}"
--dupWeaveInitialPins="{ 16 48 32}"
--dupBeginPageCommand="<
- 1b40 1b40
- 1b2847 0100 01
- 1b2855 0100 0A
- 1b5500
- 1b2865 0200 0002
- 1b2843 0200 0000
- 1b2863 0400 0000 0000
->"
--dupAdjustPageLengthCommand
--dupAdjustTopMarginCommand
--dupAdjustBottomMarginCommand
--dupEndPageCommand="(\033@\014)"
--dupAbortCommand="(\033@\15\12\12\12\12 Printout-Aborted\15\014)"
-
diff --git a/print/ghostscript-gpl/files/stp.contrib.mak b/print/ghostscript-gpl/files/stp.contrib.mak
deleted file mode 100644
index 862d329324ee..000000000000
--- a/print/ghostscript-gpl/files/stp.contrib.mak
+++ /dev/null
@@ -1,14 +0,0 @@
-### --------------- Gimp-Print/stp Driver ---------------------------- ###
-### Be careful to add the exact contents of this file; cut and paste ###
-### may corrupt the file and cause mysterious make errors ###
-
-stp_=$(GLOBJ)gdevstp.$(OBJ)
-
-STPLIB=gimpprint
-
-$(DD)stp.dev: $(stp_) $(DD)page.dev
- $(SETPDEV) $(DD)stp $(stp_)
- $(ADDMOD) $(DD)stp -lib $(STPLIB)
-
-$(GLOBJ)gdevstp.$(OBJ) : $(GLSRC)gdevstp.c $(PDEVH)
- $(GLCC) $(GLO_)gdevstp.$(OBJ) $(C_) $(GLSRC)gdevstp.c