Patrick Georgi
7ab683d29a
handle missing return values
2025-12-18 22:58:26 +01:00
Patrick Georgi
ae001c320f
fix misleading indentation
...
Mostly to shut up the compiler, but some real bugs hidden in there.
2025-12-18 22:58:26 +01:00
Patrick Georgi
ae767ed3dc
Mark error handlers as "noreturn"
...
Match X headers to satisfy newer compilers.
2025-12-18 22:58:26 +01:00
hyousatsu
549b759c66
dtstyle: make the style manager recognize wheel mouse correctly.
2023-06-11 07:33:37 +00:00
Chase
edf4319548
Discontinue HPUX support
2022-07-23 17:49:33 -06:00
Peter Howkins
1f5ec7f034
Allow the window manager to handle centered, fit and fill backdrops
2022-07-06 17:00:49 -06:00
Jon Trulson
383b5e4b59
dtstyle: fix bugs preventing SM save from working properly
...
All of the dtstyle session save routines used sprintf/snprintf whereby
the destination buffer was also a source buffer, like so:
snprintf(bufr, sizeof(style.tmpBigStr), "%s*Fonts.x: %d\n", bufr, x);
^^^^ ^^ ^^^^
That results in undefined behavior, which mainly meant missing or
currupted XRM resources being saved in the session file for dtstyle.
2022-02-26 15:51:09 -07:00
Liang Chang
a52f988e47
dtstyle: fix window functions.
2022-02-26 02:10:00 +00:00
Peter Howkins
bf266ee14b
dtstyle: Resolve format-overflow issues
2021-12-24 10:50:28 -07:00
Peter Howkins
4eb099b047
dtstyle: Resolve uninitialized warnings
2021-12-24 10:50:28 -07:00
Jon Trulson
e10d06f210
configure/Makefiles: add checks for Xmu, Xext, and Xdmcp
...
We also remove sun pro specific options, and do some general cleanup
as well as remove hardcoded library refs like -lXm, -lXext, etc...
2021-12-21 16:42:22 -07:00
Jon Trulson
d470302354
Fix several pointer-bool-conversion warnings that could cause cores
2021-12-11 17:39:35 -07:00
Jon Trulson
6f553130a3
dtstyle: fix implicit-function-declaration warnings
2021-11-15 16:07:28 -07:00
Peter Howkins
62b63331ed
dtstyle: Alphabetically sort the list of screen savers.
2021-11-15 21:13:52 +00:00
OBATA Akio
2390217a75
Fix to decide data and return type explicity
2021-10-08 17:25:17 +09:00
OBATA Akio
16fe76ed65
Fix to include system header files for using functions
2021-10-08 14:40:56 +09:00
Jon Trulson
51646fb06a
programs/: remove Imakefiles for completed modules
2021-07-03 19:12:43 -06:00
Lev Kujawski
a6ea2a2d52
Centralize catgets() calls through MsgCat
...
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.
This patch:
- Centralizes (with the exception of ToolTalk) all calls to catopen(),
catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
redundant caching implementations designed to work around a design
peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
the appropriate macros.
2021-06-02 19:55:15 -06:00
Jon Trulson
90e61dda5f
Merge branch 'master' into autotools-conversion
2020-11-24 16:53:24 -07:00
Peter Howkins
4fd18c3c16
dtstyle: Remove duplicate definition of NumOfPalettes that was a) wrong b) causing issues on recent compilers
2020-11-23 18:28:01 +00:00
Jon Trulson
c329d5cfd7
Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
...
Also, restructure some of the dependencies in the lib/tt binaries. We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS. Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00
Jon Trulson
1b8ef6a6c1
dtstyle: make it build
2019-11-19 18:17:34 -07:00
Jon Trulson
730da7747c
Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS"
2019-10-28 18:54:17 -06:00
Chase
3737ce6f96
programs/dtstyle: add automake file
2019-10-23 15:34:20 -06:00
chase
dd68514e4f
Remove hpversion.h from repository
...
This patch removes hpversion.h from the repository, this also untangles a
lot of ifdef mess. This closes bug CDExc19524.
2018-10-06 17:00:38 -06:00
Peter Howkins
25e371dbe2
dtstyle: Coverity 88110
2018-07-03 18:57:35 +01:00
Peter Howkins
43a31a81fa
dtstyle: Coverity 87251
2018-07-03 18:54:16 +01:00
Peter Howkins
8b39102f31
dtstyle: Coverity 87244
2018-07-03 18:52:02 +01:00
Peter Howkins
a6cdaa8850
dtstyle: Coverity 87337
2018-07-03 18:49:43 +01:00
Peter Howkins
5481b6b753
dtstyle: Coverity 88475
2018-07-03 18:46:59 +01:00
Peter Howkins
9e0cd3fe51
dtstyle: Coverity 88726
2018-07-03 18:45:31 +01:00
Peter Howkins
c076db11de
dtstyle: Coverity 89011
2018-07-03 18:43:31 +01:00
Peter Howkins
43ed7dacc6
dtstyle: Coverity 89456
2018-07-03 18:42:00 +01:00
Peter Howkins
c743c30cb9
dtstyle: Coverity 87763
2018-07-03 18:39:32 +01:00
Peter Howkins
0dc2828f57
dtstyle: Coverity 89351
2018-07-03 18:29:47 +01:00
Jon Trulson
43cdfab6a1
dtstyle: remove register keyword
2018-06-27 22:20:34 -06:00
Peter Howkins
403911407b
dtstyle: Change to ANSI function definitions
2018-06-28 04:21:25 +01:00
chase
6bf175ef2d
Remove apollo support
2018-06-24 16:22:37 -06:00
Ulrich Wilkens
297b6bd845
Fix warnings on FreeBSD
2018-05-31 22:04:08 -06:00
Ulrich Wilkens
07f272122d
Fix Linux rpc problems with new glibc
2018-05-31 18:00:22 -06:00
chase
4f5e7fe5e3
Use POSIX macros for linux
2018-05-24 18:22:55 -06:00
chase
164e695cd0
remove OSF1 support
2018-05-24 14:25:26 -06:00
chase
33d2749ea3
Last of the spelling fixed
2018-04-28 12:36:44 -06:00
chase
1fe5a550b2
Fix typo in license headers
2018-04-28 12:30:20 -06:00
Peter Howkins
637abd5d5c
Resolve some coverity warnings
2018-03-08 23:03:21 +00:00
Peter Howkins
e1333a5160
dtstyle: remove some accidentally commited debug code
2016-04-21 01:48:40 +01:00
Peter Howkins
066adcac5e
dtstyle: backdrops, allow jpg/png if motif supports it
...
add file extensions to all types but .pm/.bm. This lets XmGetPixmap() load them.
2016-04-21 01:43:27 +01:00
Ulrich Wilkens
8b38d9ea49
Fix broken build on OpenBSD
2015-05-09 16:21:32 -06:00
Peter Howkins
fe39b630b3
dtstyle: Fix CID 100252
2015-01-13 10:13:03 +00:00
Peter Howkins
466b8d0df5
dtstyle: resolve 30 compiler warnings.
2015-01-05 16:07:49 +00:00