Changeset 91ef0d95 in mainline


Ignore:
Timestamp:
2005-12-13T22:30:31Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dbb6886
Parents:
5a95b25
Message:

Symtab completion now completes even * and & symbols.

File:
1 edited

Legend:

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

    r5a95b25 r91ef0d95  
    145145 * @returns - 0 - nothing found, 1 - success, >1 print duplicates
    146146 */
    147 int symtab_compl(char *name)
     147int symtab_compl(char *input)
    148148{
    149149        char output[MAX_SYMBOL_NAME+1];
     
    152152        int found = 0;
    153153        int i;
     154        char *name = input;
     155
     156        /* Allow completion of pointers  */
     157        if (name[0] == '*' || name[0] == '&')
     158                name++;
    154159
    155160        /* Do not print everything */
    156161        if (!strlen(name))
    157162                return 0;
     163       
    158164
    159165        output[0] = '\0';
     
    181187                }
    182188        }
    183         strncpy(name, output, MAX_SYMBOL_NAME);
     189        strncpy(input, output, MAX_SYMBOL_NAME);
    184190        return found;
    185191       
Note: See TracChangeset for help on using the changeset viewer.