Commit Graph

54 Commits

Author SHA1 Message Date
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
Ulrich Wilkens 01d6c363fa OpenIndiana and Solaris port 2014-10-28 13:40:11 -06:00
Ulrich Wilkens c3f74eec17 FreeBSD 10 clang port 2014-07-27 12:32:35 -06:00
alx 2c162726c7 dtstyle: enable palette editor on true/direct color screens 2014-03-22 18:00:56 -06:00
Ulrich Wilkens 2d08153289 correction of message files 2013-09-15 19:35:53 -06:00
Peter Howkins c742edcb2f dtstyle: Resolve 70 compiler warnings 2013-09-03 15:41:58 +01:00
Peter Howkins d57739782f dtstyle: Alphabetically sort the backdrops in the backdrop list. 2013-09-03 14:34:11 +01:00
Peter Howkins 3bd9b4c4da dtstyle: Sort color palette names into alphabetical order for displaying. 2013-05-20 15:53:44 +01:00
Marcin Cieslak e1f9b57844 dtstyle: XVaGetValues() calls 2012-09-26 19:42:57 -06:00
Peter Howkins dcdd21df34 dtstyle: Resolve 28 compiler warnings. 2012-09-17 14:56:06 +01:00
Jon Trulson a29fc20957 message catalogs: fix comment lines, also remove linux hack in merge.c
According to the spec, blank lines in message catalogs or lines
beginning with '$ ' are valid comments.

However, there were many cases where lines in the message catalogs
contained just a single '$', without the required space after it.

Under linux, this caused 126766 error lines (in my builds) of the
form:

... unknown directive `': line ignored

This also causes gencat to exit with a non-0 exit code.  Even though
gencat says it ignores the line, it really doesn't.

An early porting change to programs/localized/util/merge.c was made to
ignore this return value on linux.  This hack has now been removed.

Build logs are a lot smaller and cleaner now.
2012-09-03 15:12:57 -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 1d555edb6c Convert all Imakefile LinuxDistribution switches to LinuxArchitecture.
(programs part1)
2012-05-31 13:40:38 +01:00