summaryrefslogtreecommitdiff
path: root/xlsfonts.c
AgeCommit message (Collapse)Author
2024-01-17Use reallocarray() if availableAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-16Fix -Wincompatible-pointer-types warning from gcc (issue #1)Alan Coopersmith
xlsfonts.c: In function ‘get_list’: xlsfonts.c:204:23: warning: assignment to ‘char **’ from incompatible pointer type ‘const char **’ [-Wincompatible-pointer-types] 204 | fonts = &pattern; | ^ v2: Split the open vs. list code to allow preserving the constness of the argument to get_list, at the cost of less code sharing between the two paths Closes: #1 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03Clear -Wshadow warning from gccAlan Coopersmith
xlsfonts.c: In function ‘do_query_font’: xlsfonts.c:628:24: warning: declaration of ‘dpy’ shadows a global declaration [-Wshadow] do_query_font(Display *dpy, char *name) ^~~ In file included from xlsfonts.c:37:0: dsimple.h:53:17: note: shadowed declaration is here extern Display *dpy; /* The current display */ ^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03Clear -Wsign-compare warnings from gccAlan Coopersmith
xlsfonts.c:560:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] i <= fs->max_char_or_byte2; i++, cs++) { ^~ xlsfonts.c: In function ‘print_character_metrics’: xlsfonts.c:611:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j = info->min_byte1; j <= info->max_byte1; j++) { ^~ xlsfonts.c:613:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = info->min_char_or_byte2; i <= info->max_char_or_byte2; i++) { ^~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03PrintProperty: replace sprintf with snprintfAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Adapt to X.Org standard coding styleAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Remove old CVS id tagsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Add -version option to print program versionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Print which option was in error along with usage messageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-16Combine usage message stringsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-11Fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-02-01inline Realloc() at the one place it's calledAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
2010-06-12Use string literals as format stringsJulien Cristau
Allows gcc to check argument types, and avoids warnings: xlsfonts.c:632: warning: format not a string literal, argument types not checked
2009-06-26Remove unused Xprint supportAlan Coopersmith
BUILD_PRINTSUPPORT has never been defined in autoconf/automake builds, so it hasn't been built since 6.9 Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2008-11-28Compile warning fixes.Paulo Cesar Pereira de Andrade
Ansify functions in dsimple.c. Protect unused variables around the related ifdef.
2005-01-03xc/lib/XprintAppUtil/xpapputil.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_1sco_port_updateRoland Mainz
xc/lib/XprintAppUtil/xpapputil.h xc/lib/XprintUtil/xprintutil.c xc/lib/XprintUtil/xprintutil.h xc/programs/glxgears/glxgears.c xc/programs/xdbedizzy/xdbedizzy.c xc/programs/xedit/Xedit-xprint.ad xc/programs/xedit/commands.c xc/programs/xlogo/print.c xc/programs/xlsfonts/xlsfonts.c xc/programs/xlsfonts/xlsfonts.man xc/programs/xlsfonts/xlsfonts.sgml xc/programs/xman/Xman-xprint.ad xc/programs/xman/handler.c xc/programs/xman/print.c xc/programs/xman/print.h xc/programs/xmore/XMore.ad xc/programs/xmore/print.c xc/programs/xmore/print.h xc/programs/xmore/printdialog.c xc/programs/xmore/printdialog.h xc/programs/xmore/printdialogprivates.h xc/programs/xmore/xmore.c xc/programs/xphelloworld/xpawhelloworld/xpawhelloworld.c xc/programs/xphelloworld/xphelloworld/xphelloworld.c xc/programs/xphelloworld/xpsimplehelloworld/xpsimplehelloworld.c xc/programs/xphelloworld/xpxmhelloworld/xpxmhelloworld.c xc/programs/xphelloworld/xpxthelloworld/xpxthelloworld.c xc/programs/xplsprinters/xplsprinters.c //bugs.freedesktop.org/show_bug.cgi?id=1706) attachment #1615 (https://bugs.freedesktop.org/attachment.cgi?id=1615): XprintUtils 2004/Q3 update. This adds various new features to the XprintUtils library including support for page resolutions where X_resolution!=Y_resolution, listfonts-mode control and initial framework for the COLORSPACE extension. Patch by Roland Mainz <roland.mainz@nrubsig.org> and Julien Lafon <julien.lafon@gmail.com>.
2004-10-07Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=1551 - ConvertRoland Mainz
"xlsfonts" manual page to DocBook format (and document the new functionality introduced with bug #1518).
2004-10-06Fix for https://freedesktop.org/bugzilla/show_bug.cgi?id=1518 - Add filterRoland Mainz
support to "xlsfonts" that it can filter builtin-, glyph- and/or other kinds of printer fonts (controlled by the xp-listfonts-modes attribute as described in the CDE DtPrint and Xprint specifications).
2004-04-23Merging XORG-CURRENT into trunkrel-0-6-1lg3d-rel-0-7-0lg3d-baseXORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XACE-SELINUX-MERGElg3d-eventlg3d-dev-0-6-latestlg3d-dev-0-6-1-latestlg3d-dev-0-6-1-currentlg3d-dev-0-6-1lg3dCOMPOSITEWRAPEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330Kaleb Keithley
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley
2003-11-14R6.6 is the Xorg base-lineXORG-MAINXORG-STABLEKaleb Keithley