version 1.28, 2012/05/22 09:36:12 |
version 1.29, 2012/07/10 11:53:01 |
|
|
*ptr++ = '\0'; |
*ptr++ = '\0'; |
val = xstrdup(ptr); |
val = xstrdup(ptr); |
if (strunvis(val, ptr) == -1) { |
if (strunvis(val, ptr) == -1) { |
xfree(val); |
free(val); |
val = xstrdup(ptr); |
val = xstrdup(ptr); |
} |
} |
} else if (entstr[strlen(entstr) - 1] == '@') { |
} else if (entstr[strlen(entstr) - 1] == '@') { |
|
|
break; |
break; |
case TTYCODE_STRING: |
case TTYCODE_STRING: |
if (code->type == TTYCODE_STRING) |
if (code->type == TTYCODE_STRING) |
xfree(code->value.string); |
free(code->value.string); |
code->value.string = xstrdup(val); |
code->value.string = xstrdup(val); |
code->type = ent->type; |
code->type = ent->type; |
break; |
break; |
|
|
} |
} |
} |
} |
|
|
if (val != NULL) |
free(val); |
xfree(val); |
|
} |
} |
} |
} |
|
|
xfree(s); |
free(s); |
} |
} |
|
|
struct tty_term * |
struct tty_term * |
|
|
|
|
for (i = 0; i < NTTYCODE; i++) { |
for (i = 0; i < NTTYCODE; i++) { |
if (term->codes[i].type == TTYCODE_STRING) |
if (term->codes[i].type == TTYCODE_STRING) |
xfree(term->codes[i].value.string); |
free(term->codes[i].value.string); |
} |
} |
xfree(term->name); |
free(term->name); |
xfree(term); |
free(term); |
} |
} |
|
|
int |
int |