lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 2815505 was a000878c, checked in by Martin Decky <martin@…>, 16 years ago |
|
make sure that all statically allocated strings are declared as "const char *"
and are treated as read-only
|
-
Property mode
set to
100644
|
|
File size:
624 bytes
|
| Rev | Line | |
|---|
| [216d6fc] | 1 | #ifndef MODULE_ALIASES_H
|
|---|
| 2 | #define MODULE_ALIASES_H
|
|---|
| 3 |
|
|---|
| 4 | /* Modules that declare multiple names for themselves but use the
|
|---|
| 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.
|
|---|
| 7 | * format is alias , real_name */
|
|---|
| 8 |
|
|---|
| 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.
|
|---|
| 11 | * For instance, 'exit' could behave differently than 'quit', prior to
|
|---|
| 12 | * the entry point being reached. */
|
|---|
| 13 |
|
|---|
| [a000878c] | 14 | const char *mod_aliases[] = {
|
|---|
| [046f342] | 15 | "ren", "mv",
|
|---|
| [0cb2d72] | 16 | "umount", "unmount",
|
|---|
| [216d6fc] | 17 | NULL, NULL
|
|---|
| 18 | };
|
|---|
| 19 |
|
|---|
| 20 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.