projects
/
csrpg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87b17d1
)
fixed ERR_H redefinition
master
author
matthew
<matthew@owens.tech>
Tue, 6 Nov 2018 19:46:46 +0000
(19:46 +0000)
committer
matthew
<matthew@owens.tech>
Tue, 6 Nov 2018 19:46:46 +0000
(19:46 +0000)
nogl/err.c
patch
|
blob
|
history
diff --git
a/nogl/err.c
b/nogl/err.c
index
930bed6
..
4af0422
100644
(file)
--- a/
nogl/err.c
+++ b/
nogl/err.c
@@
-8,8
+8,8
@@
static char* lpath = NULL;
#define ERR_X 0
#define ERR_Y 0
#define ERR_X 0
#define ERR_Y 0
-#define ERR_W 80
-#define ERR_H 3
+#define ERR_W
IDTH
80
+#define ERR_H
EIGHT
3
void err_output(const char *message)
{
void err_output(const char *message)
{
@@
-17,7
+17,7
@@
void err_output(const char *message)
fprintf(stderr, message);
} else {
err_clear();
fprintf(stderr, message);
} else {
err_clear();
- win = newwin(ERR_H
, ERR_W
, ERR_Y, ERR_X);
+ win = newwin(ERR_H
EIGHT, ERR_WIDTH
, ERR_Y, ERR_X);
wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
mvwprintw(win, 1, 2, message);
wrefresh(win);
wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
mvwprintw(win, 1, 2, message);
wrefresh(win);