Commit Graph

123 Commits

Author SHA1 Message Date
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
Peter Howkins 85022e0218 (Pascal Stumpf) Makefile.am change several places where ${prefix} should be $(CDE_INSTALLATION_TOP) 2023-01-22 23:23:53 +00:00
Jon Trulson 2d0c4d6d39 Kill off OSMAJORVERSION and OSMINORVERSION defines/cpp flags
This has meant very little for a long time as configure.ac just
hardcoded these values depending on the current OS versions at the
time.

The only place where this is really 'needed' is XlationSvc.c in DtSvc
so that differences between locale specifications on various versions
of an OS can be accounted for. So for now, we just define those when
building DtSvc.

We could probably safely remove them as well with an update to the
Xlate locale DB to remove ancient cruft we don't care about anymore.

For various other modules, like dtlogin, dtsession, etc we just use
the code that was already being used due to the hardcoded values we've
had for the last 10-ish years.
2022-08-06 17:57:44 -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 edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Liang Chang 9fcdd2564e dtappbuilder: improve font settings. 2022-02-01 01:40:17 +08: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 dddca18f9b dtbuilder.c.src: fix empty-body warnings 2021-12-19 12:02:40 -07:00
Jon Trulson ab409095d6 Fix a couple of unused-comparison clang warnings 2021-12-12 12:52:14 -07:00
Jon Trulson dda11f0e38 Fix a bunch of -Wempty-body warnings reported by clang
Many of these were real bugs, like:

if (cond);
   do_something

etc...

Others were just cosmetic - like placing the ';' on a separate line to
make the intention clear.
2021-12-11 13:10:24 -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 be6bc0aa54 Remove some unused imake *.tmpl files
We still keep some of them for doc/ and dtinfo until those are
building properly.
2021-09-19 14:42:11 -06:00
Jon Trulson 1fda5afcc2 dtappbuilder: try to fix a dep error causeing every make to rebuild
With the addition of dtappbuilder to autotools, every make run
(including make install) causes src/ab to regenerate files that cause
the whole directory to be recompiled, even on a 'make install'.

This seems to be primarily caused by dtbuilder.msg (and possibly
dtbuilder.c) being modified after it is generated, which is apparently
normal behavior for dtcodegen.

This fix sets both dtbuilder.msg and dtbuilder.c as "order-dependant
prequisites" so that they are always generated first (there are
already rules to do generate them) and then subsequently the only
thing required is that they exist since we don't care if they are
modified after that point.  If you need to make changes to them, edit
their respective .src files instead.

This seems to resolve the issue, but perhaps at the expense of adding
another requirement to use gmake.

We also need to disable parallel building in this module :(
2021-07-04 18:49:57 -06:00
Jon Trulson 72e6e90706 dtappbuilder: use /bin/sh rather than /bin/csh as default shell 2021-07-04 18:04:32 -06:00
Jon Trulson fbf58acca7 appbuilder/ab: fix a typo on CLEANFILES line 2021-07-04 17:26:40 -06:00
Adam Sampson edf57b6db3 libAButil: remove lt- prefix from program name
When building a program foo in-tree, libtool 2.4.6 generates an
executable called lt-foo with a wrapper script called foo. This
means that argv[0] inside the program is lt-foo rather than foo.

This is a problem for dtcodegen, which uses the program name for various
purposes including the "generated by" banner and the logfile name.
Remove the lt- prefix if present to avoid this.
2021-07-04 13:17:09 -06:00
Jon Trulson 51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06:00
Jon Trulson f294ee03b8 bilP.h: re-fix include issue with bil_parser.h 2021-06-02 20:24:14 -06:00
Liang Chang 997d11a702 dtappbuilder: Fix unsigned integer rollover. 2021-06-02 19:56:29 -06:00
Liang Chang 44cba6f3d1 dtappbuilder: Fix a crash when resize a text pane. The crash is occurred when
drag on the scrollbar to resize.
2021-06-02 19:56:29 -06:00
Liang Chang 7f7c2ca045 dtappbuilder: set the minimum limit for rows and columns to avoid rollover. 2021-06-02 19:56:28 -06:00
Liang Chang 0b27b11c6b dtappbuilder: set the default size (in pixels) for terminal pane. 2021-06-02 19:56:28 -06:00
Liang Chang caf8c25c15 dtappbuilder: ensure the resize box always inside the main window to avoid the
rendering glitch.
2021-06-02 19:56:28 -06:00
Liang Chang 191f1476bd dtappbuilder: set limits on the resize rectangle to avoid rollover. 2021-06-02 19:56:28 -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
Liang Chang 6dcbe6275d dtappbuilder: fix issues of property settings for text field. 2021-06-02 19:56:28 -06:00
Liang Chang f203067211 dtappbuilder: fix issues of property settings for term pane. 2021-06-02 19:56:28 -06:00
Liang Chang 8d6262ca3e dtappbuilder: fix issues of property settings for spin box. 2021-06-02 19:56:28 -06:00
Liang Chang 808ce58e3d dtappbuilder: fix issues of property settings for separator. 2021-06-02 19:56:28 -06:00
Liang Chang 8c4375d435 dtappbuilder: fix issues of property settings for scale. 2021-06-02 19:56:28 -06:00
Liang Chang ade018eb79 dtappbuilder: fix issues of property settings for menubar. 2021-06-02 19:56:28 -06:00
Liang Chang c8116cae70 dtappbuilder: fix issues of property settings for menu. 2021-06-02 19:56:28 -06:00
Liang Chang 16b11c143c dtappbuilder: fix issues of property settings for main window. 2021-06-02 19:56:28 -06:00
Liang Chang f266789703 dtappbuilder: fix issues of property settings for label. 2021-06-02 19:56:28 -06:00
Liang Chang c99824a47a dtappbuilder: fix issues of property settings for group. 2021-06-02 19:56:28 -06:00
Liang Chang 18d195cdf5 dtappbuilder: fix issues of property settings for file selection dialog. 2021-06-02 19:56:28 -06:00
Liang Chang 6b93ec7733 dtappbuilder: fix issues of property settings for draw area pane. 2021-06-02 19:56:28 -06:00
Liang Chang 49136ea0b6 dtappbuilder: fix issues of property settings for custom dialog. 2021-06-02 19:56:28 -06:00
Liang Chang a179685eab dtappbuilder: fix issues of property settings for control pane. 2021-06-02 19:56:28 -06:00
Liang Chang 7cd96a802d dtappbuilder: fix issues of property settings for combo box. 2021-06-02 19:56:28 -06:00
Liang Chang 06596f9cf8 dtappbuilder: fix issues of property settings for choice. 2021-06-02 19:56:28 -06:00
Liang Chang c5ca7bca30 dtappbuilder: fix issues of property settings for button. 2021-06-02 19:56:28 -06:00
Liang Chang 606225bef2 dtappbuilder: fix issues of property settings for list. 2021-06-02 19:56:28 -06:00
Liang Chang d42a89232a dtappbuilder: adjust data types to avoid type casting errors. 2021-06-02 19:56:28 -06:00