]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 d9478ab9c6596cad31dc8e31950dcb0a428adbbb..e1a225d77f39917b6eaa2836343f6fdb8a648d05 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 c43ebe161cfa322ce3e08c6f8a980f2e6de846da..bc5132b6ffe620558f78f390eba70ebad6faae59 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 876fa9c2f69ce0782f8422a2431ab99ea42eed58..233da70099b6cdc2bf441bb1bc9cce44fc8da701 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[] = {