Trivial: Rename completion_result variables.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Mar 2018 01:14:58 +0000 (02:14 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 22 Apr 2018 18:30:37 +0000 (20:30 +0200)
Most completers call the completion result pointer "cr", but some use
"result" instead. Let's be consistent and rename those to cr.

audioc.c
client.c
play.c

index d9478ab..e1a225d 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -95,15 +95,15 @@ I9E_DUMMY_COMPLETER(tasks);
 I9E_DUMMY_COMPLETER(term);
 
 static void help_completer(struct i9e_completion_info *ci,
-               struct i9e_completion_result *result)
+               struct i9e_completion_result *cr)
 {
        char *opts[] = {LSG_AUDIOD_CMD_HELP_OPTS, NULL};
 
        if (ci->word[0] == '-') {
-               i9e_complete_option(opts, ci, result);
+               i9e_complete_option(opts, ci, cr);
                return;
        }
-       result->matches = i9e_complete_commands(ci->word, audiod_completers);
+       cr->matches = i9e_complete_commands(ci->word, audiod_completers);
 }
 
 static void version_completer(struct i9e_completion_info *ci,
index c43ebe1..bc5132b 100644 (file)
--- a/client.c
+++ b/client.c
@@ -248,15 +248,15 @@ I9E_DUMMY_COMPLETER(tasks);
 static struct i9e_completer completers[];
 
 static void help_completer(struct i9e_completion_info *ci,
-               struct i9e_completion_result *result)
+               struct i9e_completion_result *cr)
 {
        char *opts[] = {LSG_SERVER_CMD_HELP_OPTS, NULL};
 
        if (ci->word[0] == '-') {
-               i9e_complete_option(opts, ci, result);
+               i9e_complete_option(opts, ci, cr);
                return;
        }
-       result->matches = i9e_complete_commands(ci->word, completers);
+       cr->matches = i9e_complete_commands(ci->word, completers);
 }
 
 static void stat_completer(struct i9e_completion_info *ci,
diff --git a/play.c b/play.c
index 876fa9c..233da70 100644 (file)
--- a/play.c
+++ b/play.c
@@ -707,15 +707,15 @@ I9E_DUMMY_COMPLETER(quit);
 I9E_DUMMY_COMPLETER(ff);
 
 static void help_completer(struct i9e_completion_info *ci,
-               struct i9e_completion_result *result)
+               struct i9e_completion_result *cr)
 {
        char *opts[] = {LSG_PLAY_CMD_HELP_OPTS, NULL};
 
        if (ci->word[0] == '-') {
-               i9e_complete_option(opts, ci, result);
+               i9e_complete_option(opts, ci, cr);
                return;
        }
-       result->matches = i9e_complete_commands(ci->word, pp_completers);
+       cr->matches = i9e_complete_commands(ci->word, pp_completers);
 }
 
 static struct i9e_completer pp_completers[] = {