Commit Graph

99 Commits

Author SHA1 Message Date
Chase 61ed7ad39c dthelp: merge duplicate headers 2025-12-14 13:32:54 -07:00
Chase 9d9f3f9380 dthelp/parser: use standard ctype case functions 2025-11-25 12:31:07 -07:00
hyousatsu f0123efa84 Fix some warnings. 2024-07-21 00:43:27 +00:00
Chase 45cee195bd Generify source code
Previously we would fail in some parts of the code if we did not have a
premade configuration, now we use any code that was marked as Linux, BSD and
Solaris as our basis in order to support building unknown Unix systems.
2022-08-06 11:31:51 -06:00
Chase 60e60b9836 configure: detect libm 2022-07-31 18:33:49 -06:00
Chase 9a9d586e87 configure: detect libdl 2022-07-31 18:33:49 -06:00
Chase 4370a95a84 dthelp: remove obsolete and non-compiled code 2022-07-30 19:36:32 -06:00
Chase edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Liang Chang b4ffb694bd Merge branch 'master' into dtdocbook 2022-01-30 08:04:32 +08:00
Liang Chang b239c00ae8 dthelp: use system locales. 2022-01-26 19:50:11 +08:00
Peter Howkins bd49a5c948 dthelp: Resolve format-overflow issues 2021-12-24 10:50:28 -07:00
Peter Howkins daf072463a dthelp: Resolve uninitialized warnings 2021-12-24 10:50:28 -07:00
Jon Trulson 3a0e92adb6 Rename autotools_config.h to cde_config.h to better reflect it's ownership. 2021-12-22 13:21:43 -07:00
Jon Trulson b55897489f Fix up a few more implicit-function-declaration warnings on the BSDs 2021-12-13 16:46:02 -07:00
Jon Trulson 5f02c65da0 dthelpdemo: disable it
No one is going to want to build and use this example in the
forseeable future, so just disable it.
2021-12-13 16:46:02 -07:00
Liang Chang f2623acbe7 dthelp: Fix a multibyte character parsing issue. 2021-12-06 06:34:40 +08:00
Jon Trulson cf7e51ccb5 dthelp: fix implicit-function-declaration warnings (the rest)
... at least with regard to the non-generated code.
2021-11-16 18:28:23 -07:00
Jon Trulson 4f16e12ed8 dthelp: fix implicit-function-declaration warnings (mostly) 2021-11-16 16:24:58 -07:00
Jon Trulson 3e7a921af2 dthelp/parser: disable parallel building for eltdef and util 2021-11-12 17:30:44 -07:00
OBATA Akio 2390217a75 Fix to decide data and return type explicity 2021-10-08 17:25:17 +09:00
OBATA Akio 20c1768a19 Change to detect iconv implementation with autoconf
Use iconv.m4 (and required macros) form gettext-0.21.
2021-09-21 14:04:40 +09:00
Jon Trulson 3bc4132f9a dthelp: parser/canon1/eltdef - disable parallel builds 2021-07-03 22:32:11 -06:00
Jon Trulson 51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06:00
Jon Trulson df0392fc25 dthelp/parser.ccdf: delete never used module 2021-07-03 18:34:31 -06:00
Jon Trulson ae70af254e dthelp: disable parallel builds in parser/canon1 too 2021-07-02 20:44:15 -06:00
Jon Trulson afbf39af01 dthelp/parser/pass2: disable parallel builds for this module 2021-06-02 19:57:23 -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 7b79d810eb dthelp/parser: disable parallel building 2021-06-01 18:23:46 -06:00
Chase 58ccd05459 dtinfo: make auxillary libs and programs build 2021-02-28 20:32:46 -07:00
Chase 08622925c8 dthelp: fix spurious compilation failure 2021-02-22 20:18:26 -07:00
Chase 4b461f5627 dthelp/parser/pass2: make it build 2021-02-21 18:35:52 -07:00
Chase 434943913b dthelp/parser/canon1: get it to build 2021-02-21 18:35:43 -07:00
Chase 6807fbb75e dthelp/parser/helptag: build under autotools 2021-02-07 19:44:12 -07:00
Jon Trulson e18e2480dc dthelp parser htag1: add new global.c from master 2020-11-24 17:03:14 -07:00
Jon Trulson 90e61dda5f Merge branch 'master' into autotools-conversion 2020-11-24 16:53:24 -07:00
Peter Howkins dc45d133c9 dthelp: Resolve GCC 10 errors about multiple definitions of global variables 2020-11-24 05:42:59 +00:00
Peter Howkins 67f62e5a8a all: remove deprecated sys_errlist[] and replace with ANSI C strerror() 2020-11-02 05:30:08 +00:00
Jon Trulson 29ddc05827 dthelp/parser/pass1: disable parallel builds due to occasional failures 2020-09-07 17:50:40 -06:00
Jon Trulson 6da55905ec dthelp/parser/pass1: get it to build
So this is going to be tricky/painful getting this parser fully
operational.  It's pretty hairy with various interdependencies and
generated code.

It's rather complicated how each sub dir depends on the previous one.
Also, the parser subdir has dependencies on the helptag subdir, and
vice-versa, so some hackery was needed to get that to work.

Due to the wierd interdepencencies between helptag and parser,
we disable parallel builds there.

This is some really horrible code and design - not surprising since it
dates to 1989.

I think it should just be removed -- who can maintain or refactor this
code?

Also, dthelp_htag1 is now built in pass1/parser/, not in
pass1/helptag/ as it used to be.
2020-04-21 15:40:05 -06:00
Jon Trulson 349802ddd3 dthelpprint: make it build. 2020-04-13 16:21:27 -06:00
Jon Trulson 137bbf383e dthelp: get parts of it building.
This was a patch from Peter G, though modified a bit regarding the
LDADDs the way we do them now.
2020-03-23 13:51:01 -06:00
Jon Trulson dcda29d67a dthelpdemo: remove old Makefile.SUN, .IBM, and .HP 2020-03-23 13:44:34 -06:00
Jon Trulson 5852c4742f Fix erroneous uses of ${prefix} rather than $(CDE_INSTALLATION_TOP)
Some Makefiles use prefix when they should be using
CDE_INSTALLATION_TOP.

Patch by Peter G.
2020-03-23 13:10:07 -06:00
Jon Trulson 24171c3194 configure: add programs/ dthelp, dsdm, dtmail, dtpad, and dtfile
At this stage, these certainly won't actually build yet.

Just fix up the relevent Makefile.am files so that autogen does not
emit errors and warnings for them.

Removed AIX/HPUX support in Makefile.am files.  No point in
propogating that stuff when we've already removed much of that
unmaintained code from the codebase.

Commented out all of the Sun Pro stuff.  Someone whos using that will
need to go through and fix it.  This is mostly in dtmail and dthelp.

In fact, someone who does Solaris in general will need to go through
this stuff.

Next up, we'll replace any remaining 'if SUN' conditionals with 'if
SOLARIS' which is a more appropriate name and was already defined in
configure.ac.

Then we'll see about getting these new directories building.
2019-10-28 18:54:17 -06:00
Chase 37a7c7c7ce programs/dthelp: add automake files 2019-10-23 15:34:20 -06:00
Chase 4d7f9df692 Use iconv on linux 2019-01-14 10:48:28 -07: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
chase 90a2b2848a remove ultrix support 2018-09-30 17:27:04 -06:00
Peter Howkins 3503243d14 dthelp: Change to ANSI function definitions 2018-06-28 04:23:35 +01:00
chase 6bf175ef2d Remove apollo support 2018-06-24 16:22:37 -06:00