Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 909351
Collapse All | Expand All

(-)a/fax/filters/cdmfax/jetlib.cpp (-4 / +4 lines)
Lines 7568-7575 HP_StdFuncPrefix HP_M2TIFF_CalcCompression( Link Here
7568
    HP_pCharHuge lpfirst;
7568
    HP_pCharHuge lpfirst;
7569
    HP_pCharHuge lpchar;
7569
    HP_pCharHuge lpchar;
7570
    HP_BOOL in_run, FourByteWordPad;
7570
    HP_BOOL in_run, FourByteWordPad;
7571
    register HP_UByte count;
7571
    HP_UByte count;
7572
    register HP_SInt16 state;
7572
    HP_SInt16 state;
7573
    HP_UByte padCount;
7573
    HP_UByte padCount;
7574
    HP_pUByte  lpEnd;
7574
    HP_pUByte  lpEnd;
7575
7575
Lines 7704-7711 HP_StdFuncPrefix HP_M2TIFF_Compress( Link Here
7704
    HP_pCharHuge lpfirst;
7704
    HP_pCharHuge lpfirst;
7705
    HP_pCharHuge lpchar;
7705
    HP_pCharHuge lpchar;
7706
    HP_BOOL in_run,FourByteWordPad;
7706
    HP_BOOL in_run,FourByteWordPad;
7707
    register HP_UByte count;
7707
    HP_UByte count;
7708
    register HP_SInt16 state;
7708
    HP_SInt16 state;
7709
    HP_pCharHuge   lpEnd;
7709
    HP_pCharHuge   lpEnd;
7710
    HP_UByte padCount;
7710
    HP_UByte padCount;
7711
    
7711
    
(-)a/io/hpmud/model.c (-2 / +2 lines)
Lines 531-537 enum HPMUD_RESULT hpmud_get_model_attributes(char *uri, char *attr, int attrSize Link Here
531
   {
531
   {
532
      BUG("no %s attributes found in %s\n", model, sz);  
532
      BUG("no %s attributes found in %s\n", model, sz);  
533
533
534
      DelList();   /* Unregister all labels. */
534
      DelList();   /* Unall labels. */
535
535
536
      /* Search /data/models/unreleased/unreleased.dat file for specified model. */
536
      /* Search /data/models/unreleased/unreleased.dat file for specified model. */
537
      snprintf(sz, sizeof(sz), "%s/data/models/unreleased/unreleased.dat", homedir);
537
      snprintf(sz, sizeof(sz), "%s/data/models/unreleased/unreleased.dat", homedir);
Lines 547-553 enum HPMUD_RESULT hpmud_get_model_attributes(char *uri, char *attr, int attrSize Link Here
547
   stat = HPMUD_R_OK;
547
   stat = HPMUD_R_OK;
548
548
549
bugout:   
549
bugout:   
550
   DelList();  /* Unregister all labels. */
550
   DelList();  /* Unall labels. */
551
   return stat;
551
   return stat;
552
}
552
}
553
553
(-)a/io/hpmud/musb.c (-3 / +3 lines)
Lines 235-241 static int bridge_chip_up(file_descriptor *pfd) Link Here
235
235
236
    memset(buf, 0, sizeof(buf));
236
    memset(buf, 0, sizeof(buf));
237
237
238
    /* Read register values. */
238
    /* Read values. */
239
    len = libusb_control_transfer(hd,
239
    len = libusb_control_transfer(hd,
240
            LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, /* bmRequestType */
240
            LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, /* bmRequestType */
241
            LIBUSB_REQUEST_SET_FEATURE,        /* bRequest */
241
            LIBUSB_REQUEST_SET_FEATURE,        /* bRequest */
Lines 251-257 static int bridge_chip_up(file_descriptor *pfd) Link Here
251
    /* Check for auto ECP mode. */
251
    /* Check for auto ECP mode. */
252
    if (buf[ECRR] != 0x43)
252
    if (buf[ECRR] != 0x43)
253
    {
253
    {
254
        /* Place 725 chip in register mode. */
254
        /* Place 725 chip in mode. */
255
        len = libusb_control_transfer(hd,
255
        len = libusb_control_transfer(hd,
256
                LIBUSB_ENDPOINT_OUT | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, /* bmRequestType */
256
                LIBUSB_ENDPOINT_OUT | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, /* bmRequestType */
257
                0x04,        /* bRequest */
257
                0x04,        /* bRequest */
Lines 279-285 static int bridge_chip_up(file_descriptor *pfd) Link Here
279
                0x0817,        /* wValue */
279
                0x0817,        /* wValue */
280
                0, /* wIndex */
280
                0, /* wIndex */
281
                NULL, 0, LIBUSB_CONTROL_REQ_TIMEOUT);
281
                NULL, 0, LIBUSB_CONTROL_REQ_TIMEOUT);
282
        /* Read register values. */
282
        /* Read values. */
283
        len = libusb_control_transfer(hd,
283
        len = libusb_control_transfer(hd,
284
                LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, /* bmRequestType */
284
                LIBUSB_ENDPOINT_IN | LIBUSB_REQUEST_TYPE_VENDOR | LIBUSB_RECIPIENT_DEVICE, /* bmRequestType */
285
                LIBUSB_REQUEST_SET_FEATURE,        /* bRequest */
285
                LIBUSB_REQUEST_SET_FEATURE,        /* bRequest */
(-)a/io/hpmud/musb_libusb01.c (-3 / +3 lines)
Lines 273-279 static int bridge_chip_up(file_descriptor *pfd) Link Here
273
273
274
    memset(buf, 0, sizeof(buf));
274
    memset(buf, 0, sizeof(buf));
275
275
276
    /* Read register values. */
276
    /* Read values. */
277
    len = usb_control_msg(hd,
277
    len = usb_control_msg(hd,
278
            USB_ENDPOINT_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, /* bmRequestType */
278
            USB_ENDPOINT_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, /* bmRequestType */
279
            USB_REQ_SET_FEATURE,        /* bRequest */
279
            USB_REQ_SET_FEATURE,        /* bRequest */
Lines 289-295 static int bridge_chip_up(file_descriptor *pfd) Link Here
289
    /* Check for auto ECP mode. */
289
    /* Check for auto ECP mode. */
290
    if (buf[ECRR] != 0x43)
290
    if (buf[ECRR] != 0x43)
291
    {
291
    {
292
        /* Place 725 chip in register mode. */
292
        /* Place 725 chip in mode. */
293
        len = usb_control_msg(hd,
293
        len = usb_control_msg(hd,
294
                USB_ENDPOINT_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, /* bmRequestType */
294
                USB_ENDPOINT_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, /* bmRequestType */
295
                0x04,        /* bRequest */
295
                0x04,        /* bRequest */
Lines 317-323 static int bridge_chip_up(file_descriptor *pfd) Link Here
317
                0x0817,        /* wValue */
317
                0x0817,        /* wValue */
318
                0, /* wIndex */
318
                0, /* wIndex */
319
                NULL, 0, LIBUSB_CONTROL_REQ_TIMEOUT);
319
                NULL, 0, LIBUSB_CONTROL_REQ_TIMEOUT);
320
        /* Read register values. */
320
        /* Read values. */
321
        len = usb_control_msg(hd,
321
        len = usb_control_msg(hd,
322
                USB_ENDPOINT_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, /* bmRequestType */
322
                USB_ENDPOINT_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, /* bmRequestType */
323
                USB_REQ_SET_FEATURE,        /* bRequest */
323
                USB_REQ_SET_FEATURE,        /* bRequest */
(-)a/ip/xjpg_dct.c (-2 / +2 lines)
Lines 103-109 Link Here
103
 |         for the Winograd DCT.                                              |
103
 |         for the Winograd DCT.                                              |
104
 |____________________________________________________________________________|
104
 |____________________________________________________________________________|
105
*/
105
*/
106
void dct_forward (register int *block_p)
106
void dct_forward (int *block_p)
107
{
107
{
108
    #define CONST_FRAC_BITS 14   /* bits of frac in CONST_1-CONST_5 below */
108
    #define CONST_FRAC_BITS 14   /* bits of frac in CONST_1-CONST_5 below */
109
109
Lines 257-263 void dct_forward (register int *block_p) Link Here
257
 |         and level-shifting, you must clamp these values to 0..255.         |
257
 |         and level-shifting, you must clamp these values to 0..255.         |
258
 |____________________________________________________________________________|
258
 |____________________________________________________________________________|
259
*/
259
*/
260
void dct_inverse (register int *block_p)
260
void dct_inverse (int *block_p)
261
{
261
{
262
    #define CONST_FRAC_BITS 13  /* bits of frac in CONST_1-CONST_5 below */
262
    #define CONST_FRAC_BITS 13  /* bits of frac in CONST_1-CONST_5 below */
263
263
(-)a/ip/xjpg_dct.h (-2 / +2 lines)
Lines 43-50 Link Here
43
 |____________________________________________________________________________|
43
 |____________________________________________________________________________|
44
*/
44
*/
45
45
46
void dct_forward (register int *block_p);
46
void dct_forward (int *block_p);
47
47
48
void dct_inverse (register int *block_p);
48
void dct_inverse (int *block_p);
49
49
50
/* End of File */
50
/* End of File */
(-)a/prnt/backend/hp.c (-1 / +1 lines)
Lines 427-433 static int get_printer_status(HPMUD_DEVICE dd, HPMUD_CHANNEL cd, struct pjl_attr Link Here
427
      /* Check for valid S-field in device id string. */
427
      /* Check for valid S-field in device id string. */
428
      if ((pSf = strstr(id, ";S:")) == NULL)
428
      if ((pSf = strstr(id, ";S:")) == NULL)
429
      {
429
      {
430
         /* No S-field, use status register instead of device id. */ 
430
         /* No S-field, use status instead of device id. */ 
431
         unsigned int bit_status;
431
         unsigned int bit_status;
432
         r = hpmud_get_device_status(dd, &bit_status);      
432
         r = hpmud_get_device_status(dd, &bit_status);      
433
//         if (!(r == HPMUD_R_OK || r == HPMUD_R_DEVICE_BUSY))
433
//         if (!(r == HPMUD_R_OK || r == HPMUD_R_DEVICE_BUSY))
(-)a/prnt/hpcups/Mode9.cpp (-1 / +1 lines)
Lines 203-209 bool Mode9::Process(RASTERDATA* input) Link Here
203
    unsigned int    offset,byte_count,rem_count;
203
    unsigned int    offset,byte_count,rem_count;
204
    Mode9_comtype       command;
204
    Mode9_comtype       command;
205
    char* dest=    (char*) compressBuf;
205
    char* dest=    (char*) compressBuf;
206
    register char *dptr=dest;
206
    char *dptr=dest;
207
207
208
    while ( size > 0 )
208
    while ( size > 0 )
209
    {
209
    {
(-)a/prnt/hpcups/ModeDeltaPlus.cpp (-2 / +2 lines)
Lines 241-248 bool ModeDeltaPlus::compress (BYTE *outmem, Link Here
241
                              const     uint32_t    inheight,
241
                              const     uint32_t    inheight,
242
                              uint32_t  horz_ht_dist)
242
                              uint32_t  horz_ht_dist)
243
{
243
{
244
    register    BYTE     *outptr = outmem;
244
       BYTE     *outptr = outmem;
245
    register    uint32_t    col;
245
       uint32_t    col;
246
    const       BYTE     *seedrow;
246
    const       BYTE     *seedrow;
247
    uint32_t                seedrow_count = 0;
247
    uint32_t                seedrow_count = 0;
248
    uint32_t                location = 0;
248
    uint32_t                location = 0;
(-)a/prnt/hpcups/jccolor.c (-23 / +23 lines)
Lines 73-79 typedef my_color_converter * my_cconvert_ptr; Link Here
73
73
74
/* We allocate one big table and divide it up into eight parts, instead of
74
/* We allocate one big table and divide it up into eight parts, instead of
75
 * doing eight alloc_small requests.  This lets us use a single table base
75
 * doing eight alloc_small requests.  This lets us use a single table base
76
 * address, which can be held in a register in the inner loops on many
76
 * address, which can be held in a in the inner loops on many
77
 * machines (more than can hold all eight addresses, anyway).
77
 * machines (more than can hold all eight addresses, anyway).
78
 */
78
 */
79
79
Lines 205-215 rgb_ycc_convert (j_compress_ptr cinfo, Link Here
205
		 JDIMENSION output_row, int num_rows)
205
		 JDIMENSION output_row, int num_rows)
206
{
206
{
207
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
207
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
208
  register int r, g, b;
208
  int r, g, b;
209
  register INT32 * ctab = cconvert->rgb_ycc_tab;
209
  INT32 * ctab = cconvert->rgb_ycc_tab;
210
  register JSAMPROW inptr;
210
  JSAMPROW inptr;
211
  register JSAMPROW outptr0, outptr1, outptr2;
211
  JSAMPROW outptr0, outptr1, outptr2;
212
  register JDIMENSION col;
212
  JDIMENSION col;
213
  JDIMENSION num_cols = cinfo->image_width;
213
  JDIMENSION num_cols = cinfo->image_width;
214
214
215
  while (--num_rows >= 0) {
215
  while (--num_rows >= 0) {
Lines 261-271 rgb_gray_convert (j_compress_ptr cinfo, Link Here
261
		  JDIMENSION output_row, int num_rows)
261
		  JDIMENSION output_row, int num_rows)
262
{
262
{
263
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
263
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
264
  register int r, g, b;
264
  int r, g, b;
265
  register INT32 * ctab = cconvert->rgb_ycc_tab;
265
  INT32 * ctab = cconvert->rgb_ycc_tab;
266
  register JSAMPROW inptr;
266
  JSAMPROW inptr;
267
  register JSAMPROW outptr;
267
  JSAMPROW outptr;
268
  register JDIMENSION col;
268
  JDIMENSION col;
269
  JDIMENSION num_cols = cinfo->image_width;
269
  JDIMENSION num_cols = cinfo->image_width;
270
270
271
  while (--num_rows >= 0) {
271
  while (--num_rows >= 0) {
Lines 300-310 cmyk_ycck_convert (j_compress_ptr cinfo, Link Here
300
		   JDIMENSION output_row, int num_rows)
300
		   JDIMENSION output_row, int num_rows)
301
{
301
{
302
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
302
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
303
  register int r, g, b;
303
  int r, g, b;
304
  register INT32 * ctab = cconvert->rgb_ycc_tab;
304
  INT32 * ctab = cconvert->rgb_ycc_tab;
305
  register JSAMPROW inptr;
305
  JSAMPROW inptr;
306
  register JSAMPROW outptr0, outptr1, outptr2, outptr3;
306
  JSAMPROW outptr0, outptr1, outptr2, outptr3;
307
  register JDIMENSION col;
307
  JDIMENSION col;
308
  JDIMENSION num_cols = cinfo->image_width;
308
  JDIMENSION num_cols = cinfo->image_width;
309
309
310
  while (--num_rows >= 0) {
310
  while (--num_rows >= 0) {
Lines 354-362 grayscale_convert (j_compress_ptr cinfo, Link Here
354
		   JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
354
		   JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
355
		   JDIMENSION output_row, int num_rows)
355
		   JDIMENSION output_row, int num_rows)
356
{
356
{
357
  register JSAMPROW inptr;
357
  JSAMPROW inptr;
358
  register JSAMPROW outptr;
358
  JSAMPROW outptr;
359
  register JDIMENSION col;
359
  JDIMENSION col;
360
  JDIMENSION num_cols = cinfo->image_width;
360
  JDIMENSION num_cols = cinfo->image_width;
361
  int instride = cinfo->input_components;
361
  int instride = cinfo->input_components;
362
362
Lines 383-392 null_convert (j_compress_ptr cinfo, Link Here
383
	      JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
383
	      JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
384
	      JDIMENSION output_row, int num_rows)
384
	      JDIMENSION output_row, int num_rows)
385
{
385
{
386
  register JSAMPROW inptr;
386
  JSAMPROW inptr;
387
  register JSAMPROW outptr;
387
  JSAMPROW outptr;
388
  register JDIMENSION col;
388
  JDIMENSION col;
389
  register int ci;
389
  int ci;
390
  int nc = cinfo->num_components;
390
  int nc = cinfo->num_components;
391
  JDIMENSION num_cols = cinfo->image_width;
391
  JDIMENSION num_cols = cinfo->image_width;
392
392
(-)a/prnt/hpijs/compression.cpp (-1 / +1 lines)
Lines 266-272 BOOL Mode9::Process(RASTERDATA* input) Link Here
266
    unsigned int    offset,byte_count,rem_count;
266
    unsigned int    offset,byte_count,rem_count;
267
    Mode9_comtype       command;
267
    Mode9_comtype       command;
268
    char* dest=    (char*) compressBuf;
268
    char* dest=    (char*) compressBuf;
269
    register char *dptr=dest;
269
    char *dptr=dest;
270
270
271
    while ( size > 0 )
271
    while ( size > 0 )
272
    {
272
    {
(-)a/prnt/hpijs/dj850.cpp (-1 / +1 lines)
Lines 301-307 BOOL DJ850::UseGUIMode(PrintMode* pPrintMode) Link Here
301
 *  Called by: Send()
301
 *  Called by: Send()
302
 *
302
 *
303
 *  Parameters on entry: status_reg is the contents of the centronics
303
 *  Parameters on entry: status_reg is the contents of the centronics
304
 *                      status register (at the time the error was
304
 *                      status (at the time the error was
305
 *                      detected)
305
 *                      detected)
306
 *
306
 *
307
 *  Parameters on exit: unchanged
307
 *  Parameters on exit: unchanged
(-)a/prnt/hpijs/dj8xx.cpp (-1 / +1 lines)
Lines 443-449 DRIVER_ERROR DJ8xx::CleanPen() Link Here
443
 *  Called by: Send()
443
 *  Called by: Send()
444
 *
444
 *
445
 *  Parameters on entry: status_reg is the contents of the centronics
445
 *  Parameters on entry: status_reg is the contents of the centronics
446
 *                      status register (at the time the error was
446
 *                      status (at the time the error was
447
 *                      detected)
447
 *                      detected)
448
 *
448
 *
449
 *  Parameters on exit: unchanged
449
 *  Parameters on exit: unchanged
(-)a/prnt/hpijs/foomatic-rip-hplip (-3 / +3 lines)
Lines 181-187 my $EXIT_INCAPABLE = 50; # printer wants (lacks) features Link Here
181
181
182
my $ESPIPE = 29;	# the errno value when seeking a pipe or socket
182
my $ESPIPE = 29;	# the errno value when seeking a pipe or socket
183
183
184
# The modern_shell() function will register the PIDs of all shell calls,
184
# The modern_shell() function will the PIDs of all shell calls,
185
# so that rip_die() can kill these processes 
185
# so that rip_die() can kill these processes 
186
my %pids;
186
my %pids;
187
187
Lines 6725-6732 sub modern_system { Link Here
6725
	exec($modern_shell, "-c", @list);
6725
	exec($modern_shell, "-c", @list);
6726
	rip_die("exec($modern_shell, \"-c\", @list);",
6726
	rip_die("exec($modern_shell, \"-c\", @list);",
6727
		$EXIT_PRNERR_NORETRY_BAD_SETTINGS);
6727
		$EXIT_PRNERR_NORETRY_BAD_SETTINGS);
6728
    } else { # parent, register child's PID, wait for the child, and
6728
    } else { # parent, child's PID, wait for the child, and
6729
	     # unregister the PID
6729
	     # unthe PID
6730
	$pids{$pid} = substr(join(" ", @list), 0, 100) .
6730
	$pids{$pid} = substr(join(" ", @list), 0, 100) .
6731
	    (length(join(" ", @list)) > 100 ? "..." : "");
6731
	    (length(join(" ", @list)) > 100 ? "..." : "");
6732
	print $logh "Starting process $pid: \"$pids{$pid}\"\n";
6732
	print $logh "Starting process $pid: \"$pids{$pid}\"\n";
(-)a/prnt/hpijs/gdevijs-krgb-1.5-gs8.61.patch (-3 / +3 lines)
Lines 132-138 diff -uNr old/gdevijs.c new/gdevijs.c Link Here
132
+   if (ijsdev->krgb_mode && ijsdev->k_path && y >= 0 && x >= 0) 
132
+   if (ijsdev->krgb_mode && ijsdev->k_path && y >= 0 && x >= 0) 
133
+   {
133
+   {
134
+      int raster = (ijsdev->k_width+7) >> 3;
134
+      int raster = (ijsdev->k_width+7) >> 3;
135
+      register unsigned char *dest;
135
+      unsigned char *dest;
136
+      int dest_start_bit;
136
+      int dest_start_bit;
137
+      int band_height = ijsdev->k_band_size/raster;
137
+      int band_height = ijsdev->k_band_size/raster;
138
+      int i,j;
138
+      int i,j;
Lines 200-207 diff -uNr old/gdevijs.c new/gdevijs.c Link Here
200
+   {
200
+   {
201
+      /* Store in k plane band instead of regular band. */
201
+      /* Store in k plane band instead of regular band. */
202
+      int raster = (ijsdev->k_width+7) >> 3;       /* raster width in bytes, byte aligned */
202
+      int raster = (ijsdev->k_width+7) >> 3;       /* raster width in bytes, byte aligned */
203
+      register unsigned char *dest;
203
+      unsigned char *dest;
204
+      register const unsigned char *scan;
204
+      const unsigned char *scan;
205
+      int dest_start_bit;
205
+      int dest_start_bit;
206
+      int scan_start_bit;
206
+      int scan_start_bit;
207
+      int band_height = ijsdev->k_band_size/raster;
207
+      int band_height = ijsdev->k_band_size/raster;
(-)a/prnt/hpijs/jccolor.c (-23 / +23 lines)
Lines 74-80 typedef my_color_converter * my_cconvert_ptr; Link Here
74
74
75
/* We allocate one big table and divide it up into eight parts, instead of
75
/* We allocate one big table and divide it up into eight parts, instead of
76
 * doing eight alloc_small requests.  This lets us use a single table base
76
 * doing eight alloc_small requests.  This lets us use a single table base
77
 * address, which can be held in a register in the inner loops on many
77
 * address, which can be held in a in the inner loops on many
78
 * machines (more than can hold all eight addresses, anyway).
78
 * machines (more than can hold all eight addresses, anyway).
79
 */
79
 */
80
80
Lines 206-216 rgb_ycc_convert (j_compress_ptr cinfo, Link Here
206
		 JDIMENSION output_row, int num_rows)
206
		 JDIMENSION output_row, int num_rows)
207
{
207
{
208
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
208
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
209
  register int r, g, b;
209
  int r, g, b;
210
  register INT32 * ctab = cconvert->rgb_ycc_tab;
210
  INT32 * ctab = cconvert->rgb_ycc_tab;
211
  register JSAMPROW inptr;
211
  JSAMPROW inptr;
212
  register JSAMPROW outptr0, outptr1, outptr2;
212
  JSAMPROW outptr0, outptr1, outptr2;
213
  register JDIMENSION col;
213
  JDIMENSION col;
214
  JDIMENSION num_cols = cinfo->image_width;
214
  JDIMENSION num_cols = cinfo->image_width;
215
215
216
  while (--num_rows >= 0) {
216
  while (--num_rows >= 0) {
Lines 262-272 rgb_gray_convert (j_compress_ptr cinfo, Link Here
262
		  JDIMENSION output_row, int num_rows)
262
		  JDIMENSION output_row, int num_rows)
263
{
263
{
264
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
264
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
265
  register int r, g, b;
265
  int r, g, b;
266
  register INT32 * ctab = cconvert->rgb_ycc_tab;
266
  INT32 * ctab = cconvert->rgb_ycc_tab;
267
  register JSAMPROW inptr;
267
  JSAMPROW inptr;
268
  register JSAMPROW outptr;
268
  JSAMPROW outptr;
269
  register JDIMENSION col;
269
  JDIMENSION col;
270
  JDIMENSION num_cols = cinfo->image_width;
270
  JDIMENSION num_cols = cinfo->image_width;
271
271
272
  while (--num_rows >= 0) {
272
  while (--num_rows >= 0) {
Lines 301-311 cmyk_ycck_convert (j_compress_ptr cinfo, Link Here
301
		   JDIMENSION output_row, int num_rows)
301
		   JDIMENSION output_row, int num_rows)
302
{
302
{
303
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
303
  my_cconvert_ptr cconvert = (my_cconvert_ptr) cinfo->cconvert;
304
  register int r, g, b;
304
  int r, g, b;
305
  register INT32 * ctab = cconvert->rgb_ycc_tab;
305
  INT32 * ctab = cconvert->rgb_ycc_tab;
306
  register JSAMPROW inptr;
306
  JSAMPROW inptr;
307
  register JSAMPROW outptr0, outptr1, outptr2, outptr3;
307
  JSAMPROW outptr0, outptr1, outptr2, outptr3;
308
  register JDIMENSION col;
308
  JDIMENSION col;
309
  JDIMENSION num_cols = cinfo->image_width;
309
  JDIMENSION num_cols = cinfo->image_width;
310
310
311
  while (--num_rows >= 0) {
311
  while (--num_rows >= 0) {
Lines 355-363 grayscale_convert (j_compress_ptr cinfo, Link Here
355
		   JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
355
		   JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
356
		   JDIMENSION output_row, int num_rows)
356
		   JDIMENSION output_row, int num_rows)
357
{
357
{
358
  register JSAMPROW inptr;
358
  JSAMPROW inptr;
359
  register JSAMPROW outptr;
359
  JSAMPROW outptr;
360
  register JDIMENSION col;
360
  JDIMENSION col;
361
  JDIMENSION num_cols = cinfo->image_width;
361
  JDIMENSION num_cols = cinfo->image_width;
362
  int instride = cinfo->input_components;
362
  int instride = cinfo->input_components;
363
363
Lines 384-393 null_convert (j_compress_ptr cinfo, Link Here
384
	      JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
384
	      JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
385
	      JDIMENSION output_row, int num_rows)
385
	      JDIMENSION output_row, int num_rows)
386
{
386
{
387
  register JSAMPROW inptr;
387
  JSAMPROW inptr;
388
  register JSAMPROW outptr;
388
  JSAMPROW outptr;
389
  register JDIMENSION col;
389
  JDIMENSION col;
390
  register int ci;
390
  int ci;
391
  int nc = cinfo->num_components;
391
  int nc = cinfo->num_components;
392
  JDIMENSION num_cols = cinfo->image_width;
392
  JDIMENSION num_cols = cinfo->image_width;
393
393
(-)a/prnt/hpijs/ljcolor.cpp (-1 / +1 lines)
Lines 546-552 Compressor* LJColor::CreateCompressor (unsigned int RasterSize) Link Here
546
 *  Called by: Send()
546
 *  Called by: Send()
547
 *
547
 *
548
 *  Parameters on entry: status_reg is the contents of the centronics
548
 *  Parameters on entry: status_reg is the contents of the centronics
549
 *                      status register (at the time the error was
549
 *                      status (at the time the error was
550
 *                      detected)
550
 *                      detected)
551
 *
551
 *
552
 *  Parameters on exit: unchanged
552
 *  Parameters on exit: unchanged
(-)a/prnt/hpijs/ljfastraster.cpp (-3 / +3 lines)
Lines 568-574 Compressor* LJFastRaster::CreateCompressor (unsigned int RasterSize) Link Here
568
 *  Called by: Send()
568
 *  Called by: Send()
569
 *
569
 *
570
 *  Parameters on entry: status_reg is the contents of the centronics
570
 *  Parameters on entry: status_reg is the contents of the centronics
571
 *                      status register (at the time the error was
571
 *                      status (at the time the error was
572
 *                      detected)
572
 *                      detected)
573
 *
573
 *
574
 *  Parameters on exit: unchanged
574
 *  Parameters on exit: unchanged
Lines 919-926 BOOL ModeDeltaPlus::Compress (HPUInt8 *outmem, Link Here
919
                              const     uint32_t    inheight,
919
                              const     uint32_t    inheight,
920
                              uint32_t  horz_ht_dist)
920
                              uint32_t  horz_ht_dist)
921
{
921
{
922
	register    HPUInt8     *outptr = outmem;
922
	   HPUInt8     *outptr = outmem;
923
	register    uint32_t    col;
923
	   uint32_t    col;
924
    const       HPUInt8     *seedrow;
924
    const       HPUInt8     *seedrow;
925
    uint32_t                seedrow_count = 0;
925
    uint32_t                seedrow_count = 0;
926
    uint32_t                location = 0;
926
    uint32_t                location = 0;
(-)a/prnt/hpijs/ljjetready.cpp (-1 / +1 lines)
Lines 821-827 Compressor* LJJetReady::CreateCompressor (unsigned int RasterSize) Link Here
821
 *  Called by: Send()
821
 *  Called by: Send()
822
 *
822
 *
823
 *  Parameters on entry: status_reg is the contents of the centronics
823
 *  Parameters on entry: status_reg is the contents of the centronics
824
 *                      status register (at the time the error was
824
 *                      status (at the time the error was
825
 *                      detected)
825
 *                      detected)
826
 *
826
 *
827
 *  Parameters on exit: unchanged
827
 *  Parameters on exit: unchanged
(-)a/prnt/hpijs/printer.cpp (-1 / +1 lines)
Lines 267-273 DRIVER_ERROR Printer::Flush Link Here
267
 *  Called by: Send()
267
 *  Called by: Send()
268
 *
268
 *
269
 *  Parameters on entry: status_reg is the contents of the centronics
269
 *  Parameters on entry: status_reg is the contents of the centronics
270
 *                      status register (at the time the error was
270
 *                      status (at the time the error was
271
 *                      detected)
271
 *                      detected)
272
 *
272
 *
273
 *  Parameters on exit: unchanged
273
 *  Parameters on exit: unchanged
(-)a/prnt/hpijs/printerfactory.cpp (-2 / +2 lines)
Lines 80-86 PrinterFactory::~PrinterFactory Link Here
80
//! Register proxy classes for printer families
80
//! Register proxy classes for printer families
81
/*!
81
/*!
82
This method is used by the constuctor of the PrinterProxy subclasses to
82
This method is used by the constuctor of the PrinterProxy subclasses to
83
register themselves with the factory.  They call Register(this) to pass
83
themselves with the factory.  They call Register(this) to pass
84
themselves to the factory.
84
themselves to the factory.
85
******************************************************************************/
85
******************************************************************************/
86
void PrinterFactory::Register
86
void PrinterFactory::Register
Lines 129-135 void PrinterFactory::Register Link Here
129
//UnRegister
129
//UnRegister
130
//! UnRegister proxy classes for printer families
130
//! UnRegister proxy classes for printer families
131
/*!
131
/*!
132
PrinterProxy subclasses use this to unregister themselves with their destuctor
132
PrinterProxy subclasses use this to unthemselves with their destuctor
133
executes.
133
executes.
134
******************************************************************************/
134
******************************************************************************/
135
void PrinterFactory::UnRegister
135
void PrinterFactory::UnRegister
(-)a/prnt/hpijs/systemservices.h (-2 / +2 lines)
Lines 187-197 public: Link Here
187
    virtual BOOL PrinterIsAlive();
187
    virtual BOOL PrinterIsAlive();
188
188
189
    /*!
189
    /*!
190
    This method reads status register from printer. If the parallel status byte
190
    This method reads status from printer. If the parallel status byte
191
    is returned, the function returns TRUE when it sets this value. Otherwise
191
    is returned, the function returns TRUE when it sets this value. Otherwise
192
    the function returns FALSE if this functionality is not supported.
192
    the function returns FALSE if this functionality is not supported.
193
193
194
    \param bStatReg Pointer to a byte into which status register will be copied.
194
    \param bStatReg Pointer to a byte into which status will be copied.
195
195
196
    \return TRUE The value is set after returning the parallel status byte,
196
    \return TRUE The value is set after returning the parallel status byte,
197
    FALSE if the functionality is not supported.
197
    FALSE if the functionality is not supported.
(-)a/prnt/hpps/psutil.c (-3 / +3 lines)
Lines 148-156 static int fcopy(long upto) Link Here
148
/* build array of pointers to start/end of pages */
148
/* build array of pointers to start/end of pages */
149
void scanpages(void)
149
void scanpages(void)
150
{
150
{
151
   register char *comment = buffer+2;
151
   char *comment = buffer+2;
152
   register int nesting = 0;
152
   int nesting = 0;
153
   register long int record;
153
   long int record;
154
154
155
   if ((pageptr = (long *)malloc(sizeof(long)*maxpages)) == NULL)
155
   if ((pageptr = (long *)malloc(sizeof(long)*maxpages)) == NULL)
156
      message(FATAL, "out of memory\n");
156
      message(FATAL, "out of memory\n");
(-)a/protocol/discovery/avahiDiscovery.c (-2 / +1 lines)
Lines 435-441 static void host_name_resolver_callback( Link Here
435
    avahi_host_name_resolver_free(r);
435
    avahi_host_name_resolver_free(r);
436
}
436
}
437
/*
437
/*
438
This function will register the callbacks for the avahi calls.
438
This function will the callbacks for the avahi calls.
439
Parameters:
439
Parameters:
440
          iCommandType - INPUT - Lookup / Probe scanner.
440
          iCommandType - INPUT - Lookup / Probe scanner.
441
          iHostName - INPUT - Host name of the scanner.
441
          iHostName - INPUT - Host name of the scanner.
442
- 

Return to bug 909351