Rev 3346 | Rev 4153 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3346 | Rev 3386 | ||
---|---|---|---|
1 | #ifndef MODULE_ALIASES_H |
1 | #ifndef MODULE_ALIASES_H |
2 | #define MODULE_ALIASES_H |
2 | #define MODULE_ALIASES_H |
3 | 3 | ||
4 | /* Modules that declare multiple names for themselves but use the |
4 | /* Modules that declare multiple names for themselves but use the |
5 | * same entry functions are aliases. This array helps to determine if |
5 | * same entry functions are aliases. This array helps to determine if |
6 | * a module is an alias, as such it can be invoked differently. |
6 | * a module is an alias, as such it can be invoked differently. |
7 | * format is alias , real_name */ |
7 | * format is alias , real_name */ |
8 | 8 | ||
9 | /* So far, this is only used in the help display but could be used to |
9 | /* So far, this is only used in the help display but could be used to |
10 | * handle a module differently even prior to reaching its entry code. |
10 | * handle a module differently even prior to reaching its entry code. |
11 | * For instance, 'exit' could behave differently than 'quit', prior to |
11 | * For instance, 'exit' could behave differently than 'quit', prior to |
12 | * the entry point being reached. */ |
12 | * the entry point being reached. */ |
13 | 13 | ||
14 | char *mod_aliases[] = { |
14 | char *mod_aliases[] = { |
15 | "exit", "quit", |
15 | "exit", "quit", |
16 | "md", "mkdir", |
16 | "md", "mkdir", |
17 | "del", "rm", |
17 | "del", "rm", |
18 | "dir", "ls", |
18 | "dir", "ls", |
19 | NULL, NULL |
19 | NULL, NULL |
20 | }; |
20 | }; |
21 | 21 | ||
22 | #endif |
22 | #endif |
23 | 23 |