summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-06specs: Fix titles for subsections of Toggle Widget: Convenience RoutinesHEADmasterAlan Coopersmith1-3/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-04-06specs: remove function prototypes duplicated as arguments to themselvesAlan Coopersmith1-3/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-04-06specs: fix adjacent parameters with the same type in function prototypesAlan Coopersmith6-23/+45
When listing multiple parameters of the same type, the first one was often run together with the type and not shown as a parameter name, and the type name was not shown for the second one (since it had been listed as a K&R style definition but was being displayed as an ANSI/ISO style prototype). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-03-10libXaw 1.0.16: amends XawListChange() prototype, plus code-cleanuplibXaw-1.0.16Thomas E. Dickey1-1/+1
2024-03-10delete code which is never usedThomas E. Dickey6-85/+0
2024-03-10make the examples configurable as (interactive) unit-testsThomas E. Dickey6-14/+27
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-04amend change to XawListChange()Thomas E. Dickey2-2/+2
My previous commit in July 2019 build-fixes when _CONST_X_STRING is defined modified the interface of XawListChange() to use "_Xconst char *" to fix builds when the Xt symbol _CONST_X_STRING is defined (which makes the String typedef "const"). While this fixed building Xaw, clients which use Xaw were impacted. Changing that function to use String resolves both problems. (report by Karl Berry). Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-04clang/gcc warnings about undefined behavior (minor bug-fix)Thomas E. Dickey1-1/+1
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-04fix clang/gcc warnings for undefined behavior, also fix a bugThomas E. Dickey1-7/+10
XtConvertAndStore may update the XrmValue value, changing its size. clang and gcc warn about undefined behavior in the case-statement following the call (which uses the size), but do not explain what the problem is. Since this code is not intended to handle changes of the size, simply reject that case. That quiets the gcc warnings and is actually all that is needed for correctness. clang still complains (neither knows what the call does), but can be quieted by initializing the variable before calling the function. The code happens to work without the fix as long as it is not used to convert between resource types which would increase the size. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-04scan-build(clang-17) reports possible null dereference, add checksThomas E. Dickey2-4/+12
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-04split-up assignments which give unnecessary compiler-warningsThomas E. Dickey4-8/+24
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-1/+1
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-1/+1
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-1/+3
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-0/+6
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-3/+6
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-1/+3
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02add check for null pointer, avoid dereferencingThomas E. Dickey1-3/+6
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02delete unused assignmentsThomas E. Dickey8-34/+20
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02reduce variable-length argument lists to match the existing codeThomas E. Dickey1-20/+6
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02fix references to uninitialized data when constructing argument-listsThomas E. Dickey1-116/+138
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02manpage: improve formatting consistency of bold/italicsThomas E. Dickey1-93/+150
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02manpage: assume .EX/.EE macrosThomas E. Dickey1-14/+4
Branden Robinson says macros have to go after ".TH"; the existing macros did not match the format used in groff, etc., and can be simply removed. The ".TQ" macro is used only without a parameter, causing an extra space to be emitted (and fixed that by dropping the parameter). Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02manpage: adjust line-breaks to avoid embedded full-stopsThomas E. Dickey1-135/+237
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-03-02cppcheck scope and assignment warningsThomas E. Dickey10-39/+54
2024-02-28reduce compiler-warnings using castsThomas E. Dickey7-30/+30
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-02-28provide fallback for deprecated isascii/toasciiThomas E. Dickey1-4/+10
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-02-28quiet conversion-warnings with castsThomas E. Dickey14-57/+57
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-02-28fix missing-initializer warningsThomas E. Dickey19-2/+59
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-02-28build-fixThomas E. Dickey14-29/+55
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2024-02-17unifdef ISCAlan Coopersmith1-5/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13Remove unused sharedlib.cAlan Coopersmith2-183/+0
It was only built by Imake if SUNSHLIB was defined. SUNSHLIB was only set in the Imake configs for SunOS versions < 5 (i.e. before Solaris 2.0). It has never been used in the autoconf builds. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13unifdef __UNIXOS2__Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13unifdef __osf__Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13unifdef AIXV3 || __SCO__Alan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13unifdef QNX4Alan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13unifdef sonyAlan Coopersmith1-7/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-13unifdef NCRAlan Coopersmith2-22/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-09-23gitlab CI: add xz-utils to container for "make distcheck"Alan Coopersmith1-3/+3
Also update to latest ci-templates Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-09-23Use C99 designated initializers where appropriateAlan Coopersmith19-170/+189
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-09-21Handle redundantInitialization warnings from cppcheckAlan Coopersmith4-4/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-09-21Variable scope reductions as suggested by cppcheckAlan Coopersmith21-195/+190
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-06-18expand for simple widget demoWalter Harms2-1/+4
2023-06-18add simple widget demoWalter Harms1-0/+79
2023-05-13add xawhistoWalter Harms3-2/+86
2023-05-12add examplesWalter Harms10-0/+608
provide some examples to support the documentation
2023-03-28Set close-on-exec when opening filesAlan Coopersmith3-10/+25
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-15libXaw 1.0.15libXaw-1.0.15Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-04configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-1/+2
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:13: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:13: You should run autoupdate. aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from... configure.ac:13: the top level libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-28Replace calls to index() with strchr()Alan Coopersmith2-14/+14
Use C standard API instead of old BSD equivalent Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>