summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-03xpr 1.2.0HEADxpr-1.2.0masterAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-21configure: Use AC_SYS_LARGEFILE to enable large file supportAlan Coopersmith1-0/+3
While X window dump files should never be more than 2gb in size, they may be stored on filesystems with large inodes or timestamps. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-21Modernize lseek() callsAlan Coopersmith1-3/+2
Position should be stored in an off_t, not an int, and use symbolic constants instead of raw numbers for the "whence" arg. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-07Add support for paper sizes other than 8.5 x 11 inchesAlan Coopersmith4-14/+301
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-06No need to bzero() buffers allocated by calloc()Alan Coopersmith2-5/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06Remove unnnecessary casts from malloc(), calloc(), and free() callsAlan Coopersmith3-21/+19
These are not needed in C89 and later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-06Use memcpy() instead of memmove() when buffers are known not to overlapAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-10xpr 1.1.0xpr-1.1.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02xdpr.man: minor correctionsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02man pages: remove out-of-date COPYRIGHT sectionAlan Coopersmith2-10/+0
The information previously listed here didn't match what is present in the source code or the COPYING file, and the X(7) man page doesn't list any license information as this had claimed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-30gitlab CI: enable Static Application Security Testing (SAST)Alan Coopersmith1-0/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28gitlab CI: Use ci-fairy image templateAlan Coopersmith1-12/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith2-2/+2
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-10-25remove extra 3rd parameter to open()Matthieu Herrb1-1/+1
When O_CREAT is not present in flags, this parameter is ignored. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
2021-09-12gitlab CI: add a basic build testAlan Coopersmith1-0/+102
Based on the config from libX11 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-02Remove support for Digital LN03 laser printerAlan Coopersmith6-431/+17
This DEC printer from the early 1980's is not widely used today. This was the last remaining printer using the "sixel" and "sixmap" support, so those functions were removed as well. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-02Remove support for Digital LA100 dot matrix printerAlan Coopersmith4-120/+5
This DEC printer from the early 1980's is not widely used today. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-01xpr.man: show current version in footer instead of X11R6Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-01xpr.man: remove duplicate "HP" from PaintJet XL Color nameAlan Coopersmith1-1/+1
HP is not in fact so nice that we need to name it twice. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-01Use time_t instead of long with time() & ctime()Alan Coopersmith1-1/+1
Fixes: #1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-27/+19
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>
2018-03-09xpr 1.0.5xpr-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-12-05Fix man page references to X(1) to use __miscmansuffix__Alan Coopersmith2-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-10-24More constificationAlan Coopersmith1-11/+13
Shrinks .data from 1320 bytes to 72 bytes Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-10-24Use strcmp() to compare strings and simplify options parser.Matthieu Herrb1-227/+125
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01Add -version option to print program versionAlan Coopersmith2-0/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01Print which option was in error along with usage messageAlan Coopersmith2-49/+72
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01Fix "missmatch" typo in error messageAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01Combine strings in usage messageAlan Coopersmith1-21/+22
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01Remove old CVS id tagsAlan Coopersmith8-15/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01This is not a GNU project, so declare it foreign.Alan Coopersmith4-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-19Remove unneeded uses of <math.h> & -lmAlan Coopersmith2-2/+1
Can't see why they were ever needed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2012-03-31xpr 1.0.4xpr-1.0.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-11Use memmove rather than bcopyJeremy Huddleston2-4/+6
bcopy was removed in POSIX 2008. I didn't check to see if we could safely use memcpy. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-06Add _X_NORETURN to usage() & leave() as suggested by gcc -Wmissing-noreturnAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-06Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2-3/+3
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 Coopersmith8-64/+64
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 Coopersmith2-5/+3
Adds dependency on x11proto 7.0.17 to get the definition of _X_NORETURN Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>