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

« back to all changes in this revision

Viewing changes to src/gdevepsn.c

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gdevepsn.c 8022 2007-06-05 22:23:38Z giles $*/
 
14
/* $Id: gdevepsn.c 8250 2007-09-25 13:31:24Z giles $*/
15
15
/*
16
16
 * Epson (and similar) dot-matrix printer driver for Ghostscript.
17
17
 *
92
92
#endif
93
93
 
94
94
/* The device descriptors */
95
 
private dev_proc_print_page(epson_print_page);
96
 
private dev_proc_print_page(eps9mid_print_page); 
97
 
private dev_proc_print_page(eps9high_print_page);
98
 
private dev_proc_print_page(ibmpro_print_page);
 
95
static dev_proc_print_page(epson_print_page);
 
96
static dev_proc_print_page(eps9mid_print_page); 
 
97
static dev_proc_print_page(eps9high_print_page);
 
98
static dev_proc_print_page(ibmpro_print_page);
99
99
 
100
100
/* Standard Epson device */
101
101
const gx_device_printer far_data gs_epson_device =
133
133
/* ------ Driver procedures ------ */
134
134
 
135
135
/* Forward references */
136
 
private void eps_output_run(byte *, int, int, char, FILE *, int);
 
136
static void eps_output_run(byte *, int, int, char, FILE *, int);
137
137
 
138
138
/* Send the page to the printer. */
139
139
#define DD 0x40                         /* double density flag */
140
 
private int
 
140
static int
141
141
eps_print_page(gx_device_printer *pdev, FILE *prn_stream, int y_9pin_high,
142
142
  const char *init_string, int init_length, const char *end_string,
143
143
  int archaic, int tab_hiccup)
397
397
 
398
398
/* Output a single graphics command. */
399
399
/* pass=0 for all columns, 1 for even columns, 2 for odd columns. */
400
 
private void
 
400
static void
401
401
eps_output_run(byte *data, int count, int y_mult,
402
402
  char start_graphics, FILE *prn_stream, int pass)
403
403
{       
445
445
#endif
446
446
 
447
447
#define ESC 0x1b
448
 
private const char eps_init_string[] = {
 
448
static const char eps_init_string[] = {
449
449
#if ARCHAIC
450
450
        ESC, '@', 022 /*^R*/, ESC, 'Q'
451
451
#else
453
453
#endif
454
454
};
455
455
 
456
 
private int
 
456
static int
457
457
epson_print_page(gx_device_printer *pdev, FILE *prn_stream)
458
458
{
459
459
        return eps_print_page(pdev, prn_stream, 0, eps_init_string,
461
461
                              ARCHAIC, TAB_HICCUP);
462
462
}
463
463
 
464
 
private int
 
464
static int
465
465
eps9high_print_page(gx_device_printer *pdev, FILE *prn_stream)
466
466
{
467
467
        return eps_print_page(pdev, prn_stream, 1, eps_init_string,
469
469
                              ARCHAIC, TAB_HICCUP);
470
470
}
471
471
 
472
 
private int
 
472
static int
473
473
eps9mid_print_page(gx_device_printer *pdev, FILE *prn_stream)
474
474
{
475
475
        return eps_print_page(pdev, prn_stream, 2, eps_init_string,
477
477
                              ARCHAIC, TAB_HICCUP);
478
478
}
479
479
 
480
 
private int
 
480
static int
481
481
ibmpro_print_page(gx_device_printer *pdev, FILE *prn_stream)
482
482
{
483
483
    /*