···11+commit f77165c819b05af27d9878efe8526a157f569b1a
22+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
33+Date: Sun Dec 4 15:17:26 2022 -0800
44+55+ libXres 1.2.2
66+77+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
88+99+commit bed46b55c06a3488971fda8271cf9fc0e3dd84d5
1010+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
1111+Date: Sun Nov 20 11:07:30 2022 -0800
1212+1313+ Use calloc instead of malloc to allocate arrays
1414+1515+ Makes code more consistent with other functions in this library
1616+ which already do this and adds extra protection against overflows
1717+ or failures to properly fill in values.
1818+1919+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020+2121+commit c71236d5ae587f6a673a8bf1b6fd5de64a3ba78c
2222+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
2323+Date: Sun Nov 20 11:03:55 2022 -0800
2424+2525+ Handle implicit conversion warnings from clang
2626+2727+ Clears 6 -Wimplicit-int-conversion, 6 -Wshorten-64-to-32, and
2828+ 7 -Wsign-conversion warnings.
2929+3030+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
3131+3232+commit 9e0db673a7869861eeb6eccbc8270a019f4aacd1
3333+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
3434+Date: Sun Nov 20 10:31:39 2022 -0800
3535+3636+ Resolve -Wsign-compare warnings from gcc
3737+3838+ XRes.c: In function ‘XResQueryClients’:
3939+ XRes.c:121:31: warning: comparison between signed and unsigned integer
4040+ expressions [-Wsign-compare]
4141+ for (int i = 0; i < rep.num_clients; i++) {
4242+ ^
4343+ XRes.c: In function ‘XResQueryClientResources’:
4444+ XRes.c:176:31: warning: comparison between signed and unsigned integer
4545+ expressions [-Wsign-compare]
4646+ for (int i = 0; i < rep.num_types; i++) {
4747+ ^
4848+4949+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5050+5151+commit a43105c0da6613798437afaa531c2a576f8efc99
5252+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
5353+Date: Sun Nov 20 10:30:10 2022 -0800
5454+5555+ Variable scope reductions
5656+5757+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
5858+5959+commit b1fb8150d6adac3b564575dec470a740457f66dc
6060+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
6161+Date: Sun Nov 20 10:20:59 2022 -0800
6262+6363+ Add .git-blame-ignore-revs to hide whitespace commits from git blame
6464+6565+ To use this in your local repo clone, you will need to either run
6666+ `git blame --ignore-revs-file .git-blame-ignore-revs`
6767+ or set it permanently with
6868+ `git config blame.ignoreRevsFile .git-blame-ignore-revs`
6969+7070+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7171+7272+commit fa5642244aa4b0882b8604d1e693d31882a7adda
7373+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
7474+Date: Sun Nov 20 09:25:13 2022 -0800
7575+7676+ Reformat code to X.Org standard style
7777+7878+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7979+8080+commit 7bb6561cb44ce8f38615d2436dae89e7ca9a773b
8181+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
8282+Date: Sun Jul 17 17:44:40 2022 -0700
8383+8484+ gitlab CI: add a basic build test
8585+8686+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
8787+8888+commit 090026087de8961a7c49145f347e65afa1bbcb9b
8989+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
9090+Date: Sun Jul 17 17:43:50 2022 -0700
9191+9292+ Fix spelling/wording issues
9393+9494+ Found by using:
9595+ codespell --builtin clear,rare,usage,informal,code,names
9696+9797+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
9898+9999+commit d5031be051ea7c969e7fdf5885235ae56825b697
100100+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
101101+Date: Sun Jul 17 17:43:25 2022 -0700
102102+103103+ Build xz tarballs instead of bzip2
104104+105105+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
106106+1107commit c05c6d918b0e2011d4bfa370c321482e34630b17
2108Author: Keith Packard <keithp@keithp.com>
3109Date: Tue Mar 30 21:36:16 2021 -0700
···214320 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
215321216322commit 01fc6f81f0a2935741dd1114aa3fa267d8be9095
217217-Author: Erkki Seppälä <erkki.seppala@vincit.fi>
323323+Author: Erkki Seppälä < <erkki.seppala@vincit.fi>
218324Date: Wed Dec 15 13:48:09 2010 +0200
219325220326 Implemented second part of XResource extension v1.2: XResQueryResourceBytes
···225331 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
226332227333commit 0f38938a27df1f865dcdda35f4d2ef191092ba42
228228-Author: Erkki Seppälä <erkki.seppala@vincit.fi>
334334+Author: Erkki Seppälä < <erkki.seppala@vincit.fi>
229335Date: Mon Nov 29 12:43:51 2010 +0200
230336231337 Implemented first part of XResource extension v1.2: XResQueryClientIds
···731837 Add .cvsignore files Switch _la_CFLAGS for AM_CFLAGS to clean up directory
732838733839commit c1ed34d39740625d52eca7f2c5bf5c6797f28097
734734-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
840840+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
735841Date: Wed Jun 22 22:46:38 2005 +0000
736842737843 Apply these patches from Theo van Klaveren:
···740846 to make the libraries distcheck.
741847742848commit 2dbb8e41c6accaf9d86f3fdadfed5aea330da1fd
743743-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
849849+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
744850Date: Tue Jun 14 17:31:59 2005 +0000
745851746852 XRes/src/Makefile.am: Add $(top_srcdir)/include to INCLUDES
747853748854commit a30727351e6cdeb7ff2ffa0bddad8c3a1be9eda0
749749-Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
855855+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
750856Date: Tue Jun 7 18:51:23 2005 +0000
751857752858 - symlink.sh: Move XRes.h from proto/Resource to
···5566 https://lists.x.org/mailman/listinfo/xorg
7788-The master development code repository can be found at:
88+The primary development code repository can be found at:
991010 https://gitlab.freedesktop.org/xorg/lib/libXRes
1111
+44-24
lib/libXRes/aclocal.m4
···9905990599069906dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
99079907dnl
99089908-dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
99089908+dnl Copyright (c) 2005, 2023, Oracle and/or its affiliates.
99099909dnl
99109910dnl Permission is hereby granted, free of charge, to any person obtaining a
99119911dnl copy of this software and associated documentation files (the "Software"),
···99429942# See the "minimum version" comment for each macro you use to see what
99439943# version you require.
99449944m4_defun([XORG_MACROS_VERSION],[
99459945-m4_define([vers_have], [1.19.2])
99459945+m4_define([vers_have], [1.20.0])
99469946m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
99479947m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
99489948m4_if(m4_cmp(maj_have, maj_needed), 0,,
···99639963# such as man pages and config files
99649964AC_DEFUN([XORG_PROG_RAWCPP],[
99659965AC_REQUIRE([AC_PROG_CPP])
99669966-AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
99669966+AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}],
99679967 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
9968996899699969# Check for flag to avoid builtin definitions - assumes unix is predefined,
···1027310273# Documentation tools are not always available on all platforms and sometimes
1027410274# not at the appropriate level. This macro enables a module to test for the
1027510275# presence of the tool and obtain it's path in separate variables. Coupled with
1027610276-# the --with-xmlto option, it allows maximum flexibilty in making decisions
1027610276+# the --with-xmlto option, it allows maximum flexibility in making decisions
1027710277# as whether or not to use the xmlto package. When DEFAULT is not specified,
1027810278# --with-xmlto assumes 'auto'.
1027910279#
···1048710487# Documentation tools are not always available on all platforms and sometimes
1048810488# not at the appropriate level. This macro enables a module to test for the
1048910489# presence of the tool and obtain it's path in separate variables. Coupled with
1049010490-# the --with-asciidoc option, it allows maximum flexibilty in making decisions
1049010490+# the --with-asciidoc option, it allows maximum flexibility in making decisions
1049110491# as whether or not to use the asciidoc package. When DEFAULT is not specified,
1049210492# --with-asciidoc assumes 'auto'.
1049310493#
···1055710557# Documentation tools are not always available on all platforms and sometimes
1055810558# not at the appropriate level. This macro enables a module to test for the
1055910559# presence of the tool and obtain it's path in separate variables. Coupled with
1056010560-# the --with-doxygen option, it allows maximum flexibilty in making decisions
1056010560+# the --with-doxygen option, it allows maximum flexibility in making decisions
1056110561# as whether or not to use the doxygen package. When DEFAULT is not specified,
1056210562# --with-doxygen assumes 'auto'.
1056310563#
···1064110641# Documentation tools are not always available on all platforms and sometimes
1064210642# not at the appropriate level. This macro enables a module to test for the
1064310643# presence of the tool and obtain it's path in separate variables. Coupled with
1064410644-# the --with-groff option, it allows maximum flexibilty in making decisions
1064410644+# the --with-groff option, it allows maximum flexibility in making decisions
1064510645# as whether or not to use the groff package. When DEFAULT is not specified,
1064610646# --with-groff assumes 'auto'.
1064710647#
···1074910749# Documentation tools are not always available on all platforms and sometimes
1075010750# not at the appropriate level. This macro enables a module to test for the
1075110751# presence of the tool and obtain it's path in separate variables. Coupled with
1075210752-# the --with-fop option, it allows maximum flexibilty in making decisions
1075210752+# the --with-fop option, it allows maximum flexibility in making decisions
1075310753# as whether or not to use the fop package. When DEFAULT is not specified,
1075410754# --with-fop assumes 'auto'.
1075510755#
···1084310843# Documentation tools are not always available on all platforms and sometimes
1084410844# not at the appropriate level. This macro enables a module to test for the
1084510845# presence of the tool and obtain it's path in separate variables. Coupled with
1084610846-# the --with-ps2pdf option, it allows maximum flexibilty in making decisions
1084610846+# the --with-ps2pdf option, it allows maximum flexibility in making decisions
1084710847# as whether or not to use the ps2pdf package. When DEFAULT is not specified,
1084810848# --with-ps2pdf assumes 'auto'.
1084910849#
···1089810898# not at the appropriate level. This macro enables a builder to skip all
1089910899# documentation targets except traditional man pages.
1090010900# Combined with the specific tool checking macros XORG_WITH_*, it provides
1090110901-# maximum flexibilty in controlling documentation building.
1090110901+# maximum flexibility in controlling documentation building.
1090210902# Refer to:
1090310903# XORG_WITH_XMLTO --with-xmlto
1090410904# XORG_WITH_ASCIIDOC --with-asciidoc
···1093110931#
1093210932# This macro enables a builder to skip all developer documentation.
1093310933# Combined with the specific tool checking macros XORG_WITH_*, it provides
1093410934-# maximum flexibilty in controlling documentation building.
1093410934+# maximum flexibility in controlling documentation building.
1093510935# Refer to:
1093610936# XORG_WITH_XMLTO --with-xmlto
1093710937# XORG_WITH_ASCIIDOC --with-asciidoc
···1096410964#
1096510965# This macro enables a builder to skip all functional specification targets.
1096610966# Combined with the specific tool checking macros XORG_WITH_*, it provides
1096710967-# maximum flexibilty in controlling documentation building.
1096710967+# maximum flexibility in controlling documentation building.
1096810968# Refer to:
1096910969# XORG_WITH_XMLTO --with-xmlto
1097010970# XORG_WITH_ASCIIDOC --with-asciidoc
···1143911439AC_DEFUN([XORG_COMPILER_BRAND], [
1144011440AC_LANG_CASE(
1144111441 [C], [
1144211442- AC_REQUIRE([AC_PROG_CC_C99])
1144211442+ dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC
1144311443+ dnl and complains that AC_PROG_CC_C99 is obsolete
1144411444+ m4_version_prereq([2.70],
1144511445+ [AC_REQUIRE([AC_PROG_CC])],
1144611446+ [AC_REQUIRE([AC_PROG_CC_C99])])
1144311447 ],
1144411448 [C++], [
1144511449 AC_REQUIRE([AC_PROG_CXX])
···1145511459# Minimum version: 1.16.0
1145611460#
1145711461# Test if the compiler works when passed the given flag as a command line argument.
1145811458-# If it succeeds, the flag is appeneded to the given variable. If not, it tries the
1146211462+# If it succeeds, the flag is appended to the given variable. If not, it tries the
1145911463# next flag in the list until there are no more options.
1146011464#
1146111465# Note that this does not guarantee that the compiler supports the flag as some
···11471114751147211476AC_LANG_CASE(
1147311477 [C], [
1147411474- AC_REQUIRE([AC_PROG_CC_C99])
1147811478+ dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC
1147911479+ dnl and complains that AC_PROG_CC_C99 is obsolete
1148011480+ m4_version_prereq([2.70],
1148111481+ [AC_REQUIRE([AC_PROG_CC])],
1148211482+ [AC_REQUIRE([AC_PROG_CC_C99])])
1147511483 define([PREFIX], [C])
1147611484 define([CACHE_PREFIX], [cc])
1147711485 define([COMPILER], [$CC])
···1160211610XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
1160311611XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
1160411612XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
1160511605-# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
1161311613+XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
1160611614XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
11607116151160811616# These are currently disabled because they are noisy. They will be enabled
···1161211620# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
1161311621# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
11614116221161511615-# Turn some warnings into errors, so we don't accidently get successful builds
1162311623+# Turn some warnings into errors, so we don't accidentally get successful builds
1161611624# when there are problems that should be fixed.
11617116251161811626if test "x$SELECTIVE_WERROR" = "xyes" ; then
···1172111729AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS]))
1172211730]) # XORG_STRICT_OPTION
11723117311173211732+# XORG_DEFAULT_NOCODE_OPTIONS
1173311733+# ---------------------------
1173411734+# Minimum version: 1.20.0
1173511735+#
1173611736+# Defines default options for X.Org modules which don't compile code,
1173711737+# such as fonts, bitmaps, cursors, and docs.
1173811738+#
1173911739+AC_DEFUN([XORG_DEFAULT_NOCODE_OPTIONS], [
1174011740+AC_REQUIRE([AC_PROG_INSTALL])
1174111741+XORG_RELEASE_VERSION
1174211742+XORG_CHANGELOG
1174311743+XORG_INSTALL
1174411744+XORG_MANPAGE_SECTIONS
1174511745+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
1174611746+ [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
1174711747+]) # XORG_DEFAULT_NOCODE_OPTIONS
1174811748+1172411749# XORG_DEFAULT_OPTIONS
1172511750# --------------------
1172611751# Minimum version: 1.3.0
1172711752#
1172811728-# Defines default options for X.Org modules.
1175311753+# Defines default options for X.Org modules which compile code.
1172911754#
1173011755AC_DEFUN([XORG_DEFAULT_OPTIONS], [
1173111756AC_REQUIRE([AC_PROG_INSTALL])
1173211757XORG_COMPILER_FLAGS
1173311758XORG_CWARNFLAGS
1173411759XORG_STRICT_OPTION
1173511735-XORG_RELEASE_VERSION
1173611736-XORG_CHANGELOG
1173711737-XORG_INSTALL
1173811738-XORG_MANPAGE_SECTIONS
1173911739-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
1174011740- [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
1176011760+XORG_DEFAULT_NOCODE_OPTIONS
1174111761]) # XORG_DEFAULT_OPTIONS
11742117621174311763# XORG_INSTALL()
+1-1
lib/libXRes/compile
···3344scriptversion=2018-03-07.03; # UTC
5566-# Copyright (C) 1999-2020 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
+138-18
lib/libXRes/configure
···11#! /bin/sh
22# Guess values for system-dependent variables and create Makefiles.
33-# Generated by GNU Autoconf 2.69 for libXres 1.2.1.
33+# Generated by GNU Autoconf 2.69 for libXres 1.2.2.
44#
55-# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXRes/issues>.
55+# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>.
66#
77#
88# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
···275275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276276 else
277277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278278-$0: https://gitlab.freedesktop.org/xorg/lib/libXRes/issues
278278+$0: https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues
279279$0: about your system, including any error possibly output
280280$0: before this message. Then install a modern shell, or
281281$0: manually run the script under such a shell if you do
···591591# Identity of this package.
592592PACKAGE_NAME='libXres'
593593PACKAGE_TARNAME='libXres'
594594-PACKAGE_VERSION='1.2.1'
595595-PACKAGE_STRING='libXres 1.2.1'
596596-PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXRes/issues'
594594+PACKAGE_VERSION='1.2.2'
595595+PACKAGE_STRING='libXres 1.2.2'
596596+PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues'
597597PACKAGE_URL=''
598598599599ac_unique_file="Makefile.am"
···13611361 # Omit some internal or obsolete options to make the list less imposing.
13621362 # This message is too long to be a string in the A/UX 3.1 sh.
13631363 cat <<_ACEOF
13641364-\`configure' configures libXres 1.2.1 to adapt to many kinds of systems.
13641364+\`configure' configures libXres 1.2.2 to adapt to many kinds of systems.
1365136513661366Usage: $0 [OPTION]... [VAR=VALUE]...
13671367···1432143214331433if test -n "$ac_init_help"; then
14341434 case $ac_init_help in
14351435- short | recursive ) echo "Configuration of libXres 1.2.1:";;
14351435+ short | recursive ) echo "Configuration of libXres 1.2.2:";;
14361436 esac
14371437 cat <<\_ACEOF
14381438···14921492Use these variables to override the choices made by `configure' or to help
14931493it to find libraries and programs with nonstandard names/locations.
1494149414951495-Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXRes/issues>.
14951495+Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>.
14961496_ACEOF
14971497ac_status=$?
14981498fi
···15551555test -n "$ac_init_help" && exit $ac_status
15561556if $ac_init_version; then
15571557 cat <<\_ACEOF
15581558-libXres configure 1.2.1
15581558+libXres configure 1.2.2
15591559generated by GNU Autoconf 2.69
1560156015611561Copyright (C) 2012 Free Software Foundation, Inc.
···18791879This file contains any messages produced by compilers while
18801880running configure, to aid debugging if configure makes a mistake.
1881188118821882-It was created by libXres $as_me 1.2.1, which was
18821882+It was created by libXres $as_me 1.2.2, which was
18831883generated by GNU Autoconf 2.69. Invocation command line was
1884188418851885 $ $0 $@
···2708270827092709# Define the identity of the package.
27102710 PACKAGE='libXres'
27112711- VERSION='1.2.1'
27112711+ VERSION='1.2.2'
271227122713271327142714cat >>confdefs.h <<_ACEOF
···1357113571 fi
135721357213573135731357413574-# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
1357413574+1357513575+1357613576+1357713577+1357813578+1357913579+1358013580+1358113581+1358213582+1358313583+1358413584+1358513585+1358613586+1358713587+xorg_testset_save_CFLAGS="$CFLAGS"
1358813588+1358913589+if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1359013590+ CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1359113591+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1359213592+$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1359313593+if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
1359413594+ $as_echo_n "(cached) " >&6
1359513595+else
1359613596+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1359713597+/* end confdefs.h. */
1359813598+int i;
1359913599+_ACEOF
1360013600+if ac_fn_c_try_compile "$LINENO"; then :
1360113601+ xorg_cv_cc_flag_unknown_warning_option=yes
1360213602+else
1360313603+ xorg_cv_cc_flag_unknown_warning_option=no
1360413604+fi
1360513605+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1360613606+fi
1360713607+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1360813608+$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1360913609+ xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1361013610+ CFLAGS="$xorg_testset_save_CFLAGS"
1361113611+fi
1361213612+1361313613+if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1361413614+ if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1361513615+ CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1361613616+ fi
1361713617+ CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1361813618+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1361913619+$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1362013620+if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1362113621+ $as_echo_n "(cached) " >&6
1362213622+else
1362313623+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1362413624+/* end confdefs.h. */
1362513625+int i;
1362613626+_ACEOF
1362713627+if ac_fn_c_try_compile "$LINENO"; then :
1362813628+ xorg_cv_cc_flag_unused_command_line_argument=yes
1362913629+else
1363013630+ xorg_cv_cc_flag_unused_command_line_argument=no
1363113631+fi
1363213632+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1363313633+fi
1363413634+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1363513635+$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1363613636+ xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1363713637+ CFLAGS="$xorg_testset_save_CFLAGS"
1363813638+fi
1363913639+1364013640+found="no"
1364113641+1364213642+ if test $found = "no" ; then
1364313643+ if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1364413644+ CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1364513645+ fi
1364613646+1364713647+ if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1364813648+ CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1364913649+ fi
1365013650+1365113651+ CFLAGS="$CFLAGS -Wredundant-decls"
1365213652+1365313653+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
1365413654+$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
1365513655+ cacheid=xorg_cv_cc_flag__Wredundant_decls
1365613656+ if eval \${$cacheid+:} false; then :
1365713657+ $as_echo_n "(cached) " >&6
1365813658+else
1365913659+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1366013660+/* end confdefs.h. */
1366113661+int i;
1366213662+int
1366313663+main ()
1366413664+{
1366513665+1366613666+ ;
1366713667+ return 0;
1366813668+}
1366913669+_ACEOF
1367013670+if ac_fn_c_try_link "$LINENO"; then :
1367113671+ eval $cacheid=yes
1367213672+else
1367313673+ eval $cacheid=no
1367413674+fi
1367513675+rm -f core conftest.err conftest.$ac_objext \
1367613676+ conftest$ac_exeext conftest.$ac_ext
1367713677+fi
1367813678+1367913679+1368013680+ CFLAGS="$xorg_testset_save_CFLAGS"
1368113681+1368213682+ eval supported=\$$cacheid
1368313683+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1368413684+$as_echo "$supported" >&6; }
1368513685+ if test "$supported" = "yes" ; then
1368613686+ BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
1368713687+ found="yes"
1368813688+ fi
1368913689+ fi
1369013690+1369113691+135751369213576136931357713694···1369813815# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
1369913816# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
13700138171370113701-# Turn some warnings into errors, so we don't accidently get successful builds
1381813818+# Turn some warnings into errors, so we don't accidentally get successful builds
1370213819# when there are problems that should be fixed.
13703138201370413821if test "x$SELECTIVE_WERROR" = "xyes" ; then
···1737017487173711748817372174891749017490+1749117491+1737317492cat >>confdefs.h <<_ACEOF
1737417493#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1737517494_ACEOF
···1757217691175731769217574176931769417694+1757517695# Check whether --enable-malloc0returnsnull was given.
1757617696if test "${enable_malloc0returnsnull+set}" = set; then :
1757717697 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
···1764317763176441776417645177651764617646-# Obtain compiler/linker options for depedencies
1776617766+# Obtain compiler/linker options for dependencies
17647177671764817768pkg_failed=no
1764917769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11 >= 1.6 xext xextproto resourceproto >= 1.2.0" >&5
···1827218392# report actual input values of CONFIG_FILES etc. instead of their
1827318393# values after options handling.
1827418394ac_log="
1827518275-This file was extended by libXres $as_me 1.2.1, which was
1839518395+This file was extended by libXres $as_me 1.2.2, which was
1827618396generated by GNU Autoconf 2.69. Invocation command line was
18277183971827818398 CONFIG_FILES = $CONFIG_FILES
···1833218452Configuration commands:
1833318453$config_commands
18334184541833518335-Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXRes/issues>."
1845518455+Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues>."
18336184561833718457_ACEOF
1833818458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1833918459ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1834018460ac_cs_version="\\
1834118341-libXres config.status 1.2.1
1846118461+libXres config.status 1.2.2
1834218462configured by $0, generated by GNU Autoconf 2.69,
1834318463 with options \\"\$ac_cs_config\\"
1834418464
+4-4
lib/libXRes/configure.ac
···2929# digit in the version number to track changes which don't affect the
3030# protocol, so XRes version l.n.m corresponds to protocol version l.n
3131#
3232-AC_INIT([libXres], [1.2.1],
3333- [https://gitlab.freedesktop.org/xorg/lib/libXRes/issues], [libXres])
3232+AC_INIT([libXres], [1.2.2],
3333+ [https://gitlab.freedesktop.org/xorg/lib/libxres/-/issues], [libXres])
3434AC_CONFIG_SRCDIR([Makefile.am])
3535AC_CONFIG_HEADERS([config.h])
36363737# Initialize Automake
3838-AM_INIT_AUTOMAKE([foreign dist-bzip2])
3838+AM_INIT_AUTOMAKE([foreign dist-xz])
39394040# Initialize libtool
4141AC_PROG_LIBTOOL
···4747XORG_DEFAULT_OPTIONS
4848XORG_CHECK_MALLOC_ZERO
49495050-# Obtain compiler/linker options for depedencies
5050+# Obtain compiler/linker options for dependencies
5151PKG_CHECK_MODULES(XRES, [x11 >= 1.6] xext xextproto [resourceproto >= 1.2.0])
52525353AC_CONFIG_FILES([Makefile
+66-66
lib/libXRes/include/X11/extensions/XRes.h
···1010/* v1.0 */
11111212typedef struct {
1313- XID resource_base;
1414- XID resource_mask;
1313+ XID resource_base;
1414+ XID resource_mask;
1515} XResClient;
16161717typedef struct {
1818- Atom resource_type;
1919- unsigned int count;
1818+ Atom resource_type;
1919+ unsigned int count;
2020} XResType;
21212222/* v1.2 */
23232424typedef enum {
2525- XRES_CLIENT_ID_XID,
2626- XRES_CLIENT_ID_PID,
2727- XRES_CLIENT_ID_NR
2525+ XRES_CLIENT_ID_XID,
2626+ XRES_CLIENT_ID_PID,
2727+ XRES_CLIENT_ID_NR
2828} XResClientIdType;
29293030typedef enum {
3131- XRES_CLIENT_ID_XID_MASK = 1 << XRES_CLIENT_ID_XID,
3232- XRES_CLIENT_ID_PID_MASK = 1 << XRES_CLIENT_ID_PID
3131+ XRES_CLIENT_ID_XID_MASK = 1 << XRES_CLIENT_ID_XID,
3232+ XRES_CLIENT_ID_PID_MASK = 1 << XRES_CLIENT_ID_PID
3333} XResClientIdMask;
34343535typedef struct {
3636- XID client;
3737- unsigned int mask;
3636+ XID client;
3737+ unsigned int mask;
3838} XResClientIdSpec;
39394040typedef struct {
4141- XResClientIdSpec spec;
4242- long length;
4343- void *value;
4141+ XResClientIdSpec spec;
4242+ long length;
4343+ void *value;
4444} XResClientIdValue;
45454646typedef struct {
4747- XID resource;
4848- Atom type;
4747+ XID resource;
4848+ Atom type;
4949} XResResourceIdSpec;
50505151typedef struct {
5252- XResResourceIdSpec spec;
5353- long bytes;
5454- long ref_count;
5555- long use_count;
5252+ XResResourceIdSpec spec;
5353+ long bytes;
5454+ long ref_count;
5555+ long use_count;
5656} XResResourceSizeSpec;
57575858typedef struct {
5959- XResResourceSizeSpec size;
6060- long num_cross_references;
6161- XResResourceSizeSpec *cross_references;
5959+ XResResourceSizeSpec size;
6060+ long num_cross_references;
6161+ XResResourceSizeSpec *cross_references;
6262} XResResourceSizeValue;
63636464_XFUNCPROTOBEGIN
65656666/* v1.0 */
67676868-Bool XResQueryExtension (
6969- Display *dpy,
7070- int *event_base_return,
7171- int *error_base_return
6868+Bool XResQueryExtension(
6969+ Display *dpy,
7070+ int *event_base_return,
7171+ int *error_base_return
7272);
73737474-Status XResQueryVersion (
7575- Display *dpy,
7676- int *major_version_return,
7777- int *minor_version_return
7474+Status XResQueryVersion(
7575+ Display *dpy,
7676+ int *major_version_return,
7777+ int *minor_version_return
7878);
79798080-Status XResQueryClients (
8181- Display *dpy,
8282- int *num_clients,
8383- XResClient **clients
8080+Status XResQueryClients(
8181+ Display *dpy,
8282+ int *num_clients,
8383+ XResClient **clients
8484);
85858686-Status XResQueryClientResources (
8787- Display *dpy,
8888- XID xid,
8989- int *num_types,
9090- XResType **types
8686+Status XResQueryClientResources(
8787+ Display *dpy,
8888+ XID xid,
8989+ int *num_types,
9090+ XResType **types
9191);
92929393-Status XResQueryClientPixmapBytes (
9494- Display *dpy,
9595- XID xid,
9696- unsigned long *bytes
9393+Status XResQueryClientPixmapBytes(
9494+ Display *dpy,
9595+ XID xid,
9696+ unsigned long *bytes
9797);
98989999/* v1.2 */
100100101101/* Returns an array of uint32_t values, not an array of long */
102102-Status XResQueryClientIds (
103103- Display *dpy,
104104- long num_specs,
105105- XResClientIdSpec *client_specs, /* in */
106106- long *num_ids, /* out */
107107- XResClientIdValue **client_ids /* out */
102102+Status XResQueryClientIds(
103103+ Display *dpy,
104104+ long num_specs,
105105+ XResClientIdSpec *client_specs, /* in */
106106+ long *num_ids, /* out */
107107+ XResClientIdValue **client_ids /* out */
108108);
109109110110-XResClientIdType XResGetClientIdType(XResClientIdValue* value);
110110+XResClientIdType XResGetClientIdType(XResClientIdValue *value);
111111112112/* return -1 if no pid associated to the value */
113113-pid_t XResGetClientPid(XResClientIdValue* value);
113113+pid_t XResGetClientPid(XResClientIdValue *value);
114114115115-void XResClientIdsDestroy (
116116- long num_ids,
117117- XResClientIdValue *client_ids
115115+void XResClientIdsDestroy(
116116+ long num_ids,
117117+ XResClientIdValue *client_ids
118118);
119119120120-Status XResQueryResourceBytes (
121121- Display *dpy,
122122- XID client,
123123- long num_specs,
124124- XResResourceIdSpec *resource_specs, /* in */
125125- long *num_sizes, /* out */
126126- XResResourceSizeValue **sizes /* out */
120120+Status XResQueryResourceBytes(
121121+ Display *dpy,
122122+ XID client,
123123+ long num_specs,
124124+ XResResourceIdSpec *resource_specs, /* in */
125125+ long *num_sizes, /* out */
126126+ XResResourceSizeValue **sizes /* out */
127127);
128128129129-void XResResourceSizeValuesDestroy (
130130- long num_sizes,
131131- XResResourceSizeValue *sizes
129129+void XResResourceSizeValuesDestroy(
130130+ long num_sizes,
131131+ XResResourceSizeValue *sizes
132132);
133133134134_XFUNCPROTOEND
135135136136-#endif /* _XRES_H */
136136+#endif /* _XRES_H */