Commit Graph

53 Commits

Author SHA1 Message Date
Chase
60e60b9836 configure: detect libm 2022-07-31 18:33:49 -06:00
Chase
edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Peter Howkins
33fad36133 dtappbuilder: Resolve format-overflow issues 2021-12-24 10:50:28 -07:00
Peter Howkins
93a0b4bc7e dtappbuilder: 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
fd53532bcf dtappbuilder: fix implicit-function-declaration warnings
With the exception of the yy* issues.  Can resolve those at a later
time.
2021-11-16 15:21:44 -07:00
Liang Chang
6f30664428 dtappbuilder: use libXpm directly. 2021-10-18 10:10:20 -06:00
OBATA Akio
2390217a75 Fix to decide data and return type explicity 2021-10-08 17:25:17 +09:00
Jon Trulson
51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06:00
Liang Chang
056afeb35a dtappbuilder: fix the rendering glitch of the list widget which contains a
label.
2021-06-02 19:56:28 -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
487305f7cf dtappbuilder: fixes to build in autotools branch for freebsd 2021-06-01 18:23:37 -06:00
Jon Trulson
ece5c0ea14 Merge branch 'master' into autotools-conversion
Lost the ksh93 submodule so will re-add in a later commit.
2021-01-30 19:04:10 -07:00
Lev Kujawski
325132735b Use the C99 standard va_copy if possible for compatibility with the musl C library. 2021-01-10 18:08:00 -07:00
Chase
65d2062518 dtappbuilder: make it build under autotools 2020-09-05 15:49:46 -06:00
Jon Trulson
f4776c21d7 dtappbuilder: remove register keyword 2018-06-27 22:00:56 -06:00
Peter Howkins
bb7ac1f24e dtappbuilder: Change to ANSI function definitions 2018-06-28 04:08:35 +01:00
chase
809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -06:00
Ulrich Wilkens
297b6bd845 Fix warnings on FreeBSD 2018-05-31 22:04:08 -06:00
Ulrich Wilkens
885b65a09a Fixes for OpenBSD 2018-05-31 21:48:07 -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
07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase
8a4f389634 Remove UXPDS support 2018-05-15 20:27:22 -06:00
Peter Howkins
ad373101d6 dtappbuilder: Coverity fixes mostly related to uninitialised variables 2018-05-01 19:02:14 +01: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
a135a89876 dtappbuilder: Further coverity, resource leaks, copy intofixed size buffer and dereference before null checl 2018-04-28 02:51:10 +01:00
Peter Howkins
73dafa91e7 dtappbuilder: Fix for very wrong sized buffer 2018-04-26 01:50:33 +01:00
Peter Howkins
bb9eef427f dtappbuilder: Coverity fixes for mising return value and copy into fixed size buffer 2018-04-26 01:36:02 +01:00
Peter Howkins
4007d3a460 dtappbuilder: Resolve all compiler warnings 2018-04-24 21:55:56 +01:00
Jon Trulson
129ef945b9 dtappbuilder: Add patches from Robert Pangrazio fixing coredumps 2017-08-05 18:49:07 -06:00
Jon Trulson
6bc5c658b8 dtappbuilder: replace accidental %a with %% in write_func_as_strings() 2015-12-18 10:28:37 -07:00
Ulrich Wilkens
01d6c363fa OpenIndiana and Solaris port 2014-10-28 13:40:11 -06:00
Ulrich Wilkens
42e891d9e7 Resolve many build warnings
This patch fixes many warnings from the beginning of the build up to
and including the depend stage. Nearly all warnings should be gone
even with -Wall.
2014-09-23 17:57:50 -06:00
Jon Trulson
2bf29e5d63 dtappbuilder: abmf.c: more warnings killed 2014-09-20 20:10:01 -06:00
Jon Trulson
bf399748ad dtappbuilder/dtcodegen: Fix up some warnings, remove use of sys_errlist[].
Removed all the cases of sys_errlist[], no one should be using that
today.  Also, correct code generation so that declarations like
'Widget w = NULL; Pixmap p = NULL;' etc, aren't produced, which is
wrong.  Use '0', not NULL for these.

This should also correct the 2 mis-definitions of Pixmap that commit
6a9327f2ab attempted to fix in ttsnoop.

dtappbuilder still needs a lot of work.
2014-09-20 16:47:11 -06:00
Ulrich Wilkens
d24fd29b52 Fix dtfile and dtterm on NetBSD 2014-03-11 13:06:55 -06:00
Ulrich Wilkens
8fd8a8a4db Fix dtappbuilder on Linux 2012-10-16 21:04:57 -06:00
Jelle Hermsen
b8862cab32 Changed a couple of ifdefs for __FreeBSD__ to CSRG_BASED. These are all clearcut cases. I left the ones I had doubts about, or where I wasn't sure about the OpenBSD side of things to look at later. 2012-10-03 17:06:57 -06:00
Ulrich Wilkens
9a34624e25 Fix for __va_copy on FreeBSD i386. 2012-09-05 19:28:31 -06:00
Pascal Stumpf
1177e21080 WIP to make dtbuilder work on 64bit.
Fixes many, though not all 64bit-warnings.  In lots of places, pointers are
cast to ints to be then used as array subscripts.  The only way to deal with
this is to change them to long.  Additionally, use calloc() to allocate the
int_array in istr.c and drop the (wrong) macro patch to istr.h.  Should make
dtbuilder work on 32bit again.
2012-08-13 19:42:44 -06:00
Pascal Stumpf
3718075b7c OpenBSD fixes for DtWidget, dtaction, dtappbuilder. 2012-08-10 14:10:52 -06:00
Jon Trulson
cdf8003f7c Remove hardcoded CCLINK's in Imakefiles when linking with C++ built libs (DtSvc).
Added proper SharedDtSvcReqs in lnxLib.tmpl and CplusplusLibC in
linux.cf.  This allows the libstdc++ dependancy to be properly
declared for libDtSvc so that it is not neccessary to hardcode 'CCLINK
= g++' in the Imakefiles of programs linking angainst libDtSvc.
2012-06-19 16:27:20 -06:00
Peter Howkins
a34f78b798 convert all Imakefile LinuxDistribution to LinuxArchitecture.
(programs part 2)
2012-05-31 13:47:41 +01:00
Peter Howkins
0859109ba0 Linux compilation of dtbuilder (Matthew Howkins) 2012-04-12 17:36:54 +01:00
Peter Howkins
ca8ede6c1f Use C++ linker 2012-03-12 16:27:41 +00:00
Peter Howkins
fb174a8ec3 Undo previous method and use __va_copy instead. 2012-03-12 16:27:08 +00:00
Peter Howkins
0456158e41 On linux use the va_copy() func for variable arugment copying 2012-03-12 16:24:24 +00:00
Peter Howkins
63f6536c72 Initialise varargs list in the same way as OSF 2012-03-12 16:19:32 +00:00