From: Robert Spalek Date: Thu, 20 Apr 2006 12:01:42 +0000 (+0200) Subject: parsers of basic types exported and got rid of the journaling switch X-Git-Tag: holmes-import~645^2~11^2~104 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=283f69c86024e2bbbb79bf9e35aa0bbc2a1df6c2;p=libucw.git parsers of basic types exported and got rid of the journaling switch --- 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