Commit Graph

2655 Commits

Author SHA1 Message Date
de556c50bc Обновить cde/debian/control
trixie fix build
2025-12-24 17:27:18 +03:00
Peter Howkins
dd3fd3ddf8 lib/tt/mini_isam: Update to use strict prototypes, required for C23/GCC 15 etc 2025-12-23 17:34:45 +00:00
Chase
2081389353 il: remove ilxpm(P).h 2025-12-20 12:44:32 -07:00
Chase
36b6f82ee8 ttce2xdr: use autoconf substitutions 2025-12-20 12:32:46 -07:00
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
de2c06c54d remove system library prototypes 2025-12-18 22:58:26 +01:00
Patrick Georgi
1a524cb93a lib/tt: Align types
int, long, and Recno are close enough but newer compilers became more
strict about nominal vs structural compatibility.
2025-12-18 22:58:26 +01:00
Patrick Georgi
acdee57318 Fix issues with va_lists
Identified by clangsa.
2025-12-18 22:58:26 +01:00
Patrick Georgi
aced075a9f lib/DtSvc: Free memory more soundly
It _probably_ works to just pass free(ptr) another two arguments, but
compilers don't like this kind of sloppiness anymore.
The call site only expects this function to free the first value,
ignoring the other two, so model that in the local wrapper function.
2025-12-18 22:58:26 +01:00
Patrick Georgi
ae001c320f fix misleading indentation
Mostly to shut up the compiler, but some real bugs hidden in there.
2025-12-18 22:58:26 +01:00
Patrick Georgi
dca08bc5c2 terminate warning string 2025-12-18 22:58:26 +01:00
Patrick Georgi
fa31987221 dtlogin: Avoid putenv to fix issue with passing stack address
putenv doesn't copy the data, so the stack address used here is plain
wrong. It _probably_ doesn't matter all that much because it's
immediately followed by execv(), but let's keep things clean.
2025-12-18 22:58:26 +01:00
Patrick Georgi
b86eff35f0 Fix memory leaks 2025-12-18 22:58:26 +01:00
Patrick Georgi
ae767ed3dc Mark error handlers as "noreturn"
Match X headers to satisfy newer compilers.
2025-12-18 22:58:26 +01:00
Patrick Georgi
ef2c655f55 Use NULL instead of nullptr
NULL is standard for long enough in POSIX to always be available,
while C23 introduced nullptr as a new constant, creating a conflict
here.
2025-12-18 22:58:26 +01:00
Patrick Georgi
5787ee456e avoid use-after-free 2025-12-18 22:58:26 +01:00
Patrick Georgi
01b9288a2b Remove FAR declarations 2025-12-18 22:58:26 +01:00
Patrick Georgi
ccbf6a8f8f lib/tt: pass int by ref 2025-12-18 22:58:26 +01:00
Patrick Georgi
c0ad5170c9 Avoid "bool" variable name
C23 has a type of that name.
2025-12-18 22:58:26 +01:00
Patrick Georgi
4d41663c58 Avoid conflict with X11 headers 2025-12-18 22:58:25 +01:00
Patrick Georgi
3947facfa2 Remove trailing newlines 2025-12-18 22:58:24 +01:00
Patrick Georgi
a6f26ad279 dtmail: Update project files 2025-12-18 00:39:02 +01:00
Chase
61ed7ad39c dthelp: merge duplicate headers 2025-12-14 13:32:54 -07:00
Chase
44a8e2bb4f poll.h: fix ordering 2025-12-14 13:28:17 -07:00
Chase
e64189f19d Feature test for poll.h 2025-12-14 13:27:55 -07:00
Jon Trulson
0dc238d08e configure.ac: add checks for "compress" and "uncompress"
These are typically part of the "ncompress" package.
2025-12-12 08:13:33 -07:00
Jon Trulson
5bfdd6f533 dtcm/cm_i18n.c: remove use of fcvt (obsolete), fix sign
Fixes #184
2025-12-06 18:57:59 -07:00
Chase
62a23fc33b dtsession: split ShowWaitState into Enter and LeaveWaitState 2025-11-30 16:30:14 -07:00
Chase
5639630d61 dtwm: fix hourglass not showing up where it should 2025-11-30 16:30:14 -07:00
Chase
f38cd20c5c dtmail: remove DEAD_WOOD code 2025-11-30 16:26:42 -07:00
Jon Trulson
e945fc8b08 Release 2.5.3 2025-11-25 13:09:08 -07:00
Chase
9d9f3f9380 dthelp/parser: use standard ctype case functions 2025-11-25 12:31:07 -07:00
Chase
48aaa75f11 dtfile: use sh instead of ksh for find command 2025-11-25 12:12:49 -07:00
Jon Trulson
76b99355ce fix: t_optmgmt: Incorrect options format
From a diff file provided by Mariusz Zynel:

    Every time, every dt program gives that error on its
    start. t_optmgmt() is called once in _tt_tli_set_nodelay(), as the
    name says, to set TCP_NODELAY option for ToolTalk connections.
2025-11-15 13:09:49 -07:00
Myrrh Periwinkle
9f0f015c4d libDtWidget: Do not mix wide and narrow operations on the same stream
The current behavior is not standards conformant, and will cause the
format operation to result in empty text as glibc fails any calls to
getwc against a narrow stream with WEOF. Additionally, narrow write
operations against a wide stream appears to bypass the buffer, causing
incorrect formatting results.

Fix this by changing all write operations against the reformatted output
file stream to be wide operations, and reopening the temporary input
file before performing any wide read operations.
2025-06-13 18:16:32 +07:00
b'Jon Trulson
bb0a127a84 Merge /u/runlevel5/cde/ branch print-help-gcc15 into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/75/
2025-04-16 18:35:44 +00:00
Trung Lê
37aaaf424e tt/mini_isam: explicitly declare compfunc parameters
qsort() needs compfunc(const void *, const void *) instead of (char *, char *)
2025-04-16 00:01:20 +10:00
Trung Lê
509c722936 tt/ttauth: Update print_help()
Ensure callers use 2 parameters for the call
2025-04-01 10:06:56 +11:00
Dark Ayron
f0be964d6c dtwm: add support for more mouse buttons
Some mice have more than 3 buttons. Although Xlib.h doesn't provide
definitions for these buttons, button 6 to 9 is reported through the
XButtonEvent struct.
This adds support for mapping actions to mouse button 6 to 9.
2025-03-19 09:47:12 -06:00
Jon Trulson
465b8461c6 tradcpp: fix bool issue with newer compilers (GCC 15)
tradcpp/bool.h used the wrong check for determining C99+ stdbool.h
support by the compiler.  Use __STDC_VERSION__ rather than __STDC__.
2025-03-11 09:21:35 -06:00
hyousatsu
38a1b9fcca dtwm: manage windows properly to avoid potential
segmentation faults.
2025-03-01 02:43:25 -05:00
Nilton Perim Neto
e4c1e173fa Made a workaround to not use the sh_access
The sh_access was defined to two arguments
Made a workaround to not use the sh_access
that was outputting the error.
Not ideal, but it will hopefully compile on Arch Linux

Also added mksh for compatibility
Ksh is unmaintained in the Arch User Repository

Signed-off-by: Nilton Perim Neto <niltonperimneto@gmail.com>
2025-02-03 14:47:17 -03:00
hyousatsu
fbc9488037 dtcreate: make pop-ups work properly. 2024-09-09 06:39:02 +00:00
hyousatsu
121510cb72 DtMmdb: fix a crash occurs when creating bookmark. 2024-07-21 00:43:27 +00:00
hyousatsu
f0123efa84 Fix some warnings. 2024-07-21 00:43:27 +00:00
hyousatsu
c79224b367 DtMmdb: replace ostring with std::string. 2024-07-16 09:05:46 +00:00
hyousatsu
ba49a9e161 dtdocbook: link to lmdb. 2024-07-16 09:05:45 +00:00
hyousatsu
c7ade43d86 DtMmdb: replace Berkeley DB with LMDB. 2024-07-16 09:05:38 +00:00
Jon Trulson
3fa42c44a8 dtcm: Chase FreeBSD src bb421be6c117 which moved ftime(3)
Patch from Cy Schubert:

FreeBSD bb421be6c117 moved ftime(3) from libcompat to libutil. This
results in the following error,

ld: error: undefined symbol: ftime
>>> referenced by getdate.c
>>>               libDtCmP_a-getdate.o:(cm_getdate) in archive
../libDtCmP/libDtCmP.a
>>> did you mean: ctime

Signed off by:	Cy Schubert <cy@FreeBSD.org>
2024-06-02 17:51:26 -06:00