blob: 4945141b25b617dffb5ce7b3c6a69d922ac9de0f [file] [log] [blame]
Tim Duesterhusc1af0ba2021-09-15 13:58:43 +02001@@
2struct ist i;
3expression p, l;
4@@
5
6- i.ptr = p;
7- i.len = l;
8+ i = ist2(p, l);
9
10@@
11@@
12
13- ist2(NULL, 0)
14+ IST_NULL
15
16@@
17struct ist i;
18expression e;
19@@
20
21- i.ptr += e;
22- i.len -= e;
23+ i = istadv(i, e);
24
25@@
26struct ist i;
27@@
28
Tim Duesterhusef00c532021-11-04 22:35:43 +010029- i = istadv(i, 1);
30+ i = istnext(i);
31
32@@
33struct ist i;
Tim Duesterhusef00c532021-11-04 22:35:43 +010034@@
35
36- i.ptr++;
37- i.len--;
38+ i = istnext(i);
39
40@@
41struct ist i;
42@@
43
Tim Duesterhus958f5042021-11-06 15:14:43 +010044- (\(i.ptr\|istptr(i)\) + \(i.len\|istlen(i)\))
45+ istend(i)
46
47@@
48struct ist i;
Tim Duesterhus9b80a6c2021-11-08 09:05:00 +010049expression e;
50@@
51
52- if (\(i.len\|istlen(i)\) > e) { i.len = e; }
53+ i = isttrim(i, e);
54
55@@
56struct ist i;
Tim Duesterhus755d2412021-11-08 09:05:02 +010057struct buffer *b;
58@@
59
60- chunk_memcat(b, \(i.ptr\|istptr(i)\) , \(i.len\|istlen(i)\));
61+ chunk_istcat(b, i);
62
63@@
64struct ist i;
Tim Duesterhus958f5042021-11-06 15:14:43 +010065@@
66
Tim Duesterhusc1af0ba2021-09-15 13:58:43 +020067- i.ptr != NULL
68+ isttest(i)
69
70@@
71char *s;
72@@
73
74(
75- ist2(s, strlen(s))
76+ ist(s)
77|
78- ist2(strdup(s), strlen(s))
79+ ist(strdup(s))
80)