Changeset 1433ecda in mainline for uspace/lib/c/generic/io


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/lib/c/generic/io
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/printf_core.c

    r47b2d7e3 r1433ecda  
    593593/** Prints a special double (ie NaN, infinity) padded to width characters. */
    594594static int print_special(ieee_double_t val, int width, uint32_t flags,
    595         printf_spec_t *ps)
     595    printf_spec_t *ps)
    596596{
    597597        assert(val.is_special);
     
    702702 */
    703703static int print_double_str_fixed(double_str_t *val_str, int precision, int width,
    704         uint32_t flags, printf_spec_t *ps)
     704    uint32_t flags, printf_spec_t *ps)
    705705{
    706706        int len = val_str->len;
     
    840840 */
    841841static int print_double_fixed(double g, int precision, int width, uint32_t flags,
    842         printf_spec_t *ps)
     842    printf_spec_t *ps)
    843843{
    844844        if (flags & __PRINTF_FLAG_LEFTALIGNED) {
     
    869869                 */
    870870                val_str.len = double_to_fixed_str(val, -1, precision + 1, buf, buf_size,
    871                         &val_str.dec_exp);
     871                    &val_str.dec_exp);
    872872
    873873                /*
     
    919919
    920920        exp_str[0] = '0' + exp_val / 100;
    921         exp_str[1] = '0' + (exp_val % 100) / 10 ;
     921        exp_str[1] = '0' + (exp_val % 100) / 10;
    922922        exp_str[2] = '0' + (exp_val % 10);
    923923
     
    938938 */
    939939static int print_double_str_scient(double_str_t *val_str, int precision,
    940         int width, uint32_t flags, printf_spec_t *ps)
     940    int width, uint32_t flags, printf_spec_t *ps)
    941941{
    942942        int len = val_str->len;
     
    10621062 */
    10631063static int print_double_scientific(double g, int precision, int width,
    1064         uint32_t flags, printf_spec_t *ps)
     1064    uint32_t flags, printf_spec_t *ps)
    10651065{
    10661066        if (flags & __PRINTF_FLAG_LEFTALIGNED) {
     
    10881088                 */
    10891089                val_str.len = double_to_fixed_str(val, precision + 2, -1, buf, buf_size,
    1090                         &val_str.dec_exp);
     1090                    &val_str.dec_exp);
    10911091
    10921092                /*
     
    11291129 */
    11301130static int print_double_generic(double g, int precision, int width,
    1131         uint32_t flags, printf_spec_t *ps)
     1131    uint32_t flags, printf_spec_t *ps)
    11321132{
    11331133        ieee_double_t val = extract_ieee_double(g);
     
    11561156                        precision = precision - (dec_exp + 1);
    11571157                        return print_double_fixed(g, precision, width,
    1158                                 flags | __PRINTF_FLAG_NOFRACZEROS, ps);
     1158                            flags | __PRINTF_FLAG_NOFRACZEROS, ps);
    11591159                } else {
    11601160                        --precision;
    11611161                        return print_double_scientific(g, precision, width,
    1162                                 flags | __PRINTF_FLAG_NOFRACZEROS, ps);
     1162                            flags | __PRINTF_FLAG_NOFRACZEROS, ps);
    11631163                }
    11641164        } else {
     
    12141214 */
    12151215static int print_double(double g, char spec, int precision, int width,
    1216         uint32_t flags, printf_spec_t *ps)
     1216    uint32_t flags, printf_spec_t *ps)
    12171217{
    12181218        switch (spec) {
     
    15431543                        case 'e':
    15441544                                retval = print_double(va_arg(ap, double), uc, precision,
    1545                                         width, flags, ps);
     1545                                    width, flags, ps);
    15461546
    15471547                                if (retval < 0) {
  • uspace/lib/c/generic/io/visualizer.c

    r47b2d7e3 r1433ecda  
    174174errno_t visualizer_update_damaged_region(async_sess_t *sess,
    175175    sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height,
    176         sysarg_t x_offset, sysarg_t y_offset)
     176    sysarg_t x_offset, sysarg_t y_offset)
    177177{
    178178        assert(x_offset <= UINT16_MAX);
  • uspace/lib/c/generic/io/vsnprintf.c

    r47b2d7e3 r1433ecda  
    170170        };
    171171        printf_spec_t ps = {
    172                 (int(*) (const char *, size_t, void *)) vsnprintf_str_write,
    173                 (int(*) (const wchar_t *, size_t, void *)) vsnprintf_wstr_write,
     172                (int (*) (const char *, size_t, void *)) vsnprintf_str_write,
     173                (int (*) (const wchar_t *, size_t, void *)) vsnprintf_wstr_write,
    174174                &data
    175175        };
Note: See TracChangeset for help on using the changeset viewer.