Changeset 7c3fb9b in mainline for uspace/app/bdsh/cmds/mod_cmds.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/mod_cmds.c
rfac0ac7 r7c3fb9b 27 27 */ 28 28 29 /* NOTES: 29 /* 30 * NOTES: 30 31 * module_* functions are pretty much identical to builtin_* functions at this 31 32 * point. On the surface, it would appear that making each function dual purpose … … 37 38 * 38 39 * 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 */ 40 42 41 /* TODO: 43 /* 44 * TODO: 42 45 * 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 */ 44 48 45 49 #include <stdio.h> … … 53 57 extern volatile unsigned int cli_interactive; 54 58 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 */ 57 63 int is_module(const char *command) 58 64 { … … 71 77 } 72 78 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 */ 75 83 int is_module_alias(const char *command) 76 84 { … … 105 113 106 114 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 */ 109 119 int help_module(int module, unsigned int extended) 110 120 { … … 121 131 } 122 132 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 */ 125 137 int run_module(int module, char *argv[], iostate_t *new_iostate) 126 138 {
Note:
See TracChangeset
for help on using the changeset viewer.