diff options
author | Karl Linden <karl.j.linden@gmail.com> | 2016-01-28 11:29:07 +0100 |
---|---|---|
committer | Karl Linden <karl.j.linden@gmail.com> | 2016-01-28 11:29:07 +0100 |
commit | a9079314095031654751c3d247d314dd2568bd1a (patch) | |
tree | 224fc3a2cdf4746e0c772cae5962444f7e746eb3 | |
parent | dd7d23431eae1e4bf3251a19709cff418ff09ae4 (diff) | |
download | jack2-a9079314095031654751c3d247d314dd2568bd1a.tar.gz |
example-clients/transport.c: replace '#ifdef' with '#if' and '#ifndef x' with '#if !x'
-rw-r--r-- | example-clients/transport.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/example-clients/transport.c b/example-clients/transport.c index cadf1d41..fd258d8f 100644 --- a/example-clients/transport.c +++ b/example-clients/transport.c @@ -24,14 +24,14 @@ #include <signal.h> #include <stdlib.h> #include <string.h> -#ifdef HAVE_READLINE +#if HAVE_READLINE #include <readline/readline.h> #include <readline/history.h> #endif #include <jack/jack.h> #include <jack/transport.h> -#ifndef HAVE_READLINE +#if !HAVE_READLINE #define whitespace(c) (((c) == ' ') || ((c) == '\t')) #endif @@ -389,7 +389,7 @@ static char *command_generator (const char *text, int state) static void command_loop() { -#ifdef HAVE_READLINE +#if HAVE_READLINE char *line, *cmd; char prompt[32]; @@ -408,7 +408,7 @@ static void command_loop() /* Read and execute commands until the user quits. */ while (!done) { -#ifdef HAVE_READLINE +#if HAVE_READLINE line = readline(prompt); if (line == NULL) { /* EOF? */ @@ -428,13 +428,13 @@ static void command_loop() /* If anything left, add to history and execute it. */ if (*cmd) { -#ifdef HAVE_READLINE +#if HAVE_READLINE add_history(cmd); #endif execute_command(cmd); } -#ifdef HAVE_READLINE +#if HAVE_READLINE free(line); /* realine() called malloc() */ #endif } @@ -459,7 +459,7 @@ int main(int argc, char *argv[]) return 1; } -#ifndef WIN32 +#if !WIN32 signal(SIGQUIT, signal_handler); signal(SIGHUP, signal_handler); #endif |