You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

  1. https://bugs.launchpad.net/hplip/+bug/1778626
  2. --- a/prnt/hpcups/genPCLm.cpp
  3. +++ b/prnt/hpcups/genPCLm.cpp
  4. @@ -171,7 +171,7 @@ Defines
  5. #define rgb_2_gray(r,g,b) (ubyte)(0.299*(double)r+0.587*(double)g+0.114*(double)b)
  6. // Note: this is required for debugging
  7. -boolean writeOutputFile(int numBytes, ubyte *ptr, char *user_name);
  8. +bool writeOutputFile(int numBytes, ubyte *ptr, char *user_name);
  9. /*
  10. ********************************************* Helper Routines **************************
  11. @@ -343,7 +343,7 @@ bool PCLmGenerator::addKids(sint32 kidOb
  12. return(true);
  13. }
  14. -boolean writeOutputFile(int numBytes, ubyte *ptr, char *user_name)
  15. +bool writeOutputFile(int numBytes, ubyte *ptr, char *user_name)
  16. {
  17. FILE *outputFile;
  18. char outFileName[MAX_FILE_PATH_LEN];
  19. @@ -1074,7 +1074,7 @@ void PCLmGenerator::writePDFGrammarPage(
  20. * Limitations:
  21. * -
  22. *****************************************************************************************/
  23. -boolean prepImageForBacksideDuplex(ubyte *imagePtr, sint32 imageHeight, sint32 imageWidth, sint32 numComponents)
  24. +bool prepImageForBacksideDuplex(ubyte *imagePtr, sint32 imageHeight, sint32 imageWidth, sint32 numComponents)
  25. {
  26. sint32 numBytes=imageHeight*imageWidth*numComponents;
  27. ubyte *head, *tail, t0, t1, t2;