Changeset 7f1c620 in mainline for generic/src/console/kconsole.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/kconsole.c
r991779c5 r7f1c620 432 432 } 433 433 434 static int parse_int_arg(char *text, size_t len, __native*result)434 static int parse_int_arg(char *text, size_t len, unative_t *result) 435 435 { 436 436 char symname[MAX_SYMBOL_NAME]; 437 __addresssymaddr;437 uintptr_t symaddr; 438 438 bool isaddr = false; 439 439 bool isptr = false; … … 454 454 return -1; 455 455 } 456 if (symaddr == ( __address) -1) {456 if (symaddr == (uintptr_t) -1) { 457 457 printf("Duplicate symbol %s.\n",symname); 458 458 symtab_print_search(symname); … … 460 460 } 461 461 if (isaddr) 462 *result = ( __native)symaddr;462 *result = (unative_t)symaddr; 463 463 else if (isptr) 464 *result = **(( __native**)symaddr);464 *result = **((unative_t **)symaddr); 465 465 else 466 *result = *(( __native*)symaddr);466 *result = *((unative_t *)symaddr); 467 467 } else { /* It's a number - convert it */ 468 468 *result = atoi(text); 469 469 if (isptr) 470 *result = *(( __native*)*result);470 *result = *((unative_t *)*result); 471 471 } 472 472 … … 555 555 min((end-start), cmd->argv[i].len)); 556 556 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; 558 558 cmd->argv[i].vartype = ARG_TYPE_STRING; 559 559 } else if (!parse_int_arg(cmdline+start, end-start+1,
Note:
See TracChangeset
for help on using the changeset viewer.