25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: debugger_expr.c,v 1.10 2006/12/30 13:30:56 debug Exp $ |
* $Id: debugger_expr.c,v 1.11 2007/06/15 17:02:39 debug Exp $ |
29 |
* |
* |
30 |
* Expression evaluator. |
* Expression evaluator. |
31 |
* |
* |
257 |
while (expr[0] == '\t' || expr[0] == ' ') |
while (expr[0] == '\t' || expr[0] == ' ') |
258 |
expr ++; |
expr ++; |
259 |
|
|
260 |
copy = strdup(expr); |
CHECK_ALLOCATION(copy = strdup(expr)); |
|
if (copy == NULL) { |
|
|
fprintf(stderr, "debugger_parse_expression(): out of memory\n"); |
|
|
exit(1); |
|
|
} |
|
261 |
|
|
262 |
while (copy[0] && copy[strlen(copy)-1] == ' ') |
while (copy[0] && copy[strlen(copy)-1] == ' ') |
263 |
copy[strlen(copy)-1] = '\0'; |
copy[strlen(copy)-1] = '\0'; |