commit e28d93535f67c37e322845bf7a9e2b5c74877060
parent ed9804a3083880a3f1976e44095eab0e2db75a22
Author: Claudio Alessi <smoppy@gmail.com>
Date: Thu, 24 Mar 2016 21:43:16 +0100
s/REFRESH/ISRELOAD/
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/myadm.c b/myadm.c
@@ -29,7 +29,7 @@ char *argv0;
#define LENGTH(X) (sizeof X / sizeof X[0])
#define QUOTE(S) (stfl_ipool_fromwc(ipool, stfl_quote(stfl_ipool_towc(ipool, S))))
#define LINESIZE(N) (MAXCOLSZ * (N) + fldseplen * ((N) - 1) + 1);
-#define REFRESH(M) (selview && !strcmp(selview->mode->name, M))
+#define ISRELOAD(M) (selview && !strcmp(selview->mode->name, M))
typedef union {
int i;
@@ -250,7 +250,7 @@ void
databases(const Arg *arg) {
MYSQL_RES *res;
- if(!REFRESH("databases")) {
+ if(!ISRELOAD("databases")) {
selview = newaview("databases", databases);
selview->form = stfl_form(L"<items.stfl>");
}
@@ -521,7 +521,7 @@ records(const Arg *arg) {
View *v;
char *tbl;
- if(!REFRESH("records")) {
+ if(!ISRELOAD("records")) {
v = newaview("records", records);
v->choice = cloneitem(getitem(0));
v->form = stfl_form(L"<items.stfl>");
@@ -676,7 +676,7 @@ tables(const Arg *arg) {
MYSQL_RES *res;
View *v;
- if(!REFRESH("tables")) {
+ if(!ISRELOAD("tables")) {
v = newaview("tables", tables);
v->choice = cloneitem(getitem(0));
v->form = stfl_form(L"<items.stfl>");