Ignore:
Timestamp:
2008-08-27T05:36:12Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b4b7b6
Parents:
b510d52
Message:

Housekeeping list, complete lingering things before they get forgotten:

  • cli_*() now sets a global cli_errno, error functions cleaned up
  • Finish internal cli_*() functions in util.c
  • Don't expose cli_init() or cli_finit()
  • Get rid of unused globals
  • Don't set globals in commands themselves
  • Update README files
  • Fix stale comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/help/help.c

    rb510d52 re2ea8d7e  
    4141static char *cmdname = "help";
    4242extern const char *progname;
    43 extern unsigned int cli_interactive;
    4443
    4544#define HELP_IS_MODULE   1
     
    127126        }
    128127
    129         printf("%sAvailable commands are:\n", cli_interactive ? "\n  " : "");
    130         if (cli_interactive)
    131                 printf(
    132                         "  ------------------------------------------------------------\n");
     128        printf("\n  Available commands are:\n");
     129        printf("  ------------------------------------------------------------\n");
    133130
    134131        /* First, show a list of built in commands that are available in this mode */
     
    156153        }
    157154
    158         /* Provide  a little more information and inform them of history / line
    159          * editing features if they are present */
    160         if (cli_interactive)
    161                 printf("\n  Try %s %s for more information on how `%s' works.\n\n",
    162                         cmdname, cmdname, cmdname);
     155        printf("\n  Try %s %s for more information on how `%s' works.\n\n",
     156                cmdname, cmdname, cmdname);
    163157
    164158        return CMD_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.