Changeset e8975278 in mainline for uspace/lib


Ignore:
Timestamp:
2018-05-10T15:14:02Z (8 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.

Location:
uspace/lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ia32/src/rtld/reloc.c

    rae7d03c re8975278  
    9393                sym = &sym_table[sym_idx];
    9494
    95 /*              DPRINTF("name '%s', value 0x%x, size 0x%x\n",
    96                     str_tab + sym->st_name,
    97                     sym->st_value,
    98                     sym->st_size);
    99 */
     95#if 0
     96                DPRINTF("name '%s', value 0x%x, size 0x%x\n",
     97                    str_tab + sym->st_name, sym->st_value, sym->st_size);
     98#endif
    10099                rel_type = ELF32_R_TYPE(r_info);
    101100                r_ptr = (uint32_t *)(r_offset + m->bias);
  • uspace/lib/c/arch/ia32/src/tls.c

    rae7d03c re8975278  
    3333 */
    3434/** @file
    35   * @ingroup libcia32
     35 * @ingroup libcia32
    3636 */
    3737
  • 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':
  • uspace/lib/trackmod/trackmod.c

    rae7d03c re8975278  
    6262
    6363/** Table for finetune computation.
    64   *
    65   * Finetune is a number ft in [-8 .. 7]. The pitch should be adjusted by
    66   * ft/8 semitones. To adjust pitch by 1/8 semitone down we can mutiply the
    67   * period by 2^(1/12/8) =. 1.0072, one semitone up: 2^-(1/12/8) =. 0.9928,
    68   * to adjust by ft/8 semitones, multiply by 2^(-ft/12/8).
    69   *
    70   * finetune_factor[ft] := 10000 * 2^(-ft/12/8)
    71   * res_period = clip(period * fineture_factor[ft+8] / 10000)
    72   */
     64 *
     65 * Finetune is a number ft in [-8 .. 7]. The pitch should be adjusted by
     66 * ft/8 semitones. To adjust pitch by 1/8 semitone down we can mutiply the
     67 * period by 2^(1/12/8) =. 1.0072, one semitone up: 2^-(1/12/8) =. 0.9928,
     68 * to adjust by ft/8 semitones, multiply by 2^(-ft/12/8).
     69 *
     70 * finetune_factor[ft] := 10000 * 2^(-ft/12/8)
     71 * res_period = clip(period * fineture_factor[ft+8] / 10000)
     72 */
    7373static unsigned finetune_factor[16] = {
    7474        10595, 10518, 10443, 10368, 10293, 10219, 10145, 10072,
     
    731731                }
    732732
    733 /*              if (np < period_min)
     733#if 0
     734                /* XXX */
     735                if (np < period_min)
    734736                        np = period_min;
    735737                if (np > period_max)
    736738                        np = period_max;
    737 */
     739#endif
    738740                modplay->chan[i].period = np;
    739741        }
  • uspace/lib/trackmod/types/trackmod.h

    rae7d03c re8975278  
    153153        int vol_slide;
    154154        /** Portamento amount (positive for tone and up portamento,
    155           * negative for down portamento. */
     155         * negative for down portamento. */
    156156        int portamento;
    157157        /** Tone portamento target period. */
Note: See TracChangeset for help on using the changeset viewer.