This eases some upcoming changes to the internal structure of the `agxbuf` type.
The trailing calls to `agxbclear` are removed because they are no longer
necessary; the `agxbuse` call does the same thing.
Gitlab: #2302
if (len > 0) {
if (len > 80)
len = 80;
- agxbprint(&xb, "\nString starting:\"%.*s", (int)len, Sbuf.buf);
+ agxbprint(&xb, "\nString starting:\"%.*s", (int)len, agxbuse(&Sbuf));
}
- agxbclear(&Sbuf);
break;
}
case hstring: {
if (len > 0) {
if (len > 80)
len = 80;
- agxbprint(&xb, "\nString starting:<%.*s", (int)len, Sbuf.buf);
+ agxbprint(&xb, "\nString starting:<%.*s", (int)len, agxbuse(&Sbuf));
}
- agxbclear(&Sbuf);
break;
}
case comment :