Ignore:
Timestamp:
2012-04-01T19:21:45Z (13 years ago)
Author:
Prutkov Alex <prutkov.alex@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9d58539
Parents:
8e81a7e
Message:

Renamed process_esc to process_ctl, more comments added

File:
1 edited

Legend:

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

    r8e81a7e r087c27f6  
    5858}
    5959
    60 
     60/** Print a formatted data with lib printf.
     61 *
     62 * Currently available format flags are:
     63 * '%d' - integer.
     64 * '%u' - unsigned integer.
     65 * '%s' - null-terminated string.
     66 *****
     67 * @param ch  formatted flag.
     68 * @param arg string with data to print.
     69 */
    6170static int print_arg(wchar_t ch, const char* arg)
    6271{
     
    7786}
    7887
    79 static int process_esc(wchar_t ch)
     88/** Process a control character.
     89 *
     90 * Currently available characters are:
     91 * '\n' - new line.
     92 *****
     93 * @param ch  Control character.
     94 */
     95static int process_ctl(wchar_t ch)
    8096{
    8197        switch(ch) {
     
    90106
    91107
    92 /* Prints formatted data.
     108/** Prints formatted data.
     109 *
    93110 * Accepted format flags:
    94111 * %d - print an integer
     
    148165                default:
    149166                        if (esc_flag) {
    150                                 process_esc(ch);
     167                                process_ctl(ch);
    151168                                esc_flag = false;
    152169                                break;
Note: See TracChangeset for help on using the changeset viewer.