Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 059a8e4 in mainline


Ignore:
Timestamp:
2012-03-22T10:30:51Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
4567b31c, 6514d1f, e0fe4ab
Parents:
971cc0cc
Message:

rename str_uint64() to str_uint64_t() for better consistency with the str_<type>() family of functions

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/str.h

    r971cc0cc r059a8e4  
    9797extern bool wstr_remove(wchar_t *str, size_t pos);
    9898
    99 extern int str_uint64(const char *, char **, unsigned int, bool, uint64_t *);
     99extern int str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *);
    100100
    101101extern void order_suffix(const uint64_t, uint64_t *, char *);
  • kernel/generic/src/console/cmd.c

    r971cc0cc r059a8e4  
    906906                   ((char *) argv->buffer)[0] <= '9') {
    907907                uint64_t value;
    908                 rc = str_uint64((char *) argv->buffer, NULL, 0, true, &value);
     908                rc = str_uint64_t((char *) argv->buffer, NULL, 0, true, &value);
    909909                if (rc == EOK)
    910910                        addr = (uintptr_t) value;
  • kernel/generic/src/console/kconsole.c

    r971cc0cc r059a8e4  
    472472                /* It's a number - convert it */
    473473                uint64_t value;
    474                 int rc = str_uint64(text, NULL, 0, true, &value);
     474                int rc = str_uint64_t(text, NULL, 0, true, &value);
    475475                switch (rc) {
    476476                case EINVAL:
  • kernel/generic/src/lib/str.c

    r971cc0cc r059a8e4  
    893893 *
    894894 */
    895 int str_uint64(const char *nptr, char **endptr, unsigned int base,
     895int str_uint64_t(const char *nptr, char **endptr, unsigned int base,
    896896    bool strict, uint64_t *result)
    897897{
  • kernel/generic/src/sysinfo/stats.c

    r971cc0cc r059a8e4  
    474474        /* Parse the task ID */
    475475        task_id_t task_id;
    476         if (str_uint64(name, NULL, 0, true, &task_id) != EOK)
     476        if (str_uint64_t(name, NULL, 0, true, &task_id) != EOK)
    477477                return ret;
    478478       
     
    545545        /* Parse the thread ID */
    546546        thread_id_t thread_id;
    547         if (str_uint64(name, NULL, 0, true, &thread_id) != EOK)
     547        if (str_uint64_t(name, NULL, 0, true, &thread_id) != EOK)
    548548                return ret;
    549549       
     
    662662        /* Parse the exception number */
    663663        uint64_t excn;
    664         if (str_uint64(name, NULL, 0, true, &excn) != EOK)
     664        if (str_uint64_t(name, NULL, 0, true, &excn) != EOK)
    665665                return ret;
    666666       
  • uspace/lib/c/generic/str.c

    r971cc0cc r059a8e4  
    15351535 *
    15361536 */
    1537 int str_uint64(const char *nptr, char **endptr, unsigned int base,
     1537int str_uint64_t(const char *nptr, char **endptr, unsigned int base,
    15381538    bool strict, uint64_t *result)
    15391539{
  • uspace/lib/c/include/str.h

    r971cc0cc r059a8e4  
    106106extern int str_uint16_t(const char *, char **, unsigned int, bool, uint16_t *);
    107107extern int str_uint32_t(const char *, char **, unsigned int, bool, uint32_t *);
    108 extern int str_uint64(const char *, char **, unsigned int, bool, uint64_t *);
     108extern int str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *);
    109109extern int str_size_t(const char *, char **, unsigned int, bool, size_t *);
    110110
  • uspace/lib/usb/src/dev.c

    r971cc0cc r059a8e4  
    122122        char *ptr;
    123123
    124         rc = str_uint64(path, &ptr, 10, false, &sid);
     124        rc = str_uint64_t(path, &ptr, 10, false, &sid);
    125125        if (rc != EOK) {
    126126                return false;
Note: See TracChangeset for help on using the changeset viewer.