Commit 50002cc1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Namespace cleanup: vas_fail -> VAS_Fail

parent 9192fc96
......@@ -364,7 +364,7 @@ void
PAN_Init(void)
{
vas_fail = pan_ic;
VAS_Fail = pan_ic;
vsp = &vsps;
AN(VSB_new(vsp, vsm_head->panicstr, sizeof vsm_head->panicstr,
VSB_FIXEDLEN));
......
......@@ -386,7 +386,7 @@ VRT_panic(const struct sess *sp, const char *str, ...)
va_start(ap, str);
b = VRT_String(sp->http->ws, "PANIC: ", str, ap);
va_end(ap);
vas_fail("VCL", "", 0, b, 0, 2);
VAS_Fail("VCL", "", 0, b, 0, 2);
}
/*--------------------------------------------------------------------*/
......
......@@ -274,7 +274,7 @@ vtc_hexdump(struct vtclog *vl, unsigned lvl, const char *pfx, const unsigned cha
/**********************************************************************/
static void
vtc_log_vas_fail(const char *func, const char *file, int line,
vtc_log_VAS_Fail(const char *func, const char *file, int line,
const char *cond, int err, int xxx)
{
struct vtclog *vl;
......@@ -293,4 +293,4 @@ vtc_log_vas_fail(const char *func, const char *file, int line,
}
}
vas_f *vas_fail = vtc_log_vas_fail;
vas_f *VAS_Fail = vtc_log_VAS_Fail;
......@@ -42,7 +42,7 @@
typedef void vas_f(const char *, const char *, int, const char *, int, int);
extern vas_f *vas_fail;
extern vas_f *VAS_Fail;
#ifdef WITHOUT_ASSERTS
#define assert(e) ((void)(e))
......@@ -50,14 +50,14 @@ extern vas_f *vas_fail;
#define assert(e) \
do { \
if (!(e)) \
vas_fail(__func__, __FILE__, __LINE__, #e, errno, 0); \
VAS_Fail(__func__, __FILE__, __LINE__, #e, errno, 0); \
} while (0)
#endif
#define xxxassert(e) \
do { \
if (!(e)) \
vas_fail(__func__, __FILE__, __LINE__, #e, errno, 1); \
VAS_Fail(__func__, __FILE__, __LINE__, #e, errno, 1); \
} while (0)
/* Assert zero return value */
......@@ -68,7 +68,7 @@ do { \
#define diagnostic(foo) assert(foo)
#define WRONG(expl) \
do { \
vas_fail(__func__, __FILE__, __LINE__, expl, errno, 3); \
VAS_Fail(__func__, __FILE__, __LINE__, expl, errno, 3); \
abort(); \
} while (0)
......
......@@ -38,7 +38,7 @@
#include "libvarnish.h"
static void
vas_fail_default(const char *func, const char *file, int line,
VAS_Fail_default(const char *func, const char *file, int line,
const char *cond, int err, int xxx)
{
......@@ -59,4 +59,4 @@ vas_fail_default(const char *func, const char *file, int line,
abort();
}
vas_f *vas_fail = vas_fail_default;
vas_f *VAS_Fail = VAS_Fail_default;
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