Ignore:
Timestamp:
2019-02-12T20:42:42Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f31ca47
Parents:
7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
Message:

Merge branch 'master' into bdsh_alias

Conflicts:

uspace/app/bdsh/Makefile
uspace/app/bdsh/cmds/modules/modules.h

Ccheck correction and removing header which includes itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/modules.h

    r7f7817a9 rab936440  
    3030#define MODULES_H
    3131
    32 /*
    33  * Each built in function has two files, one being an entry.h file which
    34  * prototypes the run/help entry functions, the other being a .def file
    35  * which fills the modules[] array according to the cmd_t structure
    36  * defined in cmds.h.
    37  *
    38  * To add or remove a module, just make a new directory in cmds/modules
    39  * for it and copy the 'show' example for basics, then include it here.
    40  * (or reverse the process to remove one)
    41  *
    42  * NOTE: See module_ aliases.h as well, this is where aliases (commands that
    43  * share an entry point with others) are indexed
    44  */
     32#include "../cmds.h"
    4533
    46 #include "config.h"
    47 
    48 /* Prototypes for each module's entry (help/exec) points */
    49 
    50 #include "help/entry.h"
    51 #include "mkdir/entry.h"
    52 #include "mkfile/entry.h"
    53 #include "rm/entry.h"
    54 #include "cat/entry.h"
    55 #include "touch/entry.h"
    56 #include "ls/entry.h"
    57 #include "pwd/entry.h"
    58 #include "sleep/entry.h"
    59 #include "cp/entry.h"
    60 #include "mv/entry.h"
    61 #include "mount/entry.h"
    62 #include "unmount/entry.h"
    63 #include "kcon/entry.h"
    64 #include "printf/entry.h"
    65 #include "echo/entry.h"
    66 #include "cmp/entry.h"
    67 #include "alias/entry.h"
    68 #include "unalias/entry.h"
    69 
    70 /*
    71  * Each .def function fills the module_t struct with the individual name, entry
    72  * point, help entry point, etc. You can use config.h to control what modules
    73  * are loaded based on what libraries exist on the system.
    74  */
    75 
    76 module_t modules[] = {
    77 #include "help/help_def.inc"
    78 #include "mkdir/mkdir_def.inc"
    79 #include "mkfile/mkfile_def.inc"
    80 #include "rm/rm_def.inc"
    81 #include "cat/cat_def.inc"
    82 #include "touch/touch_def.inc"
    83 #include "ls/ls_def.inc"
    84 #include "pwd/pwd_def.inc"
    85 #include "sleep/sleep_def.inc"
    86 #include "cp/cp_def.inc"
    87 #include "mv/mv_def.inc"
    88 #include "mount/mount_def.inc"
    89 #include "unmount/unmount_def.inc"
    90 #include "kcon/kcon_def.inc"
    91 #include "printf/printf_def.inc"
    92 #include "echo/echo_def.inc"
    93 #include "cmp/cmp_def.inc"
    94 #include "alias/alias_def.inc"
    95 #include "unalias/unalias_def.inc"
    96 
    97         { NULL, NULL, NULL, NULL }
    98 };
     34extern module_t modules[];
    9935
    10036#endif
Note: See TracChangeset for help on using the changeset viewer.