]> git.tuebingen.mpg.de Git - paraslash.git/commit
server: Remove ->argc, ->argv from struct command_context.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 22 May 2016 11:37:48 +0000 (13:37 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
commit7e9cc63d2f6539585d47221e75031ba8bc172dec
treea81b05fe390e79720574c6e6f09ef2a35fc5dfc4
parentb3f6c5fa7f0fe78e825ecc83f3b9f9893c0427c6
server: Remove ->argc, ->argv from struct command_context.

Command handlers should not look at the argv[] vector directly
but only use the lopsub library functions to access the parsed
command line.

In fact, the only function which accesses the argv vector is
run_command(). Defining argc and argv as local variables in this
function allows to drop the two members from the command context
structure.
command.c
command.h