Commit 49445552 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Confine the VSC_C structs to vsc.c

parent f4ee973b
......@@ -81,14 +81,14 @@ int VCL_TestLoad(const char *);
/* common_vsm.c */
struct vsm_sc;
struct VSC_C_main;
struct VSC_main;
struct vsm_sc *VSM_common_new(void *ptr, ssize_t len);
void *VSM_common_alloc(struct vsm_sc *sc, ssize_t size,
const char *class, const char *type, const char *ident);
void VSM_common_free(struct vsm_sc *sc, void *ptr);
void VSM_common_delete(struct vsm_sc **sc);
void VSM_common_copy(struct vsm_sc *to, const struct vsm_sc *from);
void VSM_common_cleaner(struct vsm_sc *sc, struct VSC_C_main *stats);
void VSM_common_cleaner(struct vsm_sc *sc, struct VSC_main *stats);
void VSM_common_ageupdate(const struct vsm_sc *sc);
void *VSC_Alloc(const char *, size_t, size_t, const unsigned char *, size_t,
......
......@@ -45,6 +45,8 @@
#include "vmb.h"
#include "vtim.h"
#include "VSC_main.h"
extern volatile struct params * cache_param;
/*--------------------------------------------------------------------*/
......@@ -165,7 +167,7 @@ VSM_common_new(void *p, ssize_t l)
*/
void
VSM_common_cleaner(struct vsm_sc *sc, struct VSC_C_main *stats)
VSM_common_cleaner(struct vsm_sc *sc, struct VSC_main *stats)
{
double now = VTIM_real();
struct vsm_range *vr, *vr2;
......
......@@ -41,9 +41,3 @@ enum VSC_level_e {
/* Forward declare the static vsc type names */
#define VSC_TYPE_F(n,t,l,e,d) extern const char *VSC_type_##n;
#include "tbl/vsc_types.h"
/* Define the vsc type structs */
#define VSC_DO(u,l,t,h) struct VSC_C_##l {
#define VSC_F(n,t,l,s,f,v,d,e) t n;
#define VSC_DONE(u,l,t) };
#include "tbl/vsc_all.h"
......@@ -51,6 +51,12 @@
#include "vsm_api.h"
/* Define the vsc type structs */
#define VSC_DO(u,l,t,h) struct VSC_C_##l {
#define VSC_F(n,t,l,s,f,v,d,e) t n;
#define VSC_DONE(u,l,t) };
#include "tbl/vsc_all.h"
enum {
#define VSC_TYPE_F(n,t,l,e,d) \
VSC_type_order_##n,
......
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