diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-22 05:19:04 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-22 05:19:04 +0530 |
commit | 95d0eb6a172a88844a7e102305734d5bd5e34877 (patch) | |
tree | 31f37d94d10bea5d3a250a34e1c38853f33fbbdc | |
parent | f0fa3bba87b2afcabe53d350772fa81190b5629f (diff) | |
download | nnn-95d0eb6a172a88844a7e102305734d5bd5e34877.tar.gz |
Use a shorter macro
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/nnn.c | 12 |
2 files changed, 7 insertions, 7 deletions
@@ -36,7 +36,7 @@ $(BIN): $(SRC) $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) debug: $(SRC) - $(CC) -DDEBUGMODE -g $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS) + $(CC) -DDBGMODE -g $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS) install: all $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin @@ -101,7 +101,7 @@ #include "nnn.h" -#ifdef DEBUGMODE +#ifdef DBGMODE static int DEBUG_FD; static int @@ -158,7 +158,7 @@ disabledbg() #define DPRINTF_U(x) #define DPRINTF_S(x) #define DPRINTF_P(x) -#endif /* DEBUGMODE */ +#endif /* DBGMODE */ /* Macro definitions */ #define VERSION "2.3" @@ -2717,7 +2717,7 @@ static int dentfind(const char *fname, int n) static void populate(char *path, char *lastname) { -#ifdef DEBUGMODE +#ifdef DBGMODE struct timespec ts1, ts2; clock_gettime(CLOCK_REALTIME, &ts1); /* Use CLOCK_MONOTONIC on FreeBSD */ @@ -2729,7 +2729,7 @@ static void populate(char *path, char *lastname) qsort(dents, ndents, sizeof(*dents), entrycmp); -#ifdef DEBUGMODE +#ifdef DBGMODE clock_gettime(CLOCK_REALTIME, &ts2); DPRINTF_U(ts2.tv_nsec - ts1.tv_nsec); #endif @@ -4252,7 +4252,7 @@ int main(int argc, char *argv[]) #endif read_history(NULL); -#ifdef DEBUGMODE +#ifdef DBGMODE enabledbg(); #endif if (!initcurses()) @@ -4286,7 +4286,7 @@ int main(int argc, char *argv[]) close(kq); #endif -#ifdef DEBUGMODE +#ifdef DBGMODE disabledbg(); #endif return 0; |