summaryrefslogtreecommitdiff
path: root/x2jet.c
AgeCommit message (Collapse)AuthorFilesLines
2022-11-07Add support for paper sizes other than 8.5 x 11 inchesAlan Coopersmith1-0/+3
This adds new command line arguments -papertype, -pheight, and -pwidth Originally implemented by Jay Hobson in August 2002 to fix Sun bug 4704388: xpr does not work with A3 paper Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06Remove unnnecessary casts from malloc(), calloc(), and free() callsAlan Coopersmith1-7/+7
These are not needed in C89 and later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-05-05Standardize indentation in validate_visual()Alan Coopersmith1-4/+12
Fixes gcc 7.3 warnings: x2jet.c: In function ‘validate_visual’: x2jet.c:1057:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break; ^~ x2jet.c:1057:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break; ^~~~~ x2jet.c:1059:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break; ^~ x2jet.c:1059:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break; ^~~~~ x2jet.c:1061:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break; ^~ x2jet.c:1061:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break; ^~~~~ x2jet.c:1063:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break; ^~ x2jet.c:1063:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break; ^~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01Remove old CVS id tagsAlan Coopersmith1-2/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-06Fix printf type warnings in LP64 buildsAlan Coopersmith1-1/+1
x2jet.c:300:6: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘CARD32’ x2jet.c:300:6: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘CARD32’ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-06Strip trailing whitespaceAlan Coopersmith1-17/+17
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-29Define pixel mask constant as unsigned longAlan Coopersmith1-1/+1
Clears Sun Studio cc warning of: "x2jet.c", line 1681: warning: constant promoted to unsigned long Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-29Refactor invalid depth error reporting to allow printf format checkingAlan Coopersmith1-8/+16
Clears gcc warnings: x2jet.c: In function `validate_visual': x2jet.c:1053: warning: format not a string literal, argument types not checked x2jet.c:1055: warning: format not a string literal, argument types not checked x2jet.c:1057: warning: format not a string literal, argument types not checked x2jet.c:1059: warning: format not a string literal, argument types not checked x2jet.c:1064: warning: format not a string literal, argument types not checked Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-29Replace gcc noreturn & printf attributes with macros from <X11/Xfuncproto.h>Alan Coopersmith1-4/+2
Adds dependency on x11proto 7.0.17 to get the definition of _X_NORETURN Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-22Correct make distcheck and most gcc/sparse warnings.Paulo Cesar Pereira de Andrade1-17/+33
Remaining warnings are due to bit/shift operations mixed with addition/multiplication/etc. "1<<2-1" should be read as "1 << (2 - 1)", and not "(1 << 2) - 1". The first 2 warnings appear to be for a confusing case, as a few lines bellow it is adding parenthesis to the shift operation, but should be being parsed correctly (not added parenthesis to avoid the adding them wrong, and "hiding" the warning...)
2004-11-08xc/programs/xpr/x2jet.csco_port_update-baseXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1Roland Mainz1-2/+2
//freedesktop.org/bugzilla/show_bug.cgi?id=1795): Fix build bustage caused by bug 1779, patch by Bernhard Rosenkraenzer <bero@arklinux.org>.
2004-11-08xc/programs/xpr/x2jet.cRoland Mainz1-202/+316
xc/programs/xpr/x2pmp.c xc/programs/xpr/xpr.c Fix various warnings, build problems in "xpr" and convert the whole source from K&R style to ANSI-C.
2004-10-31Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=631 - UploadingRoland Mainz1-0/+1577
"xpr" and "pclcomp" as they are needed for the RASTER and PCL drivers on some platforms.