/* Ordering-----------------------------------------------------------*/
static struct vsb *ob[65536];
-static unsigned char invcl[65536];
+static unsigned char flg[65536];
+#define F_INVCL (1 << 0)
static void
clean_order(void)
}
switch (tag) {
case SLT_VCL_call:
- invcl[fd] = 1;
+ flg[fd] |= F_INVCL;
vsb_printf(ob[fd], "%5d %-12s %c %.*s",
fd, VSL_tags[tag],
((spec & VSL_S_CLIENT) ? 'c' : \
return (0);
case SLT_VCL_trace:
case SLT_VCL_return:
- if (invcl[fd]) {
+ if (flg[fd] & F_INVCL) {
vsb_cat(ob[fd], " ");
vsb_bcat(ob[fd], ptr, len);
return (0);
}
break;
default:
- if (invcl[fd])
- vsb_cat(ob[fd], "\n");
- invcl[fd] = 0;
break;
}
- if (invcl[fd]) {
+ if (flg[fd] & F_INVCL) {
vsb_cat(ob[fd], "\n");
- invcl[fd] = 0;
+ flg[fd] &= ~F_INVCL;
}
vsb_printf(ob[fd], "%5d %-12s %c %.*s\n",
fd, VSL_tags[tag],