the existing test:
defined(__STDC__) && (__STDC_VERSION__ - 0 >= 199901L) causes an
warning when building X stuff with gcc -Wundef. Other tests for
__STDC_VERSION__ in the X sources all use
defined(__STDC_VERSION__) && (__STDC_VERSION__ -0 >= 199901L)
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
When writing technical documentation, it is often necessary to cross
reference to other information. When that other information is not in the
current document, additional support is needed, namely <olink>.
A new feature with version 1.7 of xorg-sgml-doctools adds references to
other documents within or outside this package.
This patch adds technical support for this feature but does not change
the content of the documentation as seen by the end user.
Each book or article must generate a database containing the href
of sections that can be referred to from another document. This database
is installed in DATAROOTDIR/sgml/X11/dbs. There is a requirement that
the value of DATAROOTDIR for xorg-sgml-doctools and for the package
documentation is the same. This forms a virtual document tree.
This database is consulted by other documents while they are being generated
in order to fulfill the missing information for linking.
Refer to the xorg-sgml-doctools for further technical information.
Co-authored-by: Matt Dew <marcoz@osource.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Add #defines for Unicode Sinhala so that they can be used in the lk XKB
keyboard layout.
Signed-off-by: Harshula Jayasuriya <harshula@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Enabled on 2.3 and up, since that's where it's available according to
http://www.ohse.de/uwe/articles/gcc-attributes.html#func-format
Tested with gcc 3.4.3 on Solaris.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Started by taking list of event names and generating a list of perl
commands such as:
s{^\<emphasis role='bold'\>KeyPress\</emphasis\>}{<link linkend="events:KeyPress"><emphasis role='bold'>KeyPress</emphasis></link>}g;
and running that with perl -i -p /tmp/e.pl *.xml
Many of those changes were then manually reverted to avoid having
the same link appear multiple times in a paragraph or to avoid having
the definition sections link to themselves.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Started with a similar replace-regexp as the Requests chapter, but
with a lot more manual editing due to the sections with multiple
events grouped into a set.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Bulk of change performed with emacs replace-regexp:
<para id="requests:[^"]+">
<emphasis role='bold'>\([^<]+\)</emphasis>
<indexterm significance="preferred"><primary>[^<]+</primary></indexterm>
</para>
with:
</section>
<section id="requests:\1">
<title>\1</title>
<indexterm significance="preferred"><primary>\1</primary></indexterm>
Plus manual editing of the first & last section, and manual
conversion of GrabButton & GrabServer due to extra indexterm lines.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Cleans up the opening { of enum lists that the closing was handled
by commit 68bf1a7a0c
perl -i -p -e 's{^<emphasis([^>]*)>(\W+?\s+)}{$2<emphasis$1>}g' *.xml
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Workaround older Solaris releases using types from <sys/types.h> in
<sys/byteorder.h> and not including it directly.
(That was fixed in OpenSolaris/Solaris 11 as part of:
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4483139 )
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Acked-by: Pat Kane <pekane52@gmail.com>
Those keysyms will be used to report events from the hardware. Hardware
like the HP laptops emit 2 separate keycodes when the touchpad is enabled
or disabled. So we can catch those in user-space and display a popup.
https://bugs.freedesktop.org/show_bug.cgi?id=31300
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Currenlty the xorg.css file is copied in each location
where a DocBook/XML file resides. This produces about
70 copies in the $(docdir) install tree.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Try to avoid problems similar to those fixed in libX11
commit 511c4f6d29b2da4f71093feabcbb3913cb5d12a7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Many of the .IN tags seem to have been lost in translation before this.
Converted those still in comments with:
perl -i -p -e 's{\<\!-- \.IN "([^"]+)" "" "\@DEF\@" --\>}{<indexterm significance="preferred"><primary>$1</primary></indexterm>}' *.xml
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>