Changeset 7f1c620 in mainline for generic/src/console/kconsole.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/kconsole.c

    r991779c5 r7f1c620  
    432432}
    433433
    434 static int parse_int_arg(char *text, size_t len, __native *result)
     434static int parse_int_arg(char *text, size_t len, unative_t *result)
    435435{
    436436        char symname[MAX_SYMBOL_NAME];
    437         __address symaddr;
     437        uintptr_t symaddr;
    438438        bool isaddr = false;
    439439        bool isptr = false;
     
    454454                        return -1;
    455455                }
    456                 if (symaddr == (__address) -1) {
     456                if (symaddr == (uintptr_t) -1) {
    457457                        printf("Duplicate symbol %s.\n",symname);
    458458                        symtab_print_search(symname);
     
    460460                }
    461461                if (isaddr)
    462                         *result = (__native)symaddr;
     462                        *result = (unative_t)symaddr;
    463463                else if (isptr)
    464                         *result = **((__native **)symaddr);
     464                        *result = **((unative_t **)symaddr);
    465465                else
    466                         *result = *((__native *)symaddr);
     466                        *result = *((unative_t *)symaddr);
    467467        } else { /* It's a number - convert it */
    468468                *result = atoi(text);
    469469                if (isptr)
    470                         *result = *((__native *)*result);
     470                        *result = *((unative_t *)*result);
    471471        }
    472472
     
    555555                                        min((end-start), cmd->argv[i].len));
    556556                                buf[min((end - start), cmd->argv[i].len - 1)] = '\0';
    557                                 cmd->argv[i].intval = (__native) buf;
     557                                cmd->argv[i].intval = (unative_t) buf;
    558558                                cmd->argv[i].vartype = ARG_TYPE_STRING;
    559559                        } else if (!parse_int_arg(cmdline+start, end-start+1,
Note: See TracChangeset for help on using the changeset viewer.