cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 5232fe15fbc24a43b5182bef885415479a71ef9a
parent 3bd42ae2c10e27e6537c3e67defb9d5a41e71fd3
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 14 May 2019 16:45:24 -0700

Add notes about building st to doc/software.md

Diffstat:
Mdoc/software.md | 44++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+), 0 deletions(-)

diff --git a/doc/software.md b/doc/software.md @@ -85,3 +85,47 @@ Build with make CC=/path/to/cc CFLAGS='-DZDICT_DISABLE_DEPRECATE_WARNINGS -DZBUFF_DISABLE_DEPRECATE_WARNINGS' zstd Some tests fail, which still need to be investigated. + +## st + +Requires a few changes to avoid wide string literals and including +`math.h` on musl targets. On glibc, the declaration of `sigpause` in +`signal.h` with an asm label is not yet supported ([#60]), but since +this is not used, you can define it away by adding `-D '__asm__(x)='` +to your `CFLAGS`. + +```diff +diff --git a/config.def.h b/config.def.h +index 482901e..bd963ae 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -32,7 +32,7 @@ static float chscale = 1.0; + * + * More advanced example: L" `'\"()[]{}" + */ +-wchar_t *worddelimiters = L" "; ++wchar_t *worddelimiters = (wchar_t[]){' ', 0}; + + /* selection timeouts (in milliseconds) */ + static unsigned int doubleclicktimeout = 300; +diff --git a/x.c b/x.c +index 5828a3b..6e006cc 100644 +--- a/x.c ++++ b/x.c +@@ -1,6 +1,5 @@ + /* See LICENSE for license details. */ + #include <errno.h> +-#include <math.h> + #include <limits.h> + #include <locale.h> + #include <signal.h> +@@ -15,6 +14,8 @@ + #include <X11/Xft/Xft.h> + #include <X11/XKBlib.h> + ++float ceilf(float); ++ + static char *argv0; + #include "arg.h" + #include "st.h" +```