]> git.sur5r.net Git - openocd/commit
add 'command type' introspective handler
authorZachary T Welch <zw@superlucidity.net>
Sat, 28 Nov 2009 02:59:14 +0000 (18:59 -0800)
committerZachary T Welch <zw@superlucidity.net>
Sat, 28 Nov 2009 20:58:35 +0000 (12:58 -0800)
commit37dd5a685a67f9069ac0c1d98d47077a67fb897a
treef34e8b56304aa8c61f9c9de99c1128f1701241fc
parent5f0223423d6c9a41bf0a9ac45772d1b01469bf0a
add 'command type' introspective handler

Adds the 'command' group handler, with the 'type' command producing
a string that tells whether the given command is 'native' (for Jim-based
command handlers), 'simple' (for simple built-in commands), 'group'
for command group placeholders, and 'unknown' if not found in the
command registration tables (e.g. core built-ins functions).
src/helper/command.c