summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-05-05Apply standard X.Org formatting & bracketing to StrToWidg.cAlan Coopersmith1-76/+74
Makes code easier for humans to read and gets rid of gcc warning: StrToWidg.c: In function ‘XmuCvtStringToWidget’: StrToWidg.c:107:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (widgetP = parent->core.popup_list; i; i--, widgetP++) ^~~ StrToWidg.c:114:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ XtStringConversionWarning(fromVal->addr, XtRWidget); ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-05-05Convert tabs to spaces in StrToWidg.cAlan Coopersmith1-53/+53
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-04-12Include <direct.h> for _getdrives() on Win32Jon TURNEY1-0/+1
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: David Macek <david.macek.0@gmail.com>
2015-03-23Remove pointless X_NOT_POSIXJon TURNEY1-2/+2
Both stdlib.h (only included for prototype of atoi()), and limits.h (only included for PATH_MAX) are in C89, so putting this under X_NOT_POSIX seems a little excessive. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-02ShapeEllipseOrRoundedRectangle: Check height AND width, not width twiceAlan Coopersmith1-1/+1
Fixed to match check in ShapeOval() https://bugs.freedesktop.org/show_bug.cgi?id=72245 Fixes cppcheck warning: [ShapeWidg.c:204]: (style) Same expression on both sides of '||'. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-22Remove SUNSHLIB support for SunOS 4.x shared librariesAlan Coopersmith4-77/+3
Never enabled in modular builds, was only enabled for SunOS 4.x in imake. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
2013-09-07libXmu 1.1.2libXmu-1.1.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-09-07Add missing copyright notices to COPYING fileAlan Coopersmith1-2/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-22Preserve constness when casting const pointers in various functionsAlan Coopersmith4-16/+20
Fixes gcc warnings: CrCmap.c: In function 'compare': CrCmap.c:499:18: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] CrCmap.c:499:32: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] LocBitmap.c: In function 'XmuLocatePixmapFile': LocBitmap.c:161:11: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] LocBitmap.c:178:11: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Lower.c: In function 'XmuCopyISOLatin1Lowered': Lower.c:65:46: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Lower.c: In function 'XmuCopyISOLatin1Uppered': Lower.c:77:46: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Lower.c: In function 'XmuCompareISOLatin1': Lower.c:89:13: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Lower.c:89:42: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Lower.c: In function 'XmuNCopyISOLatin1Lowered': Lower.c:104:50: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Lower.c: In function 'XmuNCopyISOLatin1Uppered': Lower.c:119:50: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] WidgetNode.c: In function 'compare_resource_entries': WidgetNode.c:89:21: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] WidgetNode.c:90:7: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-06Fix a const issue.Thomas Klausner1-1/+1
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-15autogen.sh: Implement GNOME Build APIColin Walters1-1/+3
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-15configure: Remove AM_MAINTAINER_MODEAdam Jackson1-1/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-04unifdef -U__UNIXOS2__Alan Coopersmith2-17/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-26Remove unused DECnet ("DNETCONN") code from XmuConvertStandardSelectionAlan Coopersmith1-15/+3
Has never been converted to build in modular builds, so has been unusable since X11R7.0 release in 2005. DNETCONN support was removed from xtrans back in 2008. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-05libXmu 1.1.1libXmu-1.1.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-10Fix gcc -Wwrite-strings warnings (some, not all)Alan Coopersmith5-33/+33
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-10Drop support for pre-ANSI-C89 preprocessorsAlan Coopersmith2-12/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-04Cleanup IDs and links in docMatt Dew1-81/+81
1 - fix the capitalization of the ID attributes to match either the <title> or <funcdef> string it goes with. 2 - fix any <linkend>'s that were affected by 1. 3 - any <function> in the docs that has an actual funcdef, will become an olink. Signed-off-by: Matt Dew <marcoz@osource.org>
2011-09-24Fix build with -DDEBUGJeremy Huddleston1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=1069 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-16Strip trailing whitespaceAlan Coopersmith55-244/+244
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-14docs: use appropriate markup for copyright statementGaetan Nadon1-3/+2
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-12docs: use the &fullrelvers; entity to set X11 release informationGaetan Nadon1-1/+5
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-08docbook.am: embed css styles inside the HTML HEAD elementGaetan Nadon1-2/+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-07docbook.am: global maintenance update - entities, images and olinkingGaetan Nadon1-54/+62
Adding support in libX11 for html chunking caused a reorg of docbook.am as well as the xorg-sgml-doctools masterdb for olinking. The parameter img.src.path is added for pdf images. A searchpath to the root builddir is added for local entities, if present. The docbook.am makefile hides all the details and is identical for all 22 modules having DocBook documentation. It is included by a thin Makefile.am which requires no docbook knowledge. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-07docbook pdf: add xsl parameter to locate imagesGaetan Nadon1-1/+3
Unlike html, pdf/ps requires a full path name to find images, but only needs it to make an internal copy of it at build time. The image can later be removed and the image still shows up in the pdf doc. This allows us to use the absolute builddir. This parameter must not be used for html which loads the image from disk at user read time. The image is removed from builddir after build is done, and we do not know where the image will be installed by the distro. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-08-07Xmu.xml: Change layout of the X Logo figureGaetan Nadon1-9/+7
The floating does not come up right, the figure caption is in the way. Move the figure out of the paragraph and below the text. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-12Install xml versions of specs even if HAVE_XMLTO is falseGaetan Nadon2-2/+2
DocBook/XML input source is also a usefull output format that can be viewed with an XML viewer or editor and by some O/S help system. 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-04Add id attributes to funcsynopsis to allow other docs to olink to them.Matt Dew1-6/+6
Signed-off-by: Matt Dew <marcoz@osource.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-30Documentation: add Docbook external references supportGaetan Nadon4-56/+110
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>
2011-02-10Make EditresCom.c identation a lot less randomAlan Coopersmith1-572/+574
2 spaces! No 4! 2! 3! No, Blue! Red! Aughughurglrgll... Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-02-02config: remove config test for snprintfGaetan Nadon2-24/+0
The macro HAS_SNPRINTF is hard coded to always be defined. If it were not defined, Lower.c would include snprintf.c which does not exist. Seems to be relics from IMakefile Other modules are using snprintf unconditionally. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-02-02config: comment, minor upgrade, quote and layout configure.acGaetan Nadon1-24/+18
Group statements per section as per Autoconf standard layout Quote statements where appropriate. Autoconf recommends not using dnl instead of # for comments Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters. This helps automated maintenance and release activities. Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-28config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-28config: remove unrequired AC_CONFIG_AUX_DIRGaetan Nadon1-1/+0
The default location for the generation of configuation files is the current package root directory. These files are config.* and friends. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-12-05XmuCvtStringToCursor: sprintf -> snprintf & check for XtMalloc failureAlan Coopersmith1-10/+14
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09config: HTML file generation: use the installed copy of xorg.cssGaetan Nadon2-7/+4
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>
2010-10-29libXmu 1.1.0libXmu-1.1.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-28Remove unnecessary calls from configure.acAlan Coopersmith1-6/+0
AC_PROG_CC is handled by XORG_DEFAULT_OPTIONS AC_SUBST of *_LIBS & *_CFLAGS are handled by PKG_CHECK_MODULES Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins68-210/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-08-03specs: xsl stylesheet requires abs path to imagesGaetan Nadon1-1/+1
Using abs_builddir requires automake 1.10 or later. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-08Purge macro NEED_EVENTSFernando Carrijo1-1/+0
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-25config: use HAVE_XMLTO_TEXT from XORG_WITH_XMLTOGaetan Nadon1-1/+5
Skip text format when XMLTO dependencies for text format are missing (lynx, links or w3m) Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-25config: use HAVE_STYLESHEET now defined in XORG_CHECK_SGML_DOCTOOLSGaetan Nadon2-7/+3
Also use STYLESHEET_SRCDIR XSL_STYLESHEET This requires version 1.10 of util-macros Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-25config: move docs ignore from toplevel .gitignore to /docGaetan Nadon2-6/+8
Also add missing *.css Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-23Add xorg.css to CLEANFILES to pass make distcheckAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-19Use shared stylesheets from xorg-sgml-doctools instead of a private copyAlan Coopersmith4-126/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>