mirror of
https://github.com/Cloudef/bemenu
synced 2024-11-23 01:12:01 +01:00
Fixes and docs from osx
This commit is contained in:
parent
acb24be411
commit
ac9790b059
@ -7,7 +7,7 @@ mandir ?= /share/man/man1
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
WARNINGS = -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=5 -Wstack-usage=12500 \
|
||||
-Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2
|
||||
-Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2 -Wno-unknown-warning-option
|
||||
|
||||
override CFLAGS ?= -g -O2 $(WARNINGS)
|
||||
override CFLAGS += -std=c99
|
||||
|
13
README.md
13
README.md
@ -37,6 +37,19 @@ make install PREFIX=/usr
|
||||
make doxygen
|
||||
```
|
||||
|
||||
## OSX
|
||||
|
||||
```sh
|
||||
# Make sure you have GNU Make and pkg-config installed
|
||||
brew install make pkg-config
|
||||
|
||||
# You may need to setup your pkg-config to point to brew version of the libraries
|
||||
# For example to build curses renderer, you'd do:
|
||||
PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig" gmake curses
|
||||
|
||||
# Other than that, follow the normal build steps, but use gmake instead of make
|
||||
```
|
||||
|
||||
## Environment variables
|
||||
|
||||
| Variable | Description | Value |
|
||||
|
@ -339,7 +339,7 @@ void list_sort(struct list *list, int (*compar)(const void *a, const void *b));
|
||||
char* bm_strdup(const char *s);
|
||||
bool bm_resize_buffer(char **in_out_buffer, size_t *in_out_size, size_t nsize);
|
||||
BM_LOG_ATTR(1, 2) char* bm_dprintf(const char *fmt, ...);
|
||||
bool bm_vrprintf(char **in_out_buffer, size_t *in_out_len, const char *fmt, va_list args);
|
||||
BM_LOG_ATTR(3, 0) bool bm_vrprintf(char **in_out_buffer, size_t *in_out_len, const char *fmt, va_list args);
|
||||
size_t bm_strip_token(char *string, const char *token, size_t *out_next);
|
||||
int bm_strupcmp(const char *hay, const char *needle);
|
||||
int bm_strnupcmp(const char *hay, const char *needle, size_t len);
|
||||
|
Loading…
Reference in New Issue
Block a user