]> git.sur5r.net Git - openocd/commit
add CMD_NAME variable in command_invocation
authorZachary T Welch <zw@superlucidity.net>
Mon, 16 Nov 2009 13:46:15 +0000 (05:46 -0800)
committerZachary T Welch <zw@superlucidity.net>
Tue, 17 Nov 2009 19:40:21 +0000 (11:40 -0800)
commitcffc98ad8047b6dc8d38a6422136638f2df992d2
tree678ece1f99a35ab8dad501f9ca0c048ebcef872b
parentbe084414ba00a4ad641af04c3c6858312dd1b336
add CMD_NAME variable in command_invocation

Update CMD_NAME from its migratory home in CMD_ARGV[-1] to cmd->name.
Allows CMD_ARGV++ idiom to be used safely in command handlers.
src/helper/command.c
src/helper/command.h