Subversion Repositories HelenOS

Rev

Rev 1888 | Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1888 Rev 1972
Line 202... Line 202...
202
 * @param name - string to match, changed to hint on exit
202
 * @param name - string to match, changed to hint on exit
203
 * @return number of found matches
203
 * @return number of found matches
204
 */
204
 */
205
static int cmdtab_compl(char *name)
205
static int cmdtab_compl(char *name)
206
{
206
{
207
    char output[MAX_SYMBOL_NAME+1];
207
    static char output[MAX_SYMBOL_NAME+1];
208
    link_t *startpos = NULL;
208
    link_t *startpos = NULL;
209
    const char *foundtxt;
209
    const char *foundtxt;
210
    int found = 0;
210
    int found = 0;
211
    int i;
211
    int i;
212
 
212
 
Line 242... Line 242...
242
 
242
 
243
static char * clever_readline(const char *prompt, chardev_t *input)
243
static char * clever_readline(const char *prompt, chardev_t *input)
244
{
244
{
245
    static int histposition = 0;
245
    static int histposition = 0;
246
 
246
 
247
    char tmp[MAX_CMDLINE+1];
247
    static char tmp[MAX_CMDLINE+1];
248
    int curlen = 0, position = 0;
248
    int curlen = 0, position = 0;
249
    char *current = history[histposition];
249
    char *current = history[histposition];
250
    int i;
250
    int i;
251
    char mod; /* Command Modifier */
251
    char mod; /* Command Modifier */
252
    char c;
252
    char c;
Line 431... Line 431...
431
    }
431
    }
432
}
432
}
433
 
433
 
434
static int parse_int_arg(char *text, size_t len, unative_t *result)
434
static int parse_int_arg(char *text, size_t len, unative_t *result)
435
{
435
{
436
    char symname[MAX_SYMBOL_NAME];
436
    static char symname[MAX_SYMBOL_NAME];
437
    uintptr_t symaddr;
437
    uintptr_t symaddr;
438
    bool isaddr = false;
438
    bool isaddr = false;
439
    bool isptr = false;
439
    bool isptr = false;
440
   
440
   
441
    /* If we get a name, try to find it in symbol table */
441
    /* If we get a name, try to find it in symbol table */