lib_util.h (b319d934379f5b819cd195be7e03dbd407566fd4) lib_util.h (84823cc70824c8d842f503d8c2e6d7b0c2d95b61)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2021-2022 Alfonso Sabato Siciliano
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 29 unchanged lines hidden (view full) ---

38extern bool hastermcolors;
39
40/* debug */
41#define BSDDIALOG_DEBUG(y,x,fmt, ...) do { \
42 mvprintw(y, x, fmt, __VA_ARGS__); \
43 refresh(); \
44} while (0)
45
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright (c) 2021-2022 Alfonso Sabato Siciliano
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 29 unchanged lines hidden (view full) ---

38extern bool hastermcolors;
39
40/* debug */
41#define BSDDIALOG_DEBUG(y,x,fmt, ...) do { \
42 mvprintw(y, x, fmt, __VA_ARGS__); \
43 refresh(); \
44} while (0)
45
46/* date */
47#define ISLEAP(year) ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
48
46/* unicode */
47unsigned int strcols(const char *mbstring);
48int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col);
49void mvwaddwch(WINDOW *w, int y, int x, wchar_t wch);
50wchar_t* alloc_mbstows(const char *mbstring);
51
52/* error buffer */
53const char *get_error_string(void);

--- 88 unchanged lines hidden ---
49/* unicode */
50unsigned int strcols(const char *mbstring);
51int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col);
52void mvwaddwch(WINDOW *w, int y, int x, wchar_t wch);
53wchar_t* alloc_mbstows(const char *mbstring);
54
55/* error buffer */
56const char *get_error_string(void);

--- 88 unchanged lines hidden ---