[riot-commits] [RIOT-OS/RIOT] 1332e3: shell: refactor default shell command handling

Kaspar Schleiser kaspar at schleiser.de
Mon Dec 2 17:21:46 CET 2013


  Branch: refs/heads/shell_refactor
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 1332e35a70938febcf0cd2c98f5db0dc4b4b4949
      https://github.com/RIOT-OS/RIOT/commit/1332e35a70938febcf0cd2c98f5db0dc4b4b4949
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M sys/shell/shell.c

  Log Message:
  -----------
  shell: refactor default shell command handling

before, we actually duplicated code for handling of shell commands
supplied to shell_init and those hardcoded by MODULE_SHELL_COMMANDS.

This patch refactors shell.c find_handler and print_help so there's
no duplicated code.


  Commit: 3ac16ce0494b2a27402d161860d82b935dd654d6
      https://github.com/RIOT-OS/RIOT/commit/3ac16ce0494b2a27402d161860d82b935dd654d6
  Author: Kaspar Schleiser <kaspar at schleiser.de>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M sys/shell/shell.c

  Log Message:
  -----------
  shell: fix compile warning and add some comments


Compare: https://github.com/RIOT-OS/RIOT/compare/1332e35a7093^...3ac16ce0494b


More information about the commits mailing list