Commit Graph

109 Commits

Author SHA1 Message Date
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
Liang Chang a64fc5192c dtappbuilder: fix issues of property settings for text pane. 2021-06-02 19:56:27 -06:00
Liang Chang c26c2e75ad dtappbuilder: adjust data types to avoid type casting errors. 2021-06-02 19:56:27 -06:00
Liang Chang d6ad977ba7 dtappbuilder: ensure mouse operations are not interfering by key masks (e.g.,
Caps Lock, Num Lock, etc.) when editing (resize, double-click, etc.) widgets.
2021-06-02 19:56:27 -06:00
Liang Chang cdf48013e0 dtappbuilder: ensure the subtypes of widgets are properly initialized. 2021-06-02 19:56:27 -06:00
Liang Chang 9e4ad4b2f4 dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Menu Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang 49185f2624 dtappbuilder: fix a segmentation fault that occurred when repeating "Add Item"
-> "Delete" -> "Add Item" in the "Revolving Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang 920465cb5b dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Revolving Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang 4389fdd633 dtappbuilder: apply graceful degradation for font loading to avoid a
segmentation fault.
2021-06-02 19:56:26 -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
Chase 14c3c6ebd8 dtappbuilder: make it build in parallel 2021-02-21 18:42:42 -07: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
Jon Trulson 90e61dda5f Merge branch 'master' into autotools-conversion 2020-11-24 16:53:24 -07:00