Changeset f4a8734 in mainline for kernel/generic/src/console/prompt.c


Ignore:
Timestamp:
2012-07-10T12:48:24Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
72cf064, f0348c8
Parents:
550af2b
Message:

C style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/prompt.c

    r550af2b rf4a8734  
    4747bool console_prompt_display_all_hints(indev_t *indev, size_t hints)
    4848{
     49        ASSERT(indev);
     50        ASSERT(hints > 0);
     51
    4952        printf("Display all %zu possibilities? (y or n)", hints);
    5053
     
    7477bool console_prompt_more_hints(indev_t *indev, size_t *display_hints)
    7578{
     79        ASSERT(indev);
    7680        ASSERT(display_hints != NULL);
    7781
     
    8185                /* Display a full page again? */
    8286                if (continue_showing_hints == 'y'
    83                                 || continue_showing_hints == 'Y'
    84                                 || continue_showing_hints == ' ') {
     87                    || continue_showing_hints == 'Y'
     88                    || continue_showing_hints == ' ') {
    8589                        *display_hints = MAX_TAB_HINTS - 1;
    8690                        break;
     
    8993                /* Stop displaying hints? */
    9094                if (continue_showing_hints == 'n'
    91                                 || continue_showing_hints == 'N'
    92                                 || continue_showing_hints == 'q'
    93                                 || continue_showing_hints == 'Q') {
     95                    || continue_showing_hints == 'N'
     96                    || continue_showing_hints == 'q'
     97                    || continue_showing_hints == 'Q') {
    9498                        *display_hints = 0;
    9599                        break;
Note: See TracChangeset for help on using the changeset viewer.