Commit Graph

99 Commits

Author SHA1 Message Date
Patrick Georgi 7ab683d29a handle missing return values 2025-12-18 22:58:26 +01:00
Patrick Georgi 1b852f19a5 Remove uses of prototype argument hiding macros
Modern compilers don't use accept them, they _want_ complete prototypes.
2025-12-18 22:58:26 +01:00
Patrick Georgi 01b9288a2b Remove FAR declarations 2025-12-18 22:58:26 +01:00
hyousatsu f0123efa84 Fix some warnings. 2024-07-21 00:43:27 +00:00
Cy Schubert 8a24d70d5e Fix build under LLVM15
Fix many -Wint-conversion errors such as the example below, including
an aso atomics error.

connect.c:87:12: error: incompatible pointer to integer conversion initializing 'LONG' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
   DB_ADDR mdba = NULL;   /* db address of current member record */
           ^      ~~~~
2023-02-18 14:47:38 -07:00
Jon Trulson f0494103c3 Delete all unused/obsolete .elist files
These (export lists) aren't needed on modern compilers and haven't
been for quite awhile (like 2+ decades).
2022-08-06 17:59:05 -06: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 b38c2b02a8 Remove detected -lcrypt flag 2022-08-06 11:31:50 -06:00
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
Liang Chang 14c89d4578 DtSearch: processing multibyte characters based on locale settings
to avoid confusion.
2022-03-03 13:44:26 +00:00
Liang Chang 9077b5fd85 DtSearch: fix a crash. 2022-02-07 09:48:23 +08:00
Liang Chang b4ffb694bd Merge branch 'master' into dtdocbook 2022-01-30 08:04:32 +08:00
Liang Chang c6661c92c9 dtdocbook: merge dtinfogen into dtdocbook. 2022-01-26 19:50:11 +08:00
Peter Howkins 182aa9fe5a libdtsearch: Resolve uninitialized warnings 2021-12-24 10:50:27 -07:00
Jon Trulson 31774af2f2 library versioning: try to keep the versions at 2.1.0 for all platforms 2021-12-23 13:06:44 -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 931bcaa494 dtsr, DtSearch: finish removing need for BYTE_SWAP define 2021-12-21 16:42:29 -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 17602b4d21 Library (.so) versioning: preserve previous library version
Ticket #120

Change libtool's shared library version info to 3:0:1 to preserve the
previous library version of 2.1.0.

See https://autotools.io/libtool/version.html for the details on how
libtool handles this versioning info.

See https://verbump.de/ for a handy 'version calculator' using
libtools rules.
2021-12-16 12:40:15 -07:00
Jon Trulson 75ea7be520 DtSearch/raima: use autodetected byte endianness rather than forcing based on OS 2021-12-12 12:29:48 -07:00
Liang Chang 0007043d25 Merge branch 'master' into dtdocbook 2021-12-12 20:13:16 +08:00
Liang Chang 16e67fec81 Merge branch 'master' into dtdocbook 2021-12-12 20:01:35 +08:00
Jon Trulson c479fe7b9e Fix some logical-not-parentheses warnings 2021-12-11 17:39:35 -07:00
Liang Chang 8a01ce9f87 DtSearch: improve support for Japanese. 2021-12-06 06:49:22 +08:00
Liang Chang 3f950009bc DtSearch: Migrate to UTF-8. 2021-12-06 06:42:34 +08:00
OBATA Akio 16fe76ed65 Fix to include system header files for using functions 2021-10-08 14:40:56 +09:00
Jon Trulson 369b3e89d9 Begin removal of some Imakefiles, and other no longer useful cruft
This commit will not completely remove all Imake files, specifically
those for sections that have not been completed yet.

Also, the databases dir has been moved to databases-delete-later until
we have everything building and installed properly.
2021-07-03 18:23:40 -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 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 973ebf9ed0 library versioning: use proper format and specify for ALL libraries 2019-12-04 18:09:22 -07:00
Jon Trulson 1079ffa240 configure: create some convenience AC_SUBST's for the global includes
Modify the various makefiles that were doing $(top_builddir)/include/Dt
to use them like @DT_INCDIR@, @TT_INCDIR@, etc...
2019-10-26 14:30:36 -06:00
Jon Trulson 056144488a DtSearch: get it to build, fix up some confusion
There are/were two dproto.h files, one in DtSearch, one in raima.  The
one in raima is the one we want, so replace the global Dt/dproto.h
with it.  Also correct a prototype declaration error in that file.

Delete the dproto.h file in DtSearch, it's garbage and unused.

Next, redo the way yacc is used.  Autotools does "the right thing" by
simply including the .y file in *_SOURCES and using
BUILT_SOURCES/CLEANFILES to manage it.  No need for special rules to
handle yacc and lex.
2019-10-26 14:13:19 -06:00
Jon Trulson 369308b737 The great includes migration of 2019 (autotools)
Ok - so one of the steps in building CDE is an early phase called the
includes phase (make includes).  At this point, all of the public
header files are exported to exports/include/Dt, DtI, ...

Then, the software is built using that include dir.

This of course does not work in autotools.  Much of the software does
things like #include <Dt/something.h>, so in order for the build to
succeed, this behavior must be represented/replicated in some way.

It seems the usual way of dealing with this is to place all public
headers (and in some projects, ALL headers) into a toplevel include
directory.

We now do this for all public headers - they have been moved from
wherever they were and placed in the appropriate spot in includes/

This will break the Imake 'make includes' phase unless the Imakefiles
are fixed (remove the HEADERS = stuff, and the incdir defines).  This
has not been done at this point since in reality, once autotools works
properly, there will be no need for the Imake stuff anymore, and I
intend to get rid of it.

This is just a warning for now - Imake builds in this tree will now
fail at the 'includes' stage.

This commit is only the migration.  In upcoming commits, libtt will be
fixed so that the hack being used before to get around this problem is
removed as there will no longer be any need.

And then the autotools work continues...
2019-10-25 17:01:34 -06:00
Jon Trulson 1d7ed3a17e autotools: many fixups, SUN->SOLARIS, typos, etc
This should allow an autoregen and ./confiure to work.  We only
generate Makefiles for lib/* and ./Makefile for now.  We'll ad more as
we go along.

Make still fails as we need to figure out TT - tirpc lib, rpcgen,
etc.  But it's a start!
2019-10-23 17:34:55 -06:00
Chase 8dfc0f62eb lib/DtSearch: add automake files 2019-10-23 15:34:19 -06:00
Jose Rubio f9790767f3 Fix to different compile warnings.
Fix to multiple int-conversion
Removal of duplicated function definition in dtudcfonted/util.h
Added XtEventHandler prototypes to mtfgui
2019-10-10 19:59:40 +02:00
Jon Trulson 050fd75e80 lib/DtSearch/raima/proto.h: fix OBSD build - don't redef system functions
Remove redeclaration of system functions (strlen, free, open, etc).
Use the system header files.  That's what they are for.
2018-07-09 13:11:33 -06:00
Peter Howkins 2a988f5ad3 libDtSearch: Coverity 86459 2018-07-02 23:28:31 +01:00
Peter Howkins 5b1c87fb43 libDtSearch: Coverity 86119 2018-07-02 23:26:51 +01:00
Peter Howkins 7ecbdc866c libDtSearch: Coverity 86602 2018-07-02 23:23:44 +01:00
Peter Howkins 96c6c5068a libDtSearch: Coverity 86426 2018-07-02 23:21:07 +01:00
Peter Howkins 013f452864 libDtSearch: Coverity 86816 2018-07-02 23:18:00 +01:00
Peter Howkins c96a2cfa51 libDtSearch: Coverity 87018 2018-07-02 23:15:57 +01:00
Peter Howkins 95d6b64800 libDtSearch: Coverity 176038 2018-07-02 23:13:43 +01:00
Peter Howkins aa1bfc0ab3 libDtSearch: Coverity 86579 2018-07-02 23:11:36 +01:00
Peter Howkins f0917ee2b5 libDtSearch: Coverity 87032 2018-07-02 23:09:29 +01:00
Peter Howkins 889650ea45 libDtSearch: Coverity 86944 2018-07-02 23:07:39 +01:00
Peter Howkins 0876476cae libDtSearch: Coverity 86856 2018-07-02 23:01:54 +01:00
Peter Howkins c8233c9200 libDtSearch: Coverity 86804 2018-07-02 22:59:03 +01:00