summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-18libXaw3d 1.6.3libXaw3d-1.6.3Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2018-03-24Avoid using dead pointer in _XawTextSetSelectionAlan Coopersmith
Reported by: https://bugs.freedesktop.org/show_bug.cgi?id=94375 Fix copied from 2D libXaw commit 11c3a104141e1a4946ad949dfb5514df0b66a031 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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 Hutterer
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>
2016-08-29darwin: Remove incorrect export of vendorShellClassRec and ↵Jeremy Huddleston Sequoia
vendorShellWidgetClass Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2015-09-27Get rid of some extraneous ; at the end of C source linesAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-11-07Use SEEK_* names instead of raw numbers for fseek whence argumentAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-11-07Just use C89 size_t instead of rolling our own Size_t & Off_tAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-07-17Fix abs() usage.Thomas Klausner
For long arguments, use labs(). Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-06-04autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-06Remove support for pre-C89 headers (unifdef -UX_NOT_STDC_ENV)Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-06Replace TXT16 with XChar2b inlineAlan Coopersmith
No longer need #define to substitute it now that we no longer set it to a different type on CRAY systems. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-06Remove CRAY/WORD64 support (unifdef -UCRAY -UWORD64)Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-06-06Fix --disable-feature options in configureJavier Pello
Make --disable-feature options passed to configure not enable the feature but keep it disabled instead. Signed-off-by: Javier Pello <javier.pello@urjc.es> Signed-off-by: James Cloos <cloos@jhcloos.com>
2012-03-29libXaw3d 1.6.2libXaw3d-1.6.2Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-03-29XawIm.c: silence incompatible pointer type warningsMatt Turner
Makes code for _XawImCallVendorShellExtResize identical to libXaw. Fixes XawIm.c: In function '_XawImCallVendorShellExtResize': XawIm.c:1554:2: warning: passing argument 1 of 'XawVendorShellExtResize' from incompatible pointer type [enabled by default] XawIm.c:93:13: note: expected 'Widget' but argument is of type 'VendorShellWidget' Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-03-29Make Box.c:PreferredSize match libXawMatt Turner
Fix up from 5d367cd9d0c. No functional changes. Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-03-29Fix segfaults when changing the text of a backed internationaled text widgetMatt Turner
Same fix appeared in libXaw as part of XFree86 4.3.0.1. Fixes: http://gnats.netbsd.org/37610 Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-03-24Add XawTextGetSink for compatibility with libXawMarkus Steinborn
Patch found at http://gitorious.org/xaw3d/xaw3d/commit/ccb1ffde090006f5a715c1e3d4da5f4d6fae05d3 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-24Avoid integer overflowMarkus Steinborn
Found at http://gitorious.org/xaw3d/xaw3d/commit/3ba3e52454bb684a73601ec91e2c274e776f711a Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-24Correct XtNthumbProc usageMarkus Steinborn
This ugly piece of magic was copied from libXaw, and now scrollbars will work slightly less incorrectly than they did before. Found at http://gitorious.org/xaw3d/xaw3d/commit/4ec68aebffbdc406139f880f92b6c18b835af6d4 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-14Fix use-after-free in DestroyAllIMMatt Turner
Fixes segmentation fault when closing gv. Found at http://gitorious.org/xaw3d/xaw3d/commit/23b3ca50395f180cba4a923eb8827dcc961629da Fixes: https://bugs.gentoo.org/show_bug.cgi?id=406487 Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-29Fix parameters of FloatInRangeMatt Turner
Introduced in f6cd786d1. Reported-by: Jean-Pierre Demailly <Jean-Pierre.Demailly@ujf-grenoble.fr> Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-15libXaw3d 1.6.1libXaw3d-1.6.1Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-15Include MultiSrc.h in AllWidgets.cMatt Turner
AsciiText.h doesn't include MultiSrc.h when internationalization is disabled, so dcd27a9c69a was breaking the build. Also fix a typo introduced in the same commit Xaw -> Xaw3d. Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-15Fix segfaults on tip popupsDevin J. Pohly
When XAW_INTERNATIONALIZATION isn't defined, some uninitialized stack data was being passed to XtGetValues. This makes it not do that. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=46124 Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Devin J. Pohly <djpohly+xorg@gmail.com>
2012-02-01Add multiSink and multiSrc to AllWidgets.cMatt Turner
Noticed when comparing with libXaw's AllWidgets.c.
2012-02-01Include WidgetNode.h from AllWidgets.hMatt Turner
Makes these two files closer to the libXaw originals. Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-01Include headers instead of using extern definitionsMatt Turner
Caught a mistake in SmeThreeD.h: smeThreeDWidgetClass was declared instead of smeThreeDObjectClass. Also fixes redundant redeclaration warnings. Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-02-01Make --enable-internationalization defaultGaetan Nadon
libXaw3d-1.5 was built with internationalization by default and software such as gv and xterm require it. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45153 Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-01-24Include XAW3D_CPPFLAGS in xaw3d.pc CflagsMatt Turner
Software depending on libXaw3d seems to require this. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45144 Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Matt Turner <mattst88@gmail.com>
2012-01-22Build fix for int-pointer cast errorsJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-22Cleanup shadow declarationsJeremy Huddleston
Box.c:265:10: warning: declaration shadows a local variable [-Wshadow] int i = bbw->composite.num_children; ^ Box.c:166:15: note: previous declaration is here Cardinal i; ^ 1 warning generated. Form.c:809:9: warning: declaration shadows a local variable [-Wshadow] Widget w = *childP; ^ Form.c:793:24: note: previous declaration is here XawFormDoLayout(Widget w, ^ 1 warning generated. Viewport.c:627:24: warning: declaration shadows a local variable [-Wshadow] if (!needshoriz) CheckHoriz(); ^ Viewport.c:605:14: note: expanded from macro 'CheckHoriz' Widget bar = w->viewport.horiz_bar; \ ^ Viewport.c:620:14: note: previous declaration is here Widget bar = w->viewport.vert_bar; ^ 1 warning generated. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-22Include <stdlib.h> for abs()Jeremy Huddleston
Tip.c:336:9: error: implicit declaration of function 'abs' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ksy += abs(ext->max_ink_extent.y); ^ 1 error generated. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-01-21libXaw3d 1.6libXaw3d-1.6Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-10-09Remove worthless isupper/islower checksMatt Turner
Was toupper() *really* expensive when this was written? :) Also, initialize action_type with toupper(), since the check immediately following assumes that its value is uppercase. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-10-09Remove unused variable 'i'Matt Turner
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-10-09Include stdlib.h for abs()Matt Turner
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-10-06Define call_data to 0 in NotifyScroll()Guillem Jover
Fixes gcc warning: Scrollbar.c: In function 'NotifyScroll': Scrollbar.c:950:12: warning: 'call_data' may be used uninitialized in this function [-Wuninitialized] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-10-06Use intptr_t instead of int when casting from and to XtPointerGuillem Jover
Fixes gcc warnings: Scrollbar.c: In function 'NotifyScroll': Scrollbar.c:955:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Text.c: In function 'HScroll': Text.c:1274:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Text.c: In function 'VScroll': Text.c:1431:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] TextPop.c: In function 'DoSearch': TextPop.c:808:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] TextPop.c: In function 'Replace': TextPop.c:942:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Viewport.c: In function 'ScrollUpDownProc': Viewport.c:866:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-10-06Only use variable t in MoveThumb() on XAW_ARROW_SCROLLBARSGuillem Jover
Fixes gcc warning: Scrollbar.c: In function 'MoveThumb': Scrollbar.c:1006:16: warning: variable 't' set but not used [-Wunused-but-set-variable] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-10-06Remove unused labelGuillem Jover
Fixes gcc warning: laygram.c: In function 'LayYYparse': laygram.y:242:7: warning: label 'unary' defined but not used [-Wunused-label] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-10-06Disable unused input and unput lex functionsGuillem Jover
Fixes gcc warnings: laylex.c:1316:17: warning: 'yyunput' defined but not used [-Wunused-function] laylex.c:1357:16: warning: 'input' defined but not used [-Wunused-function] Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Guillem Jover <guillem@hadrons.org>
2011-09-19Fix a couple of unused variable warningsMatt Turner
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-19Fix a couple unused function warningsMatt Turner
Functions were only called inside ifdef blocks, but were defined outside. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2011-09-17Add LayYYWrap() prototype to LayYY.hAlan Coopersmith
Fixes gcc warning: laygram.y:259:5: warning: no previous prototype for 'LayYYwrap' Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-17Fix several unused variable warningsAlan Coopersmith
All but one are due to variables defined outside #ifdef's but only used inside #ifdef'ed code blocks. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-17Remove %defines declaration for compatibility with yacc.Matthieu Herrb
The -d flag is used for bison/yacc and has the same effect. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>