#include "squid.h"
+#include "cache_cf.h"
+#include "ConfigParser.h"
+#include "Debug.h"
#include "format/Config.h"
-#include "protos.h"
#include <list>
Format::FmtConfig Format::TheConfig;
{
char *name, *def;
- if ((name = strtok(NULL, w_space)) == NULL)
+ if ((name = ConfigParser::NextToken()) == NULL)
self_destruct();
- if ((def = strtok(NULL, "\r\n")) == NULL) {
+ if ((def = ConfigParser::NextQuotedOrToEol()) == NULL) {
self_destruct();
return;
}
if (tokenArray != NULL)
tokens.push_back(TokenNamespace(nsName, tokenArray));
else
- debugs(0,0, "BUG: format tokens for '" << nsName << "' missing!");
+ debugs(0, DBG_CRITICAL, "BUG: format tokens for '" << nsName << "' missing!");
}