From 283f69c86024e2bbbb79bf9e35aa0bbc2a1df6c2 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Thu, 20 Apr 2006 14:01:42 +0200 Subject: [PATCH] parsers of basic types exported and got rid of the journaling switch --- lib/conf2.c | 36 ++++++++++++------------------------ lib/conf2.h | 5 +++++ 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/lib/conf2.c b/lib/conf2.c index cc95c3d0..c37e2b6d 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -49,13 +49,9 @@ cf_printf(char *fmt, ...) /* Undo journal */ -static uns journal_active; // controls whether a call to cf_journal_block() is taken into account - void cf_journal_block(void *ptr UNUSED, uns len UNUSED) { - if (!journal_active) - return; } /* Parsers for standard types */ @@ -96,10 +92,9 @@ lookup_unit(byte *value, byte *end, byte **msg) static char cf_rngerr[] = "Number out of range"; -static byte * -parse_int(uns number, byte **pars, int *ptr) +byte * +cf_parse_int(uns number, byte **pars, int *ptr) { - cf_journal_block(ptr, number * sizeof(int)); for (uns i=0; i