~aperezdc/sue

fb376750 — Adrian Perez de Castro 2 years ago main
Recreate manual page using mandoc macros

Re-create the sue.1 manual page from the sue.mdoc source which uses
mandoc to ease maintenance. The build system is changed to prefer
installing the manual page from the mandoc source, with a fallback
to using a prebuilt copy.
cfa5d9a5 — Adrian Perez de Castro 2 years ago
Remove "lookbusy" command (^O-B)
75b08dbb — Adrian Perez de Castro 2 years ago
Replace wp[1234] macros with a single one

The wp[1234] macros in reality are accomodating for the fact that
the C preprocessor did not use to have vararg macros, so replace
them all with a single wpn() macro which uses __VA_ARGS__.
db453a2b — Adrian Perez de Castro 2 years ago
Make it buildable without -fcommon

Ensure that the WINDOW* variables are defined only once, which allows
build without adding -fcommon to the compiler options.
97177a38 — Adrian Perez de Castro 2 years ago
Build in C99 mode
65c4ffab — Adrian Perez de Castro 2 years ago
Add missing <term.h> header
397283ae — Adrian Perez de Castro 2 years ago
Replace CNTRL_@ with CNTRL_0 to avoid token paste warning
481872a5 — Adrian Perez de Castro 2 years ago
Make xwprintw() a varargs function

While at it, change it to use vsnprintf() to limit the amount of
formatted written text to the size of the used buffer.
7bb42ae4 — Adrian Perez de Castro 2 years ago
Make promptst() a varargs function

Change the promptst() function to receive a variable number of
arguments. This needed rearranging the order of parameters in order
to have the varargs ellipsis (...) at the end of the list. In turn,
prompts() called prompt(), which needed moving the bulk of it into
a reusable promptv() function used both by promptst() and the regular
prompt() functions.
907ed490 — Adrian Perez de Castro 2 years ago
Make prompt() a varargs function

Change the prompt() function to explicitly receive a variable number
of arguments.
7b622066 — Adrian Perez de Castro 2 years ago
Use function attributes to mark printf-style arguments
5912337f — Adrian Perez de Castro 2 years ago
Make status() a varargs function

Change the status() function to explicitly receive a variable number of
arguments. Those were forwarded to statprint(), so this patch in turn
calls a new statprintv() function which receives a va_list and is used
both by status() and statprint().
e1df750d — Adrian Perez de Castro 2 years ago
Fix compiler conversion and unused variable warnings
dd1febef — Adrian Perez de Castro 2 years ago
Add editorconfig and gitignore files
6d4878c9 — Adrian Perez de Castro 2 years ago
Avoid nested comment begin/end tokens
67dd2cd2 — Adrian Perez de Castro 2 years ago
Do not define getopt interface externs

Symbols related to getopt() provided by libc should not be defined.
Instead, rely on <unistd.h> contaning them, which is something every
modern Unixish system does these days.
fd9fe42c — Adrian Perez de Castro 2 years ago
display: Handle missing dnothing case
1d7bdad5 — Adrian Perez de Castro 2 years ago
Convert almost all function to use ANSI prototypes

Because K&R style is a thing of the past. While at it, convert a couple
of functions to use <stdarg.h>, and mark some as "static" because they
are not used outside of their compilation units.
8f0ce1ce — Adrian Perez de Castro 2 years ago
Avoid redefinition of SIGSYS, fix value

Linux system (at least glibc based ones) define SIGSYS. For those which
do not have a definition, change the supplied value to the correct one.
ab2850b6 — Adrian Perez de Castro 2 years ago
Remove RCS version strings from sources
Next
Do not follow this link