From 1fca377a6dd854637e3d63d23c7d0cd0d48c3451 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 10 Feb 2009 23:15:51 +0000 Subject: [PATCH] * made wc_subst private. todo solved. --- webcit/subst.c | 14 ++++++++++++++ webcit/subst.h | 15 --------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/webcit/subst.c b/webcit/subst.c index 547aa9451..3231c931e 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -43,6 +43,20 @@ WCTemplputParams NoCtx; #define SV_SUBTEMPL 5 #define SV_PREEVALUATED 6 + +/* + * \brief Dynamic content for variable substitution in templates + */ +typedef struct _wcsubst { + ContextFilter Filter; + int wcs_type; /* which type of Substitution are we */ + char wcs_key[32]; /* copy of our hashkey for debugging */ + StrBuf *wcs_value; /* if we're a string, keep it here */ + long lvalue; /* type long? keep data here */ + WCHandlerFunc wcs_function; /* funcion hook ???*/ +} wcsubst; + + typedef struct _WCTemplate { StrBuf *Data; StrBuf *FileName; diff --git a/webcit/subst.h b/webcit/subst.h index dcb4b556b..ad8fb61b5 100644 --- a/webcit/subst.h +++ b/webcit/subst.h @@ -78,21 +78,6 @@ typedef void (*WCHandlerFunc)(StrBuf *Target, WCTemplputParams *TP); /* make a template token a lookup key: */ #define TKEY(a) TP->Tokens->Params[a]->Start, TP->Tokens->Params[a]->len -/* TODO: wcsubst should be private! */ - -/* - * \brief Dynamic content for variable substitution in templates - */ -typedef struct _wcsubst { - ContextFilter Filter; - int wcs_type; /* which type of Substitution are we */ - char wcs_key[32]; /* copy of our hashkey for debugging */ - StrBuf *wcs_value; /* if we're a string, keep it here */ - long lvalue; /* type long? keep data here */ - WCHandlerFunc wcs_function; /* funcion hook ???*/ -} wcsubst; - - /** * this is the signature of a conditional function * Note: Target is just passed in for error messages; don't write onto it in regular cases. -- 2.30.2