Commit 17937b29 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Move the varnishd table building #includes under tbl/ as well.

parent 8b98c9ed
......@@ -78,21 +78,16 @@ varnishd_SOURCES = \
vsm.c
noinst_HEADERS = \
acct_fields.h \
body_status.h \
cache.h \
cache_backend.h \
cache_backend_poll.h \
cache_esi.h \
cache_waiter.h \
common.h \
default_vcl.h \
hash_slinger.h \
heritage.h \
locks.h \
mgt.h \
mgt_cli.h \
steps.h \
stevedore.h \
storage_persistent.h \
vparam.h
......
......@@ -67,7 +67,7 @@
enum body_status {
#define BODYSTATUS(U,l) BS_##U,
#include "body_status.h"
#include "tbl/body_status.h"
#undef BODYSTATUS
};
......@@ -76,7 +76,7 @@ body_status(enum body_status e)
{
switch(e) {
#define BODYSTATUS(U,l) case BS_##U: return (#l);
#include "body_status.h"
#include "tbl/body_status.h"
#undef BODYSTATUS
default:
return ("?");
......@@ -143,7 +143,7 @@ typedef struct {
enum step {
#define STEP(l, u) STP_##u,
#include "steps.h"
#include "tbl/steps.h"
#undef STEP
};
......@@ -213,7 +213,7 @@ struct http_conn {
struct acct {
double first;
#define ACCT(foo) uint64_t foo;
#include "acct_fields.h"
#include "tbl/acct_fields.h"
#undef ACCT
};
......@@ -834,7 +834,7 @@ int Lck_CondWait(pthread_cond_t *cond, struct lock *lck, struct timespec *ts);
#define Lck_AssertHeld(a) Lck__Assert(a, 1)
#define LOCK(nam) extern struct VSC_C_lck *lck_##nam;
#include "locks.h"
#include "tbl/locks.h"
#undef LOCK
/* cache_panic.c */
......
......@@ -78,7 +78,7 @@ struct vbp_target {
/* Collected statistics */
#define BITMAP(n, c, t, b) uint64_t n;
#include "cache_backend_poll.h"
#include "tbl/backend_poll.h"
#undef BITMAP
double last;
......@@ -236,7 +236,7 @@ vbp_start_poke(struct vbp_target *vt)
CHECK_OBJ_NOTNULL(vt, VBP_TARGET_MAGIC);
#define BITMAP(n, c, t, b) vt->n <<= 1;
#include "cache_backend_poll.h"
#include "tbl/backend_poll.h"
#undef BITMAP
vt->last = 0;
......@@ -262,7 +262,7 @@ vbp_has_poked(struct vbp_target *vt)
i = 0;
#define BITMAP(n, c, t, b) bits[i++] = (vt->n & 1) ? c : '-';
#include "cache_backend_poll.h"
#include "tbl/backend_poll.h"
#undef BITMAP
bits[i] = '\0';
......@@ -396,7 +396,7 @@ vbp_health_one(struct cli *cli, const struct vbp_target *vt)
#define BITMAP(n, c, t, b) \
if ((vt->n != 0) || (b)) \
vbp_bitmap(cli, (c), vt->n, (t));
#include "cache_backend_poll.h"
#include "tbl/backend_poll.h"
#undef BITMAP
}
......
......@@ -1605,7 +1605,7 @@ CNT_Session(struct sess *sp)
cnt_diag(sp, #u); \
done = cnt_##l(sp); \
break;
#include "steps.h"
#include "tbl/steps.h"
#undef STEP
default:
WRONG("State engine misfire");
......@@ -1621,7 +1621,7 @@ CNT_Session(struct sess *sp)
AZ(w->do_gunzip);
AZ(w->do_esi);
#define ACCT(foo) AZ(w->acct_tmp.foo);
#include "acct_fields.h"
#include "tbl/acct_fields.h"
#undef ACCT
assert(WRW_IsReleased(w));
}
......
......@@ -196,7 +196,7 @@ Lck_Delete(struct lock *lck)
}
#define LOCK(nam) struct VSC_C_lck *lck_##nam;
#include "locks.h"
#include "tbl/locks.h"
#undef LOCK
void
......@@ -207,6 +207,6 @@ LCK_Init(void)
#define LOCK(nam) \
lck_##nam = VSM_Alloc(sizeof(struct VSC_C_lck), \
VSC_CLASS, VSC_TYPE_LCK, #nam);
#include "locks.h"
#include "tbl/locks.h"
#undef LOCK
}
......@@ -223,7 +223,7 @@ pan_sess(const struct sess *sp)
sp->port ? sp->port : "?");
switch (sp->step) {
#define STEP(l, u) case STP_##u: stp = "STP_" #u; break;
#include "steps.h"
#include "tbl/steps.h"
#undef STEP
default: stp = NULL;
}
......
......@@ -83,7 +83,7 @@ SES_Charge(struct sess *sp)
sp->wrk->stats.s_##foo += a->foo; \
sp->acct_ses.foo += a->foo; \
a->foo = 0;
#include "acct_fields.h"
#include "tbl/acct_fields.h"
#undef ACCT
}
......
#
pkginclude_HEADERS = \
tbl/acct_fields.h \
tbl/backend_poll.h \
tbl/body_status.h \
tbl/locks.h \
tbl/steps.h \
tbl/vsc_all.h \
tbl/vsc_fields.h \
tbl/vsl_tags.h \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment