Changeset e8975278 in mainline for uspace/lib/posix/src/stdio/scanf.c


Ignore:
Timestamp:
2018-05-10T15:14:02Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1420cae9
Parents:
ae7d03c
git-author:
Jiri Svoboda <jiri@…> (2018-05-10 07:53:56)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-10 15:14:02)
Message:

A few more cstyle fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/stdio/scanf.c

    rae7d03c re8975278  
    6161        _PROV_READY,
    6262        /** Cursor is temporarily lent to the external entity. No action is
    63           * possible until the cursor is returned.  */
     63         * possible until the cursor is returned.  */
    6464        _PROV_CURSOR_LENT,
    6565};
     
    7474        int fetched;
    7575        /** Elements are fetched from the source in batches (e.g. by getline())
    76           * to allow using strtol/strtod family even on streams. */
     76         * to allow using strtol/strtod family even on streams. */
    7777        char *window;
    7878        /** Size of the current window. */
     
    8484
    8585        /** Take control over data source. Finish initialization of the internal
    86           * structures (e.g. allocation of window). */
     86         * structures (e.g. allocation of window). */
    8787        void (*capture)(struct __input_provider *);
    8888        /** Get a single element from the source and update the internal structures
    89           * accordingly (e.g. greedy update of the window). Return -1 if the
    90           * element cannot be obtained. */
     89         * accordingly (e.g. greedy update of the window). Return -1 if the
     90         * element cannot be obtained. */
    9191        int (*pop)(struct __input_provider *);
    9292        /** Undo the most recent not-undone pop operation. Might be necesarry to
    93           * flush current window and seek data source backwards. Return 0 if the
    94           * pop history is exhausted, non-zero on success. */
     93         * flush current window and seek data source backwards. Return 0 if the
     94         * pop history is exhausted, non-zero on success. */
    9595        int (*undo)(struct __input_provider *);
    9696        /** Lend the cursor to the caller.  */
    9797        const char *(*borrow_cursor)(struct __input_provider *);
    9898        /** Take control over possibly incremented cursor and update the internal
    99           * structures if necessary. */
     99         * structures if necessary. */
    100100        void (*return_cursor)(struct __input_provider *, const char *);
    101101        /** Release the control over the source. That is, synchronize any
    102           * fetched but non-consumed elements (e.g. by seeking) and destruct
    103           * internal structures (e.g. window deallocation). */
     102         * fetched but non-consumed elements (e.g. by seeking) and destruct
     103         * internal structures (e.g. window deallocation). */
    104104        void (*release)(struct __input_provider *);
    105105} _input_provider;
     
    411411                *base = 10;
    412412                return 1;
    413         case 'p': /* According to POSIX, %p modifier is implementation defined but
    414                            * must correspond to its printf counterpart. */
     413        case 'p':
     414                /* According to POSIX, %p modifier is implementation defined but
     415                 * must correspond to its printf counterpart. */
    415416        case 'x':
    416417        case 'X':
Note: See TracChangeset for help on using the changeset viewer.