From dcb79bae22bd3e4739db39e56d00b4d65ff42269 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:39 +0000 Subject: Final testing Author: jgg Date: 1998-07-05 05:33:52 GMT Final testing --- apt-pkg/tagfile.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apt-pkg/tagfile.h') diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h index a7a82dd1c..661ac4f23 100644 --- a/apt-pkg/tagfile.h +++ b/apt-pkg/tagfile.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: tagfile.h,v 1.1 1998/07/02 02:58:13 jgg Exp $ +// $Id: tagfile.h,v 1.2 1998/07/05 05:33:59 jgg Exp $ /* ###################################################################### Fast scanner for RFC-822 type header information @@ -39,7 +39,7 @@ class pkgTagSection bool Find(const char *Tag,const char *&Start, const char *&End); bool Scan(const char *Start,unsigned long MaxLength); - inline unsigned long Length() {return Stop - Section;}; + inline unsigned long size() {return Stop - Section;}; pkgTagSection() : Section(0), Stop(0) {}; }; @@ -51,12 +51,14 @@ class pkgTagFile char *Start; char *End; unsigned long Left; + unsigned long iOffset; bool Fill(); public: bool Step(pkgTagSection &Section); + inline unsigned long Offset() {return iOffset;}; pkgTagFile(File &F); }; -- cgit v1.2.3