Changeset 7c3fb9b in mainline for uspace/app/bdsh/cmds/mod_cmds.c


Ignore:
Timestamp:
2018-05-17T08:29:01Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ff23ff
Parents:
fac0ac7
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
Message:

Fix block comment formatting (ccheck).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/mod_cmds.c

    rfac0ac7 r7c3fb9b  
    2727 */
    2828
    29 /* NOTES:
     29/*
     30 * NOTES:
    3031 * module_* functions are pretty much identical to builtin_* functions at this
    3132 * point. On the surface, it would appear that making each function dual purpose
     
    3738 *
    3839 * To keep things easy to hack, everything is separated. In reality this only adds
    39  * 6 - 8 extra functions, but keeps each function very easy to read and modify. */
     40 * 6 - 8 extra functions, but keeps each function very easy to read and modify.
     41 */
    4042
    41 /* TODO:
     43/*
     44 * TODO:
    4245 * Many of these could be unsigned, provided the modules and builtins themselves
    43  * can follow suit. Long term goal. */
     46 * can follow suit. Long term goal.
     47 */
    4448
    4549#include <stdio.h>
     
    5357extern volatile unsigned int cli_interactive;
    5458
    55 /* Checks if an entry function matching command exists in modules[], if so
    56  * its position in the array is returned */
     59/** Checks if an entry function matching command exists in modules[]
     60 *
     61 * If so, its position in the array is returned
     62 */
    5763int is_module(const char *command)
    5864{
     
    7177}
    7278
    73 /* Checks if a module is an alias (sharing an entry point with another
    74  * module). Returns 1 if so */
     79/*
     80 * Checks if a module is an alias (sharing an entry point with another
     81 * module). Returns 1 if so
     82 */
    7583int is_module_alias(const char *command)
    7684{
     
    105113
    106114
    107 /* Invokes the 'help' entry function for the module at position (int) module,
    108  * which wants an unsigned int to determine brief or extended display. */
     115/** Invokes the 'help' entry function for the module at position (int) module
     116 *
     117 * which wants an unsigned int to determine brief or extended display.
     118 */
    109119int help_module(int module, unsigned int extended)
    110120{
     
    121131}
    122132
    123 /* Invokes the module entry point modules[module], passing argv[] as an argument
    124  * stack. */
     133/** Invokes the module entry point modules[module]
     134 *
     135 * passing argv[] as an argument stack.
     136 */
    125137int run_module(int module, char *argv[], iostate_t *new_iostate)
    126138{
Note: See TracChangeset for help on using the changeset viewer.