summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-11docs: remove <productnumber> which is not used by defaultGaetan Nadon2-2/+0
This element is not rendered by default on the title. A template customization is required to display it. X Window System does not have a product number. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11docs: use the &fullrelvers; entity to set X11 release informationGaetan Nadon1-2/+6
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11docs: remove orphan <affiliation>Gaetan Nadon1-2/+0
Somehow created during the conversion from roff. Unable to locate the author to which it belongs. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11docs: remove <productnumber> which is not used by defaultGaetan Nadon1-1/+0
This element is not rendered by default on the title. A template customization is required to display it. X Window System does not have a product number. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-09docbook.am: embed css styles inside the HTML HEAD elementGaetan Nadon1-4/+0
Rather than referring to the external xorg.css stylesheet, embed the content of the file in the html output produced. This is accomplished by using version 1.10 of xorg-xhtml.xsl. This makes the whole html docs tree much more relocatable. In addition, it eliminates xorg.css as a runtime file which makes xorg-sgml-doctools a build time only package. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-09compose: upgrade makefile to support olinking on chunked htmlGaetan Nadon6-262/+176
The essential differences over the regular docbook.am are: Adding root.filename parameter for naming of chapters html files. Using xhtml xmlto format and xorg-chunk.xsl stylesheet Set olink.base.uri for pdf but not for chunked html Olink is not applicable to ps and txt formats. Html chapters are added to shelf_DATA as they are also installed. The xml is generated from a perl script and not distributed. Requires version 1.10 of xorg-sgml-doctools. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31docbook.am: refactor common flags for xmlto and xsltprocGaetan Nadon1-44/+62
Maximize reuse and reduce risk of setting the wrong flag at the wrong place. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-31docbook.am: add search path for local entitiesGaetan Nadon1-0/+5
Currently, only $(XORG_SGML_PATH)/X11 is searched for xml entities. A module may want to add entities that apply only to itself and not to all modules, like the xserver does. This feature may or may not be used in this module, but all modules share a copy of docbook.am. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-25docbook.am: explicitly list xmlto flags for each targetGaetan Nadon1-34/+38
Normal evolution of make targets make it impractical to factor out common command flags for xmlto. The targets now list each command option as its presence or absence needs to be justified. xorg.ss is only needed by xmlto for html. masterdb is only needed by xmlto. img.src.path must not be used by html. xsltproc need to use customization layer xorg-*.xsl. txt format is not required to search masterdb. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-25docbook.am: do not generate docs if docbook customization layer is missingGaetan Nadon1-7/+1
The stylesheets used to be only about style, fonts or colors. Complex features are now used like olink and chunked html which may cause a build break when stylesheets are missing or lead to hard to find problem. Some modules may be built when stylesheets are present while others are built without. There is no requirement to build crippled docs. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-19libX11 specs: review doclifter generated tablesGaetan Nadon9-274/+192
Many tables had a questionnable layout and some had information dropped. Each table was cross-referenced with a pre-docbook version to ensure semantic integrity. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-19credits.xml: remove toc from AcknowledgmentsGaetan Nadon1-8/+8
There should be no toc for a simple preface with only one Acknowledgments section. Use <simplesect> markup rather than sect1. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-19libX11 specs: move </para> above <varaiablelist>Gaetan Nadon15-463/+408
Many, but not all, function synopsis have a paragraph that nests the variable list. The code was generated by doclifter and there is no apprent reasons as to why it was done this way. Found while investigating a spacing issue. Before the patch: <para>Some blurb about the function <funcsynopsis> </funcsynopsis> <variablelist> </variablelist> </para> After the patch: <para>Some blurb about the function</para> <funcsynopsis> </funcsynopsis> <variablelist> </variablelist> There are no noticable differences when reading the doc other than than the removed few pixels of spacing between the function sysnopsis and the variable list block. In some cases, there are no "blurb about the fucntion" and the empty paragraph is removed. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-19compose specs: generate chunked htmlGaetan Nadon3-2/+104
For large 600 page documents such as this one, chunked html provide faster browser load time and better navigation. Simply click on the locale of your choice in the toc and the browser loads just that one file. Being a DocBook, it benefits from all of the usual features and can be integrated with the rest of the documentation. Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-05specs: build compose keys tables in specs/i18n/composeGaetan Nadon9-157/+148
Build the tables article together with the rest of the specs. Make it transparent that the source in generated in nls. Reuse docbook.am and get all the features such as olink. The docbook article file stem and id must be the same. The new name for the main article is libX11-keys. The new installation location is $docdir/libX11/i18n/compose. The nls dir retains the role of generating the DocBook/XML source but does not build neither installs output formats or generated source. The tables article now has to specify that each included locale section is a dependency. It did not matter before as they were web links. The xorg-sgml-doctools masterdb shall be updated to include this new doc. Install location moved from doc/libX11/Compose to doc/libX11/i18n/compose. Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-05nls: restructure charts as a single article with sectionsGaetan Nadon2-11/+11
Looks more like a real article with a toc rather than individual web pages. Looks nicer in pdf. Each locale is a "section" rather than an "article". Using XInclude to aggregate xml source files gets you the toc for free. The single document is over 600 pages while there were 62 separate documents previously. FOP version 1.0 is required to handle missing character like capital sharp s. Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-28libX11 1.4.4libX11-1.4.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-07-17Add id attributes to error codes to allow linking from other docs.Matt Dew1-17/+17
Signed-off-by: Matt Dew <marcoz@osource.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2011-07-14Fix libpthread linkage on OpenBSD.David Coppa1-2/+2
OpenBSD prefers to use the -pthread to fetch pthread libs when needed. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-28config: use XORG_WITH_PERL macro to replace custom program checkGaetan Nadon1-9/+1
New in version util-macros 1.15, the macro does the usual checking for program path and provides an interface for makefile variables. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-28config: update XORG_WITH_FOP macro usageGaetan Nadon1-4/+4
A new feature to test for a minimum version has been added. The parameter position changed. Due to limited usage and requiring 1.15, it turns out to be backward compatible. There is no functional change to how docs are build. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-22Remove unused xmlrules.in in specs, now in /nlsGaetan Nadon1-59/+0
The specs dir has been converted to docbook.am Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-15nls: move xmlrules.in from specs to nlsGaetan Nadon3-11/+65
It is no longer used in the specs dir. Remove html from CLEANFILES as it breaks. Make do not clean directories Remove SUFFIXES as pattern rules are used rather than suffix rules. Other improvements are possible, the first priority is to move it out of the specs dir. Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-11Install target dbs alongside generated documentsGaetan Nadon2-3/+3
This matches a change in xorg-sgml-docs whereby the masterdb will look for the target dbs into the same location as the generated documents. The target dbs are now installed alongside the generated documents. Previously they are installed in $prefix/sgml/X11/dbs alongside masterdb which has the potential of installing outside the package prefix and cause distcheck to fail when user does not have write permission in this package. Requires XORG_CHECK_SGML_DOCTOOLS(1.8) which was released 2011-06-11
2011-06-07specs/libX11: Turn appendix references into linksAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-07specs/libX11: Turn chapter references into linksAlan Coopersmith8-16/+26
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-07specs/libX11: Turn many "see section ..." into linksAlan Coopersmith16-76/+124
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-05specs/libX11: Convert some header filenames to filename tagsAlan Coopersmith3-20/+20
perl -i -p -e 's{^&lt;(.*\.h)&gt;\ *}{<filename class="headerfile">&lt;\1&gt;</filename>}' *.xml Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-04Add id attributes to funcsynopsis to allow other docs to olink to them.Matt Dew2-46/+46
Signed-off-by: Matt Dew <marcoz@osource.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-05-27Bug 37624 - parameter x is missing from synopsis of XDrawString in libX11.htmlAlan Coopersmith1-1/+2
https://bugs.freedesktop.org/show_bug.cgi?id=37624 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-24Add id's to functions, to make clickable links.Matt Dew16-584/+584
Signed-off-by: Matt Dew <marcoz@osource.org> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-05-20libX11 spec: fix monospaced column alignment after deligaturizationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-20Expand latin ligatures out to their NFKC equivalents.James Cloos7-15/+15
Ligatures should be done by the typesetting system. Manuscripts should not bother with them. Signed-off-by: James Cloos <cloos@jhcloos.com> Reviewed-by: Keith Packard <keithp@keithp.com>
2011-05-20XCB: Add more friendly error messages for common assertsDaniel Stone1-15/+81
This patch adds more friendly error messages for three common classes of assertion: - missed sequence numbers due to being griefed by another thread - unknown requests in queue due to being griefed by another thread - extensions dequeuing too much or too little reply data It adds error messages offering advice (e.g. call XInitThreads() first) on stderr, but still generates actual assertions. Hopefully this means it's a little more Googleable and a little less frightening. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-20Remove misplaced hyphens in libX11 DocBook/XML #37364Gaetan Nadon5-35/+34
Reported-by: Christopher Yeleighton <giecrilj@stegny.2a.pl> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-05-17Fix man page and comment references to use XFreeModifiermap (lowercase map)Alan Coopersmith4-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-17XKB man pages: Fix coordinantes typo in multiple pagesAlan Coopersmith5-5/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-17DisplayOfCCC.man: Fix typo "ClientWhitePointOfCC" -> "ClientWhitePointOfCCC"Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-08Silence clang static analysis warnings for SetReqLenJeremy Huddleston1-0/+5
This provides a simplified version of the SetReqLen macro when using clang for static analysis. Prior to this change, we would see many Idempotent operation warnings inside this macro due to the common case of calling with arg2 and arg3 being the same variable. This has no effect on code produced during compilation, but it silences a number of false positives in static analysis. XIPassiveGrab.c:170:5: warning: Assigned value is always the same as the existing value SetReqLen(req, num_modifiers, num_modifiers); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from XIPassiveGrab.c:26: .../include/X11/Xlibint.h:580:8: note: instantiated from: n = badlen; \ ^ Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-04XKB: XkbComputeSectionBounds: Check correct bounds in default switch-caseJeremy Huddleston1-1/+2
XKBGeom.c:191:25: warning: Access to field 'x1' results in a dereference of a null pointer (loaded from variable 'rbounds') _XkbCheckBounds(bounds,rbounds->x1,rbounds->y1); ^~~~~~~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-04Revert "XKB: Avoid a possible NULL dereference"Jeremy Huddleston1-2/+2
Sorry for the noise. I accidentally pushed and didn't mean to. =( This reverts commit 4024091678ea07e0d898b798df9b29f3bf68eb08.
2011-05-04Dead code removalJeremy Huddleston1-1/+0
XKBGeom.c:118:27: warning: Assigned value is always the same as the existing value for (key=row->keys,pos=k=0;k<row->num_keys;k++,key++) { ~~~^~~~ XKBGeom.c:115:5: warning: Value stored to 'pos' is never read pos= 0; ^ ~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-04XKB: Avoid a possible NULL dereferenceJeremy Huddleston1-2/+2
XKBGeom.c:191:25: warning: Access to field 'x1' results in a dereference of a null pointer (loaded from variable 'rbounds') _XkbCheckBounds(bounds,rbounds->x1,rbounds->y1); ^~~~~~~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-04Annotate _XIOError as _X_NORETURNJeremy Huddleston2-2/+2
Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-03clang analyzer: Don't warn about Xmalloc(0)Jeremy Huddleston1-1/+1
This will prevent a number of false positives in where clang's static analysis reports about calls to malloc(0). Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-22Delete special case code to append "/sparcv9" to i18n module pathAlan Coopersmith1-40/+0
Was triggered by defined(__sparcv9) so only built on Solaris SPARC 64-bit. Inconsistent with all other platforms, and a bit overcomplicated. Should anyone need to continue using that path, simply build with a #define POSTLOCALELIBDIR "sparcv9" to get the same result. Fixes Solaris bug 7038737: sparcv9 Xlib looking in wrong path for i18n loadable modules Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
2011-04-18specs/libX11: Fix XOpenDisplay() prototype in chapter 2 [bug 36244]Alan Coopersmith1-11/+6
Was incorrectly showing AllPlanes() instead when describing XOpenDisplay() https://bugs.freedesktop.org/show_bug.cgi?id=36244 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-04-18Convert malloc(strlen()); strcpy() sets to strdupAlan Coopersmith15-130/+59
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-18Replace Xmalloc+bzero pairs with Xcalloc callsAlan Coopersmith18-83/+39
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-13om: Fix memory leaks on get_font_name error paths.Ander Conselvan de Oliveira1-8/+6
While at it, remove unneeded check for NULL before Xfree. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>