summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-28Remove old files.HEADmasterMatt Dew23-28533/+0
2011-12-28Initial docbook conversion.Matt Dew25-24/+39888
2011-10-07Add const attributes to TMparse typedefs to fix gcc -Wwrite-strings warningsAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Add const attributes to slashDotXdefaults to fix gcc -Wwrite-strings warningsAlan Coopersmith1-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Make implementation_default_path return const char *Alan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Make gravity strings const to fix gcc -Wwrite-strings warningsAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Convert ISOLatin1 functions to specify args as const char *Alan Coopersmith1-8/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-07Whitespace changes related to cleaning up previous patchJeremy Huddleston1-14/+12
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-07Don't pop elements from our array while we're itterating through it.Jeremy Huddleston1-2/+5
https://bugs.freedesktop.org/show_bug.cgi?id=22543 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-03makestrs: Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith1-12/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Bug 40577 - Missing bound checking in FreeSelectionProperty()Olivier Fourdan1-1/+4
https://bugs.freedesktop.org/show_bug.cgi?id=40577 FreeSelectionProperty() did not check for the count of items in array and relied on a NULL terminated list, which can cause libXt to crash if FreeSelectionProperty() follows a call to GetSelectionProperty() which reallocates the array. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-10-03Strip trailing whitespaceAlan Coopersmith169-2453/+2453
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-10-02LP64 fix for TypedArgToArg()Jeremy Huddleston1-0/+2
https://bugs.freedesktop.org/show_bug.cgi?id=12662 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-20Only link with ws2_32 for mingw targetJon TURNEY1-1/+8
For the Cygwin target, we will be using the socket functions provided by the Cygwin DLL, so linking with ws2_32 is unnecessary, even though it may be present. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Cyril Brulebois <kibi@debian.org Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-24Update README for documentation referenceGaetan Nadon1-1/+2
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Cyril Brulebois <kibi@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-18Add test case for XtCvtIntToPixmap fix in commit 16d9941f3aa38Alan Coopersmith3-1/+85
Expanded from original Sun test case for Solaris bug 4163152. Verified that with commit 16d9941f3aa38 reverted, this test case fails on amd64, with it present, this test case passes. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-18Add test case for XtAppMainLoop bug 34715Alan Coopersmith2-1/+92
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-18Add test framework similar to xserver and use it to test XtAsprintfAlan Coopersmith5-4/+154
Only two simple test cases to start with: - compares the results of snprintf of a short string to a static buffer with the new buffer returned by XtAsprintf. - compare the results of using XtAsprintf to replicate a portion of a very long string with the original string. Uses malloc debugging flags for various platforms to try to catch errors with uninitialized memory (such as the recently fixed failure to terminate the string). Requires xorg-macros 1.13 for XORG_ENABLE_UNIT_TESTS and XORG_WITH_GLIB. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-14Bug 34715: XtAppMainLoop doesn't work without a DisplayJordan Hayes1-7/+1
https://bugs.freedesktop.org/show_bug.cgi?id=34715 XtAppNextEvent() doesn't return until there's an actual XEvent to be handled; it handles Xt-internal events (inputs, timers, signals) itself, but doesn't return (because of course, those aren't XEvents). Which means that the exit flag doesn't get a chance to break the loop until/unless there's an actual XEvent. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-10Bump to 1.1.1Julien Cristau1-1/+1
Signed-off-by: Julien Cristau <jcristau@debian.org>
2011-03-09XtAsprintf: Fix memory corruption.Cyril Brulebois1-1/+1
Don't write the null terminator to a random place, this can trigger some segfault in XtOpenDisplay() and other annoyances. Debian Bug #617208 <http://bugs.debian.org/617208> Signed-off-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-03-08man: replace hard coded section number 3Xt with __libmansuffix__ #35050Gaetan Nadon55-87/+87
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512130 The Xt manpages are installed in section 3 (and not 3Xt as upstream would have it). But, internal cross-references (in particular, in the SEE ALSO part) are left alone, and keep pointing at Foo(3Xt). The result is that they can't be automatically followed from manpage sanitizers such as dwww or emacs. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-06Don't need to use target-specific CFLAGS for makestrsAlan Coopersmith2-4/+1
It's the only thing built in that directory, so we can use AM_CFLAGS and drop the requirement for AM_PROG_CC_C_O in configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Tested-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-06Incorrect cast in XtCvtIntToPixmap could cause bus error on 64-bit machinesAlan Coopersmith1-1/+1
Originally fixed by Leo Binchy for Sun Bug 4163152 to resolve bus error on VSW5 (XTS) testing on 64-bit SPARC test run on Solaris 7. ( Testcase: XtCvtIntToPixmap, Purpose: 1) Since we're converting from Int to Pixmap, need to access the argument passed in as an int, not a Pixmap, which is consistent with the other IntToXXX converters in this file. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-03-04configure: Bump version to 1.1.0 for releaseJeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-03-04darwin: Don't use poll() when expected to run on darwin10 and priorJeremy Huddleston1-4/+18
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-02-04Shell.c: TopLevelSetValues ignores iconic state if shell not yet realizedAlan Coopersmith1-0/+4
Fix originally created by Leo Binchy for Sun to fix Solaris bug 1243761 The XmNiconic resource doesn't work Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-02-04GetResources: protect against underflow when type conversion failsAlan Coopersmith1-1/+1
Fix originally created by Leo Binchy for Sun to fix Solaris bug 1211553: XtVaCreateManagedWidget with list of resources XtVaTypedArg cause core dump Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-02-04Remove unused #ifdef UNALIGNED version of Xt macros & functionsAlan Coopersmith2-120/+0
Trying to outsmart the compiler and libc is a losing battle, but since UNALIGNED was never defined, we weren't even trying. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-02-03config: comment, minor upgrade, quote and layout configure.acGaetan Nadon1-39/+42
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. Add AC_CONFIG_SRCDIR([Makefile.am]) This helps automated maintenance and release activities. Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines
2011-01-28config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon1-3/+3
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12Convert ALLOCATE_LOCAL + sprintf to XtAsprintfAlan Coopersmith1-15/+10
Now that we don't need to separately strlen the format string, put it directly into the function call to clear gcc warnings of: Initialize.c:397: warning: format not a string literal, argument types not checked Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-12Convert ResConfig.c to use XtAsprintf() instead of XtMalloc + sprintfAlan Coopersmith1-31/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-12Add XtAsprintf() as a new exported APIAlan Coopersmith7-4/+72
Like asprintf() but using XtMalloc() to tie into the Xt memory allocation and error handling subsystems. Bumps libXt version to 1.0.99.1 so that modules can set their pkg-config dependency to libXt >= 1.0.99.1 to require XtAsprintf(). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-12-22Convert some sprintf calls to snprintfAlan Coopersmith2-3/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
2010-12-05config: AC_PROG_CC is provided by XORG_DEFAULT_OPTIONS nowAlan Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-12-05config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-4/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-12-05Remove ancient #if defined(macII) hack for A/UX from makestrs.cAlan Coopersmith1-3/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-12-05Remove non-USE_SNPRINTF case from src/Error.cAlan Coopersmith2-18/+2
unifdef -DUSE_SNPRINTF src/Error.c Plus manual removal of old #ifdef notyet section that said not enough platforms had snprintf support yet. Welcome to the new millenium! Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-10remove strcmp in src/ResConfig.cwalter harms1-1/+1
Make remainder check like in the rest of code and replace strcmp() Signed-off-by: walter harms <wharms@bfs.de> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-10QueryEventMask: fix NULL checkwalter harms1-11/+15
_XtGetPerWidgetInput may return NULL avoid possible NULL references Signed-off-by: walter harms <wharms@bfs.de> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-10src/Resource.c: Fix possible NULL accesswalter harms1-2/+4
Signed-off-by: walter harms <wharms@bfs.de> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-10XtFree() can handle NULL , remove checkwalter harms1-3/+2
Signed-off-by: walter harms <wharms@bfs.de> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-28libXt 1.0.9Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins200-712/+2
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-05makestrs: Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONSGaetan Nadon1-7/+1
The value of MAN_SUBST is the same for all X.Org packages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05makestrs: Use $(SED) from AC_PROG_SED supplied by XORG_DEFAULT_OPTIONSGaetan Nadon1-2/+0
Use the appropriate platform version of sed Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05makestrs: remove unsed $(appman_DATA)Gaetan Nadon1-1/+1
Man page is not installed, this variable is not defined. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-05Honor that GetClassActions() may return NULL.walter harms1-3/+5
Signed-off-by: Walter <wharms@bfs.de> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-23Sun's copyrights belong to Oracle nowAlan Coopersmith45-45/+45
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>