Changeset 98000fb in mainline for kernel/generic/src/debug/symtab.c


Ignore:
Timestamp:
2009-06-03T19:34:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/symtab.c

    r69e68e3 r98000fb  
    5656{
    5757#ifdef CONFIG_SYMTAB
    58         count_t i;
     58        size_t i;
    5959       
    6060        for (i = 1; symbol_table[i].address_le; i++) {
     
    113113 *
    114114 */
    115 static const char *symtab_search_one(const char *name, count_t *startpos)
    116 {
    117         count_t namelen = str_length(name);
    118        
    119         count_t pos;
     115static const char *symtab_search_one(const char *name, size_t *startpos)
     116{
     117        size_t namelen = str_length(name);
     118       
     119        size_t pos;
    120120        for (pos = *startpos; symbol_table[pos].address_le; pos++) {
    121121                const char *curname = symbol_table[pos].symbol_name;
     
    154154{
    155155#ifdef CONFIG_SYMTAB
    156         count_t found = 0;
    157         count_t pos = 0;
     156        size_t found = 0;
     157        size_t pos = 0;
    158158        const char *hint;
    159159       
     
    183183{
    184184#ifdef CONFIG_SYMTAB
    185         count_t pos = 0;
     185        size_t pos = 0;
    186186        while (symtab_search_one(name, &pos)) {
    187187                uintptr_t addr = uint64_t_le2host(symbol_table[pos].address_le);
     
    204204 *
    205205 */
    206 int symtab_compl(char *input, count_t size)
     206int symtab_compl(char *input, size_t size)
    207207{
    208208#ifdef CONFIG_SYMTAB
     
    217217                return 0;
    218218       
    219         count_t found = 0;
    220         count_t pos = 0;
     219        size_t found = 0;
     220        size_t pos = 0;
    221221        const char *hint;
    222222        char output[MAX_SYMBOL_NAME];
Note: See TracChangeset for help on using the changeset viewer.