···11+commit 7883d1c27a12320b2c3a03aeca573259cb60b3b0
22+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
33+Date: Sat Oct 15 10:17:34 2022 -0700
44+55+ xgc 1.0.6
66+77+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
88+99+commit f3424f4c7c7e1aba33d0a117ea90dd5412530f45
1010+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
1111+Date: Sun Apr 3 16:08:14 2022 -0700
1212+1313+ Fix -Wformat-truncation warning
1414+1515+ planemask.c: In function ‘create_planemask_choice’:
1616+ planemask.c:109:43: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=]
1717+ snprintf(name, sizeof name, "planemask%d",i);
1818+ ^~
1919+ planemask.c:109:33: note: directive argument in the range [0, 2147483647]
2020+ snprintf(name, sizeof name, "planemask%d",i);
2121+ ^~~~~~~~~~~~~
2222+ planemask.c:109:5: note: ‘snprintf’ output between 11 and 20 bytes into a destination of size 12
2323+ snprintf(name, sizeof name, "planemask%d",i);
2424+ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2525+2626+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2727+2828+commit c3e109f0bb814f2a0e3385bdada58a52473397ac
2929+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
3030+Date: Sun Apr 3 16:04:34 2022 -0700
3131+3232+ Use _CONST_X_STRING to make libXt declare String as const char *
3333+3434+ Clears 57 out of 61 -Wdiscarded-qualifiers warnings from gcc
3535+3636+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
3737+3838+commit 609dfb80abafeea1d4e757403f1cef90c87cde02
3939+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
4040+Date: Mon Dec 6 12:45:35 2021 -0800
4141+4242+ Build xz tarballs instead of bzip2
4343+4444+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
4545+4646+commit 949a0d32c94b54ecfaad80ea90dc8bbf74bb04d7
4747+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
4848+Date: Mon Dec 6 12:45:31 2021 -0800
4949+5050+ gitlab CI: add a basic build test
5151+5252+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5353+5454+commit 684e4321fa7e96a61f45dc133816ab92a173a52d
5555+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
5656+Date: Sun Nov 28 14:40:19 2021 -0800
5757+5858+ Trim trailing whitespace from lines
5959+6060+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
6161+6262+commit 63e7fce72d704036016258b2cb55c5624f571d92
6363+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
6464+Date: Sun Nov 28 14:39:06 2021 -0800
6565+6666+ Fix spelling/wording issues
6767+6868+ Found by using:
6969+ codespell --builtin clear,rare,usage,informal,code,names
7070+7171+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7272+7373+commit 233611e5a2bc11cb0a965040166c2e4787b946a4
7474+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
7575+Date: Wed Nov 21 17:06:08 2018 -0800
7676+7777+ Update configure.ac bug URL for gitlab migration
7878+7979+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8080+8181+commit 4786164fba556c753ba8ba2b1ffd98c1f1c70322
8282+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
8383+Date: Fri Nov 16 22:14:35 2018 -0800
8484+8585+ Update README for gitlab migration
8686+8787+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8888+8989+commit 4c03e97932752295558f0f64c76bd23d26423e26
9090+Author: Mihail Konev <k.mvc@ya.ru>
9191+Date: Thu Jan 26 14:00:21 2017 +1000
9292+9393+ autogen: add default patch prefix
9494+9595+ Signed-off-by: Mihail Konev <k.mvc@ya.ru>
9696+9797+commit 0d35119c5015fb47c2ec96e102f5c8dab1ead026
9898+Author: Emil Velikov <emil.l.velikov@gmail.com>
9999+Date: Mon Mar 9 12:00:52 2015 +0000
100100+101101+ autogen.sh: use quoted string variables
102102+103103+ Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
104104+ fall-outs, when they contain space.
105105+106106+ Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
107107+ Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
108108+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
109109+110110+commit d1757a5d69fbc11121bb84739359599964d13efb
111111+Author: Peter Hutterer <peter.hutterer@who-t.net>
112112+Date: Tue Jan 24 10:32:07 2017 +1000
113113+114114+ autogen.sh: use exec instead of waiting for configure to finish
115115+116116+ Syncs the invocation of configure with the one from the server.
117117+118118+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
119119+ Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
120120+1121commit 54f109228e566759799894ff4d6ef4bac74c9aac
2122Author: Alan Coopersmith <alan.coopersmith@oracle.com>
3123Date: Thu Apr 16 23:25:45 2015 -0700
···582702 configure cache, you cache it, and the cached value is probably wrong.
583703584704commit 23e06fb205c2494dc8c44e976e27ca0a30c30ed2
585585-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
705705+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
586706Date: Thu Jul 14 22:40:16 2005 +0000
587707588708 Add _BSD_SOURCE to lots of applications - patch from Stefan Dirsch
589709590710commit 07ed043059d5fc7e8d694f6814eb1ba63946d646
591591-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
711711+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
592712Date: Tue Jul 5 21:11:37 2005 +0000
593713594714 Add build system for xgc
+5-3
app/xgc/Makefile.am
···11-#
11+#
22# Copyright 2005 Red Hat, Inc.
33-#
33+#
44# Permission to use, copy, modify, distribute, and sell this software and its
55# documentation for any purpose is hereby granted without fee, provided that
66# the above copyright notice appear in all copies and that both that
···1010# specific, written prior permission. Red Hat makes no
1111# representations about the suitability of this software for any purpose. It
1212# is provided "as is" without express or implied warranty.
1313-#
1313+#
1414# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1515# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1616# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
···2424SUBDIRS = man
2525bin_PROGRAMS = xgc
26262727+AM_CPPFLAGS = -D_CONST_X_STRING
2728AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE
2829xgc_LDADD = $(XGC_LIBS) -lm
2930···5758 app-defaults/Xgc-color
58595960EXTRA_DIST = tile Bugs \
6161+ README.md \
6062 Written/FilledRects \
6163 Written/Interface \
6264 Written/Jim \
+10-7
app/xgc/Makefile.in
···14141515@SET_MAKE@
16161717-#
1717+#
1818# Copyright 2005 Red Hat, Inc.
1919-#
1919+#
2020# Permission to use, copy, modify, distribute, and sell this software and its
2121# documentation for any purpose is hereby granted without fee, provided that
2222# the above copyright notice appear in all copies and that both that
···2626# specific, written prior permission. Red Hat makes no
2727# representations about the suitability of this software for any purpose. It
2828# is provided "as is" without express or implied warranty.
2929-#
2929+#
3030# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
3131# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3232# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
···7474host_triplet = @host@
7575bin_PROGRAMS = xgc$(EXEEXT)
7676subdir = .
7777-DIST_COMMON = README $(am__configure_deps) $(dist_appdefault_DATA) \
7777+DIST_COMMON = $(am__configure_deps) $(dist_appdefault_DATA) \
7878 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
7979 $(srcdir)/config.h.in $(top_srcdir)/configure COPYING \
8080 ChangeLog INSTALL compile config.guess config.sub depcomp \
···227227 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
228228 done; \
229229 reldir="$$dir2"
230230-DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
230230+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz
231231GZIP_ENV = --best
232232-DIST_TARGETS = dist-bzip2 dist-gzip
232232+DIST_TARGETS = dist-xz dist-gzip
233233distuninstallcheck_listfiles = find . -type f -print
234234am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
235235 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
···354354prefix = @prefix@
355355program_transform_name = @program_transform_name@
356356psdir = @psdir@
357357+runstatedir = @runstatedir@
357358sbindir = @sbindir@
358359sharedstatedir = @sharedstatedir@
359360srcdir = @srcdir@
···364365top_srcdir = @top_srcdir@
365366AM_YFLAGS = -d
366367SUBDIRS = man
368368+AM_CPPFLAGS = -D_CONST_X_STRING
367369AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE
368370xgc_LDADD = $(XGC_LIBS) -lm
369371xgc_SOURCES = \
···392394 app-defaults/Xgc-color
393395394396EXTRA_DIST = tile Bugs \
397397+ README.md \
395398 Written/FilledRects \
396399 Written/Interface \
397400 Written/Jim \
···767770dist-gzip: distdir
768771 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
769772 $(am__post_remove_distdir)
773773+770774dist-bzip2: distdir
771775 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
772776 $(am__post_remove_distdir)
···774778dist-lzip: distdir
775779 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
776780 $(am__post_remove_distdir)
777777-778781dist-xz: distdir
779782 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
780783 $(am__post_remove_distdir)
-26
app/xgc/README
···11-xgc is an X11 graphics demo that shows various features of the X11
22-core protocol graphics primitives.
33-44-All questions regarding this software should be directed at the
55-Xorg mailing list:
66-77- http://lists.freedesktop.org/mailman/listinfo/xorg
88-99-Please submit bug reports to the Xorg bugzilla:
1010-1111- https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
1212-1313-The master development code repository can be found at:
1414-1515- git://anongit.freedesktop.org/git/xorg/app/xgc
1616-1717- http://cgit.freedesktop.org/xorg/app/xgc
1818-1919-For patch submission instructions, see:
2020-2121- http://www.x.org/wiki/Development/Documentation/SubmittingPatches
2222-2323-For more information on the git code manager, see:
2424-2525- http://wiki.x.org/wiki/GitPage
2626-
+18
app/xgc/README.md
···11+xgc is an X11 graphics demo that shows various features of the X11
22+core protocol graphics primitives.
33+44+All questions regarding this software should be directed at the
55+Xorg mailing list:
66+77+ https://lists.x.org/mailman/listinfo/xorg
88+99+The primary development code repository can be found at:
1010+1111+ https://gitlab.freedesktop.org/xorg/app/xgc
1212+1313+Please submit bug reports and requests to merge patches there.
1414+1515+For patch submission instructions, see:
1616+1717+ https://www.x.org/wiki/Development/Documentation/SubmittingPatches
1818+
+4-4
app/xgc/Written/FilledRects
···2626 Otherwise, the speed of a single rectangle should be about
2727 equal to its size.
28282929-Data:
2929+Data:
3030 Pixels per second.
3131 Average size of rectangle.
32323333-GC fields:
3333+GC fields:
3434 function:
3535 Tiling: likely to be a lot slower, although for whole words
3636 you're just setting it to a certain value, rather than 0.
···5858 more thought has to be given to what is drawn or not.
5959 Software vs. hardware, I suppose.
60606161-Possibly
6161+Possibly
6262 foreground: similar to plane-mask in its effect, I would think.
63636464 tile: "nice" width tiles would probably be better. A width which
···7272 stipple: like tile
73737474Other:
7575- alignment on word bounaries: fastest when one is changing whole
7575+ alignment on word boundaries: fastest when one is changing whole
7676 words at a time. That way, you're just setting whole words to
7777 0 or ~0 and not doing any computation. A 32x1 rectangle should
7878 be much faster than a 1x32 rectangle.
+1-1
app/xgc/Written/Interface
···11The command buttons at the top -
2233- Benchmark Options, Graphics Options, etc.
33+ Benchmark Options, Graphics Options, etc.
4455should just bring up the window, not force you to use it.
66
+6-6
app/xgc/Written/Jim
···55555656The Graphics Options area would contain the following entries:
57575858- Function - one-of { clear, and, andReverse, copy, andInverted, noop, xor,
5959- or, nor, equiv, invert, orReverse, copyInverted,
5858+ Function - one-of { clear, and, andReverse, copy, andInverted, noop, xor,
5959+ or, nor, equiv, invert, orReverse, copyInverted,
6060 orInverted, nand, set }
6161 PlaneMask - unsigned value or many-of-n representing bits
6262 Foreground - unsigned value in range 0..2^nplanes
···158158the application section of the benchmark as separate as possible from the
159159user interface.
160160161161- test { CopyArea, CopyPlane, PolyPoint, PolyLine, PolySegment,
161161+ test { CopyArea, CopyPlane, PolyPoint, PolyLine, PolySegment,
162162 PolyRectangle, PolyArc, FillPolygon, PolyFillRect, PolyFillArc,
163163 PutImage, GetImage, ImageText8, PolyText8, ImageText16,
164164 PolyText16 }
···177177 - specifies the name of the file into which commands are recorded.
178178179179 describe BOOLEAN
180180- - indicates whether or not a description of the test should be
180180+ - indicates whether or not a description of the test should be
181181 displayed whenever a test is selected (or when this option is
182182 specified).
183183···194194 colormap is being used, the RGB value for this slot may be changed.
195195196196 forecolor COLORNAME
197197- - specifies the RGB value or name of the color to be used for the
197197+ - specifies the RGB value or name of the color to be used for the
198198 foreground pixel, if settable.
199199200200 backcolor COLORNAME
201201- - specifies the RGB value or name of the color to be used for the
201201+ - specifies the RGB value or name of the color to be used for the
202202 background pixel, if settable.
203203204204 linewidth NUMBER
+4-4
app/xgc/Written/Notes
···8899Data: Pixels per second.
1010 Breaking that down into large and small areas would probably not
1111- be userful.
1212-1111+ be useful.
1212+1313GC Fields: None.
14141515···2222as that as mentioned specifically in the protocol document.
23232424Data: Pixels per second.
2525-2525+2626GC Fields: function (*)
2727 plane-mask
2828 subwindow-mode
···6464 Pixels per second (is this valid - do lines that are twice as
6565 long take twice as long to draw? Also, is it valid to compare
6666 thin lines and fat lines?)
6767-6767+6868GC fields: function (*)
6969 plane-mask
7070 line-width (*)
···7070 - read from file until EOF
7171 Quit
7272 - quit
7373-7373+7474The toggling command buttons exist in pairs, of which only one is visible at
7575any one point. This makes callbacks/names of buttons easier to implement.
7676···8484 - call disable_gc_choices() with the GC field flags
8585 Iterations (text) the number of times to run.
8686 - put "iterations <>" in buffer
8787-8787+8888---
89899090GraphicsOptions (form) describing graphics options (owned by Toplevel?)
···134134I really need to find out how to use sources and sinks for Text widgets -
135135the documentation does not say how to do it.
136136137137-Every test will have a block of text associated with it. When a new
137137+Every test will have a block of text associated with it. When a new
138138benchmark is chosen, its associated text will become the source for the
139139-Description widget. Note that we don't have to worry about whether
139139+Description widget. Note that we don't have to worry about whether
140140Description is mapped or not; we're just setting a source.
141141142142---
···1651651) change the buffer to the file that he wants, and 2) start reading.
166166The rest should be taken care of the buffer-interpreting module.
167167168168-RecordingOn changes the output buffer _and_ the input buffer to the
168168+RecordingOn changes the output buffer _and_ the input buffer to the
169169desired file.
170170-170170+171171RecordingOff changes them both back to the usual.
172172173173
+1-1
app/xgc/Written/Widget
···11What we need is a widget which presents a collection of buttons. The user
22-can select only one of them at a time. When one is selected, its
22+can select only one of them at a time. When one is selected, its
33foreground and background colors should be reversed and stay that way
44until another one is selected. Exactly one button can be selected at
55any one time.
···5252 ** toggle widget is selected. */
53535454 /* ArgList for the label widget */
5555- static Arg labelargs[] = {
5656- {XtNborderWidth, (XtArgVal) 0},
5555+ static Arg labelargs[] = {
5656+ {XtNborderWidth, (XtArgVal) 0},
5757 {XtNjustify, (XtArgVal) XtJustifyRight},
5858 {XtNvertDistance, (XtArgVal) 4}
5959 };
···76767777 /* Allocate space for the widgets and initialize choice */
7878 choice = (ChoiceDesc *) XtMalloc(sizeof(ChoiceDesc));
7979- choice->widgets = (WidgetList) XtMalloc(sizeof(Widget) *
7979+ choice->widgets = (WidgetList) XtMalloc(sizeof(Widget) *
8080 info->choice.num_toggles);
8181 choice->size = info->choice.num_toggles;
8282 choice->label = XtCreateManagedWidget(info->choice.name,labelWidgetClass,w,
···9797 else {
9898 toggleargs[4].value = (XtArgVal) choice->widgets[0];
9999 /* are we starting a new row? */
100100- if (info->choice.columns > 0 &&
101101- i > 1 &&
100100+ if (info->choice.columns > 0 &&
101101+ i > 1 &&
102102 (i % (info->choice.columns) == 0)) {
103103 toggleargs[0].value = (XtArgVal) choice->label;
104104 /* under the appropriate toggle */
···130130 strcat(text, (info->data)[i].text);
131131 strcat(text, "\n");
132132 callbacklist[0].closure = (caddr_t) text;
133133-133133+134134 /* Create it finally */
135135- choice->widgets[i] = XtCreateManagedWidget((info->data[i]).name,
135135+ choice->widgets[i] = XtCreateManagedWidget((info->data[i]).name,
136136 toggleWidgetClass,
137137 w,
138138 toggleargs,
139139 XtNumber(toggleargs));
140140 }
141141-141141+142142 /* The toggle widgets have all been created;
143143 ** now make the all the same width if that's
144144 ** what we want to do. */
+9-8
app/xgc/compile
···11#! /bin/sh
22# Wrapper for compilers which do not understand '-c -o'.
3344-scriptversion=2012-10-14.11; # UTC
44+scriptversion=2018-03-07.03; # UTC
5566-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
66+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
77# Written by Tom Tromey <tromey@cygnus.com>.
88#
99# This program is free software; you can redistribute it and/or modify
···1717# GNU General Public License for more details.
1818#
1919# You should have received a copy of the GNU General Public License
2020-# along with this program. If not, see <http://www.gnu.org/licenses/>.
2020+# along with this program. If not, see <https://www.gnu.org/licenses/>.
21212222# As a special exception to the GNU General Public License, if you
2323# distribute this file as part of a program that contains a
···5353 MINGW*)
5454 file_conv=mingw
5555 ;;
5656- CYGWIN*)
5656+ CYGWIN* | MSYS*)
5757 file_conv=cygwin
5858 ;;
5959 *)
···6767 mingw/*)
6868 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6969 ;;
7070- cygwin/*)
7070+ cygwin/* | msys/*)
7171 file=`cygpath -m "$file" || echo "$file"`
7272 ;;
7373 wine/*)
···255255 echo "compile $scriptversion"
256256 exit $?
257257 ;;
258258- cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258258+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
259259+ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
259260 func_cl_wrapper "$@" # Doesn't return...
260261 ;;
261262esac
···339340# Local Variables:
340341# mode: shell-script
341342# sh-indentation: 2
342342-# eval: (add-hook 'write-file-hooks 'time-stamp)
343343+# eval: (add-hook 'before-save-hook 'time-stamp)
343344# time-stamp-start: "scriptversion="
344345# time-stamp-format: "%:y-%02m-%02d.%02H"
345345-# time-stamp-time-zone: "UTC"
346346+# time-stamp-time-zone: "UTC0"
346347# time-stamp-end: "; # UTC"
347348# End:
348349#! /bin/sh
+81-37
app/xgc/configure
···11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
33-# Generated by GNU Autoconf 2.69 for xgc 1.0.5.
33+# Generated by GNU Autoconf 2.69 for xgc 1.0.6.
44#
55-# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
55+# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgc/-/issues>.
66#
77#
88# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
···267267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268268 else
269269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270270-$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
270270+$0: https://gitlab.freedesktop.org/xorg/app/xgc/-/issues
271271$0: about your system, including any error possibly output
272272$0: before this message. Then install a modern shell, or
273273$0: manually run the script under such a shell if you do
···581581# Identity of this package.
582582PACKAGE_NAME='xgc'
583583PACKAGE_TARNAME='xgc'
584584-PACKAGE_VERSION='1.0.5'
585585-PACKAGE_STRING='xgc 1.0.5'
586586-PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
584584+PACKAGE_VERSION='1.0.6'
585585+PACKAGE_STRING='xgc 1.0.6'
586586+PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xgc/-/issues'
587587PACKAGE_URL=''
588588589589ac_unique_file="Makefile.am"
···736736docdir
737737oldincludedir
738738includedir
739739+runstatedir
739740localstatedir
740741sharedstatedir
741742sysconfdir
···819820sysconfdir='${prefix}/etc'
820821sharedstatedir='${prefix}/com'
821822localstatedir='${prefix}/var'
823823+runstatedir='${localstatedir}/run'
822824includedir='${prefix}/include'
823825oldincludedir='/usr/include'
824826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
···10711073 | -silent | --silent | --silen | --sile | --sil)
10721074 silent=yes ;;
1073107510761076+ -runstatedir | --runstatedir | --runstatedi | --runstated \
10771077+ | --runstate | --runstat | --runsta | --runst | --runs \
10781078+ | --run | --ru | --r)
10791079+ ac_prev=runstatedir ;;
10801080+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
10811081+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
10821082+ | --run=* | --ru=* | --r=*)
10831083+ runstatedir=$ac_optarg ;;
10841084+10741085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10751086 ac_prev=sbindir ;;
10761087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
···12081219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12091220 datadir sysconfdir sharedstatedir localstatedir includedir \
12101221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12111211- libdir localedir mandir
12221222+ libdir localedir mandir runstatedir
12121223do
12131224 eval ac_val=\$$ac_var
12141225 # Remove trailing slashes.
···13211332 # Omit some internal or obsolete options to make the list less imposing.
13221333 # This message is too long to be a string in the A/UX 3.1 sh.
13231334 cat <<_ACEOF
13241324-\`configure' configures xgc 1.0.5 to adapt to many kinds of systems.
13351335+\`configure' configures xgc 1.0.6 to adapt to many kinds of systems.
1325133613261337Usage: $0 [OPTION]... [VAR=VALUE]...
13271338···13611372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13621373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13631374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
13751375+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13641376 --libdir=DIR object code libraries [EPREFIX/lib]
13651377 --includedir=DIR C header files [PREFIX/include]
13661378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
···1391140313921404if test -n "$ac_init_help"; then
13931405 case $ac_init_help in
13941394- short | recursive ) echo "Configuration of xgc 1.0.5:";;
14061406+ short | recursive ) echo "Configuration of xgc 1.0.6:";;
13951407 esac
13961408 cat <<\_ACEOF
13971409···14481460Use these variables to override the choices made by `configure' or to help
14491461it to find libraries and programs with nonstandard names/locations.
1450146214511451-Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14631463+Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgc/-/issues>.
14521464_ACEOF
14531465ac_status=$?
14541466fi
···15111523test -n "$ac_init_help" && exit $ac_status
15121524if $ac_init_version; then
15131525 cat <<\_ACEOF
15141514-xgc configure 1.0.5
15261526+xgc configure 1.0.6
15151527generated by GNU Autoconf 2.69
1516152815171529Copyright (C) 2012 Free Software Foundation, Inc.
···17681780This file contains any messages produced by compilers while
17691781running configure, to aid debugging if configure makes a mistake.
1770178217711771-It was created by xgc $as_me 1.0.5, which was
17831783+It was created by xgc $as_me 1.0.6, which was
17721784generated by GNU Autoconf 2.69. Invocation command line was
1773178517741786 $ $0 $@
···2597260925982610# Define the identity of the package.
25992611 PACKAGE='xgc'
26002600- VERSION='1.0.5'
26122612+ VERSION='1.0.6'
260126132602261426032615cat >>confdefs.h <<_ACEOF
···1024110253102421025410243102551024410244-CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1025610256+CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
1024510257mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1024610246-|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1024710247-echo 'git directory not found: installing possibly empty changelog.' >&2)"
1025810258+|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
1025910259+touch \$(top_srcdir)/ChangeLog; \
1026010260+echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
102481026110249102621025010263···1025210265macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1025310266INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1025410267mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1025510255-|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1025610256-echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1026810268+|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
1026910269+touch \$(top_srcdir)/INSTALL; \
1027010270+echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
1025710271102581027210259102731026010274102611027510262102761027710277+case $host_os in
1027810278+ solaris*)
1027910279+ # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
1028010280+ # check for a man page file found in later versions that use
1028110281+ # traditional section numbers instead
1028210282+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
1028310283+$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
1028410284+if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
1028510285+ $as_echo_n "(cached) " >&6
1028610286+else
1028710287+ test "$cross_compiling" = yes &&
1028810288+ as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1028910289+if test -r "/usr/share/man/man7/attributes.7"; then
1029010290+ ac_cv_file__usr_share_man_man7_attributes_7=yes
1029110291+else
1029210292+ ac_cv_file__usr_share_man_man7_attributes_7=no
1029310293+fi
1029410294+fi
1029510295+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
1029610296+$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
1029710297+if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
1029810298+ SYSV_MAN_SECTIONS=false
1029910299+else
1030010300+ SYSV_MAN_SECTIONS=true
1030110301+fi
1030210302+1030310303+ ;;
1030410304+ *) SYSV_MAN_SECTIONS=false ;;
1030510305+esac
1030610306+1026310307if test x$APP_MAN_SUFFIX = x ; then
1026410308 APP_MAN_SUFFIX=1
1026510309fi
···1027510319fi
10276103201027710321if test x$FILE_MAN_SUFFIX = x ; then
1027810278- case $host_os in
1027910279- solaris*) FILE_MAN_SUFFIX=4 ;;
1028010280- *) FILE_MAN_SUFFIX=5 ;;
1032210322+ case $SYSV_MAN_SECTIONS in
1032310323+ true) FILE_MAN_SUFFIX=4 ;;
1032410324+ *) FILE_MAN_SUFFIX=5 ;;
1028110325 esac
1028210326fi
1028310327if test x$FILE_MAN_DIR = x ; then
···1028510329fi
10286103301028710331if test x$MISC_MAN_SUFFIX = x ; then
1028810288- case $host_os in
1028910289- solaris*) MISC_MAN_SUFFIX=5 ;;
1029010290- *) MISC_MAN_SUFFIX=7 ;;
1033210332+ case $SYSV_MAN_SECTIONS in
1033310333+ true) MISC_MAN_SUFFIX=5 ;;
1033410334+ *) MISC_MAN_SUFFIX=7 ;;
1029110335 esac
1029210336fi
1029310337if test x$MISC_MAN_DIR = x ; then
···1029510339fi
10296103401029710341if test x$DRIVER_MAN_SUFFIX = x ; then
1029810298- case $host_os in
1029910299- solaris*) DRIVER_MAN_SUFFIX=7 ;;
1030010300- *) DRIVER_MAN_SUFFIX=4 ;;
1034210342+ case $SYSV_MAN_SECTIONS in
1034310343+ true) DRIVER_MAN_SUFFIX=7 ;;
1034410344+ *) DRIVER_MAN_SUFFIX=4 ;;
1030110345 esac
1030210346fi
1030310347if test x$DRIVER_MAN_DIR = x ; then
···1030510349fi
10306103501030710351if test x$ADMIN_MAN_SUFFIX = x ; then
1030810308- case $host_os in
1030910309- solaris*) ADMIN_MAN_SUFFIX=1m ;;
1031010310- *) ADMIN_MAN_SUFFIX=8 ;;
1035210352+ case $SYSV_MAN_SECTIONS in
1035310353+ true) ADMIN_MAN_SUFFIX=1m ;;
1035410354+ *) ADMIN_MAN_SUFFIX=8 ;;
1031110355 esac
1031210356fi
1031310357if test x$ADMIN_MAN_DIR = x ; then
···106371068110638106821063910683pkg_failed=no
1064010640-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGC" >&5
1064110641-$as_echo_n "checking for XGC... " >&6; }
1068410684+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw7 xt" >&5
1068510685+$as_echo_n "checking for xaw7 xt... " >&6; }
10642106861064310687if test -n "$XGC_CFLAGS"; then
1064410688 pkg_cv_XGC_CFLAGS="$XGC_CFLAGS"
···106781072210679107231068010724if test $pkg_failed = yes; then
1068110681- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1072510725+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1068210726$as_echo "no" >&6; }
10683107271068410728if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
···1070510749and XGC_LIBS to avoid the need to call pkg-config.
1070610750See the pkg-config man page for more details." "$LINENO" 5
1070710751elif test $pkg_failed = untried; then
1070810708- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1075210752+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1070910753$as_echo "no" >&6; }
1071010754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1071110755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
···1127311317# report actual input values of CONFIG_FILES etc. instead of their
1127411318# values after options handling.
1127511319ac_log="
1127611276-This file was extended by xgc $as_me 1.0.5, which was
1132011320+This file was extended by xgc $as_me 1.0.6, which was
1127711321generated by GNU Autoconf 2.69. Invocation command line was
11278113221127911323 CONFIG_FILES = $CONFIG_FILES
···1133311377Configuration commands:
1133411378$config_commands
11335113791133611336-Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
1138011380+Report bugs to <https://gitlab.freedesktop.org/xorg/app/xgc/-/issues>."
11337113811133811382_ACEOF
1133911383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1134011384ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1134111385ac_cs_version="\\
1134211342-xgc config.status 1.0.5
1138611386+xgc config.status 1.0.6
1134311387configured by $0, generated by GNU Autoconf 2.69,
1134411388 with options \\"\$ac_cs_config\\"
1134511389
+5-5
app/xgc/configure.ac
···11dnl Copyright 2005 Red Hat, Inc.
22-dnl
22+dnl
33dnl Permission to use, copy, modify, distribute, and sell this software and its
44dnl documentation for any purpose is hereby granted without fee, provided that
55dnl the above copyright notice appear in all copies and that both that
···99dnl specific, written prior permission. Red Hat makes no
1010dnl representations about the suitability of this software for any purpose. It
1111dnl is provided "as is" without express or implied warranty.
1212-dnl
1212+dnl
1313dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1414dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1515dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
···22222323# Initialize Autoconf
2424AC_PREREQ([2.60])
2525-AC_INIT([xgc], [1.0.5],
2626- [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xgc])
2525+AC_INIT([xgc], [1.0.6],
2626+ [https://gitlab.freedesktop.org/xorg/app/xgc/-/issues], [xgc])
2727AC_CONFIG_SRCDIR([Makefile.am])
2828AC_CONFIG_HEADERS([config.h])
29293030# Initialize Automake
3131-AM_INIT_AUTOMAKE([foreign dist-bzip2])
3131+AM_INIT_AUTOMAKE([foreign dist-xz])
32323333# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3434m4_ifndef([XORG_MACROS_VERSION],
+1-1
app/xgc/constants.h
···21212222#define MAXCHOICES 16 /* Max # of choices for any option */
23232424-#define Black BlackPixel(X.dpy,0)
2424+#define Black BlackPixel(X.dpy,0)
2525#define White WhitePixel(X.dpy,0)
26262727#define CopyArea 0 /* different tests */
+5-5
app/xgc/dashlist.c
···136136 XtGetValues(w,args,XtNumber(args));
137137138138 /* modify the dashlist as appropriate. */
139139- if (on) {
140140- dashlist |= 1<<num;
139139+ if (on) {
140140+ dashlist |= 1<<num;
141141 }
142142- else {
143143- dashlist &= ~(1<<num);
142142+ else {
143143+ dashlist &= ~(1<<num);
144144 }
145145146146 /* now tell interpret() about it */
147147- snprintf(buf, sizeof buf, "dashlist %d\n",dashlist);
147147+ snprintf(buf, sizeof buf, "dashlist %d\n",dashlist);
148148 interpret(buf);
149149}
150150
+3-3
app/xgc/getfile.c
···3939 ** confirm the user's choice. Other keys which would move out of
4040 ** the range of a one-line window are disabled. */
41414242- static const char *translationtable =
4242+ static const char *translationtable =
4343 "Ctrl<Key>J: KillPopup() Done()\n\
4444 Ctrl<Key>M: KillPopup() Done()\n\
4545 <Key>Linefeed: KillPopup() Done()\n\
···9999100100 (void) XQueryPointer(X.dpy,XtWindow(topform),&dummy1,&dummy2,&x1,&y1,
101101 &x2,&y2,&mask);
102102-102102+103103 popupshellargs[0].value = (XtArgVal) x2;
104104 popupshellargs[1].value = (XtArgVal) y2;
105105-105105+106106 popupshell = XtCreatePopupShell("popup",overrideShellWidgetClass,
107107 topform,popupshellargs,XtNumber(popupshellargs));
108108
···38383939 /* So word1 is the first word on the line and word2 is the second.
4040 Now the fun begins... */
4141-4141+4242 if (!strcmp(word1,TestStuff.choice.text)) {
4343 for (i=0;i<NUM_TESTS;++i) {
4444 if (!strcmp(word2,(TestStuff.data)[i].text)) {
···105105 }
106106 }
107107 }
108108- else if (!strcmp(word1,"planemask"))
108108+ else if (!strcmp(word1,"planemask"))
109109 GC_change_planemask((unsigned long) atoi(word2),FALSE);
110110 else if (!strcmp(word1,"dashlist"))
111111 GC_change_dashlist(atoi(word2),FALSE);
···126126interpret(const char *instring)
127127{
128128 FILE *inend;
129129-129129+130130 print_if_recording(instring);
131131 yyin = outend;
132132 inend = fdopen(fildes[1],"w");
···264264*/
265265266266void
267267-GC_change_dashlist(int dashlist, Boolean feedback)
267267+GC_change_dashlist(int dashlist, Boolean feedback)
268268{
269269- char dasharray[DASHLENGTH]; /* what we're gonna pass to XSetDashes */
269269+ char dasharray[DASHLENGTH]; /* what we're going to pass to XSetDashes */
270270 int dashnumber = 0; /* which element of dasharray we're currently
271271 modifying */
272272 int i; /* which bit of the dashlist we're on */
273273 int state = 1; /* whether the list bit we checked was
274274 on (1) or off (0) */
275275-275275+276276 /* Initialize the dasharray */
277277278278 for (i = 0; i < DASHLENGTH; ++i) dasharray[i] = 0;
···294294295295 if (((dashlist&1<<i) && state) || (!(dashlist&1<<i) && !state))
296296 ++dasharray[dashnumber];
297297- else {
297297+ else {
298298 state = state^1; /* reverse the state */
299299 ++dasharray[++dashnumber]; /* start a new dash */
300300 }
301301- }
301301+ }
302302303303 XSetDashes(X.dpy,X.gc,0,dasharray,dashnumber+1);
304304 X.gcv.dashes = dashlist;
···315315}
316316317317void
318318-change_test(int test, Boolean feedback)
318318+change_test(int test, Boolean feedback)
319319{
320320 X.test = test;
321321 if (feedback) select_button(testchoicedesc,test);
···5050 ** hits the end of the scrollbar, not the left edge. When the right edge
5151 ** is at 1.0, the left edge is at 1.0 - SLIDER_LENGTH. Normalize
5252 ** accordingly. */
5353-5353+5454 newpercent = oldpercent / (1.0 - SLIDER_LENGTH);
55555656 /* If the slider's partially out of the scrollbar, move it back in. */
···73737474/* slider_scroll(w,data,position)
7575** ------------------------------
7676-** This function is called when the user does incremental scrolling,
7676+** This function is called when the user does incremental scrolling,
7777** generally with the left or right button. Right now it just ignores it.
7878*/
7979···144144 {XtNjumpProc, (XtArgVal) NULL},
145145 {XtNscrollProc, (XtArgVal) NULL}
146146 };
147147-147147+148148 static const char *translationtable = "<Leave>: Update()";
149149150150 static XtActionsRec actiontable[] = {
+9-9
app/xgc/tests.c
···52525353 switch (flag) {
5454 case StartTimer: /* store initial values */
5555- gettimeofday(&starttime,&tz);
5555+ gettimeofday(&starttime,&tz);
5656#if !defined(__UNIXOS2__) && !defined(QNX4)
5757 getrusage(RUSAGE_SELF,&startusage);
5858#endif
···6363 getrusage(RUSAGE_SELF,&endusage);
6464#endif
65656666- /* all the following line does is use the formula
6767- elapsed time = ending time - starting time, but there are three
6666+ /* all the following line does is use the formula
6767+ elapsed time = ending time - starting time, but there are three
6868 different timers and two different units of time, ack... */
69697070#if !defined(__UNIXOS2__) && !defined(QNX4)
···7979 elapsedtime = (long)( ((long)endtime.tv_sec-(long)starttime.tv_sec)*1000000
8080 +((long)endtime.tv_usec-(long)starttime.tv_usec));
8181#endif
8282- return(elapsedtime);
8282+ return(elapsedtime);
83838484- default:
8484+ default:
8585 fprintf(stderr,"Invalid flag in timer()\n");
8686 return((long) NULL);
8787 }
8888#else
8989 static time_t starttime;
9090-9090+9191 switch (flag) {
9292 case StartTimer:
9393 time(&starttime);
···233233 XDrawSegments(X.dpy,X.win,X.gc,segments,num_segments);
234234 XSync(X.dpy,0);
235235 totaltime = end_timer();
236236-236236+237237 snprintf(buf,sizeof buf,"%d segments in %.3f seconds.",num_segments,
238238 (double)totaltime/1000000.);
239239 show_result(buf);
···249249 long totaltime;
250250 char buf[80];
251251 int i;
252252-252252+253253 num_points *= X.percent;
254254255255 points = (XPoint *) malloc(sizeof(XPoint) * num_points);
···586586 XClearWindow(X.dpy,X.win);
587587588588 print_if_recording("run\n");
589589-589589+590590 switch (X.test) {
591591 case CopyArea: copyarea_test(); break;
592592 case CopyPlane: copyplane_test(); break;
+3-3
app/xgc/text.c
···9898 /* label uses type to find out what its title is */
9999 label = XtCreateManagedWidget(labels[type],labelWidgetClass,w,
100100 labelargs,XtNumber(labelargs));
101101-101101+102102 /* text uses type to find out what its string is */
103103 switch (type) {
104104 case TForeground:
105105- snprintf(textstrings[type],sizeof textstrings[type],
105105+ snprintf(textstrings[type],sizeof textstrings[type],
106106 "%d",(int) X.gcv.foreground);
107107 snprintf(oldtextstrings[type],sizeof oldtextstrings[type],
108108 "%d",(int) X.gcv.foreground);
···153153 }
154154 if (strcmp(textstrings[type],oldtextstrings[type])) {
155155 strcpy(oldtextstrings[type],textstrings[type]);
156156- snprintf(mbuf,sizeof mbuf,"%s%s\n",
156156+ snprintf(mbuf,sizeof mbuf,"%s%s\n",
157157 names[type], /* the right first half */
158158 textstrings[type]); /* the right second half */
159159 interpret(mbuf); /* send it off */
+1-1
app/xgc/xgc.h
···3636 char name[40]; /* name as it will appear on the screen */
3737 char text[40]; /* Xgc command it translates to */
3838 } command_data[MAXCHOICES];
3939-} ChoiceStuff; /* All the info needed to deal with a
3939+} ChoiceStuff; /* All the info needed to deal with a
4040 choice widget */
4141typedef struct {
4242 const char *name;