Removed
Link Here
|
1 |
diff --git tty-term.c tty-term.c |
2 |
index fdf0c4fa..873e1ce2 100644 |
3 |
--- tty-term.c |
4 |
+++ tty-term.c |
5 |
@@ -762,33 +762,53 @@ tty_term_string(struct tty_term *term, enum tty_code_code code) |
6 |
const char * |
7 |
tty_term_string1(struct tty_term *term, enum tty_code_code code, int a) |
8 |
{ |
9 |
- return (tparm((char *) tty_term_string(term, code), a, 0, 0, 0, 0, 0, 0, 0, 0)); |
10 |
+ const char *x = tty_term_string(term, code), *s; |
11 |
+ s = tiparm_s(1, 0, x, a); |
12 |
+ if (s == NULL) |
13 |
+ fatalx("could not expand %s", tty_term_codes[code].name); |
14 |
+ return (s); |
15 |
} |
16 |
|
17 |
const char * |
18 |
tty_term_string2(struct tty_term *term, enum tty_code_code code, int a, int b) |
19 |
{ |
20 |
- return (tparm((char *) tty_term_string(term, code), a, b, 0, 0, 0, 0, 0, 0, 0)); |
21 |
+ const char *x = tty_term_string(term, code), *s; |
22 |
+ s = tiparm_s(2, 0, x, a, b); |
23 |
+ if (s == NULL) |
24 |
+ fatalx("could not expand %s", tty_term_codes[code].name); |
25 |
+ return (s); |
26 |
} |
27 |
|
28 |
const char * |
29 |
tty_term_string3(struct tty_term *term, enum tty_code_code code, int a, int b, |
30 |
int c) |
31 |
{ |
32 |
- return (tparm((char *) tty_term_string(term, code), a, b, c, 0, 0, 0, 0, 0, 0)); |
33 |
+ const char *x = tty_term_string(term, code), *s; |
34 |
+ s = tiparm_s(3, 0, x, a, b, c); |
35 |
+ if (s == NULL) |
36 |
+ fatalx("could not expand %s", tty_term_codes[code].name); |
37 |
+ return (s); |
38 |
} |
39 |
|
40 |
const char * |
41 |
tty_term_ptr1(struct tty_term *term, enum tty_code_code code, const void *a) |
42 |
{ |
43 |
- return (tparm((char *) tty_term_string(term, code), (long)a, 0, 0, 0, 0, 0, 0, 0, 0)); |
44 |
+ const char *x = tty_term_string(term, code), *s; |
45 |
+ s = tiparm_s(1, 1, x, a); |
46 |
+ if (s == NULL) |
47 |
+ fatalx("could not expand %s", tty_term_codes[code].name); |
48 |
+ return (s); |
49 |
} |
50 |
|
51 |
const char * |
52 |
tty_term_ptr2(struct tty_term *term, enum tty_code_code code, const void *a, |
53 |
const void *b) |
54 |
{ |
55 |
- return (tparm((char *) tty_term_string(term, code), (long)a, (long)b, 0, 0, 0, 0, 0, 0, 0)); |
56 |
+ const char *x = tty_term_string(term, code), *s; |
57 |
+ s = tiparm_s(2, 3, x, a, b); |
58 |
+ if (s == NULL) |
59 |
+ fatalx("could not expand %s", tty_term_codes[code].name); |
60 |
+ return (s); |
61 |
} |
62 |
|
63 |
int |
64 |
- |