From 6c139d6e362f04a1582e8a8f511f8aeab031fecf Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:41 +0000 Subject: Sync Author: jgg Date: 1998-07-07 04:17:00 GMT Sync --- apt-pkg/contrib/error.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'apt-pkg/contrib/error.h') diff --git a/apt-pkg/contrib/error.h b/apt-pkg/contrib/error.h index 06b998e5e..06367592b 100644 --- a/apt-pkg/contrib/error.h +++ b/apt-pkg/contrib/error.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: error.h,v 1.1 1998/07/02 02:58:13 jgg Exp $ +// $Id: error.h,v 1.2 1998/07/07 04:17:11 jgg Exp $ /* ###################################################################### Global Erorr Class - Global error mechanism @@ -41,8 +41,11 @@ #ifndef PKGLIB_ERROR_H #define PKGLIB_ERROR_H +#ifdef __GNUG__ +#pragma interface "pkglib/error.h" +#endif + #include -#include class GlobalError { @@ -50,10 +53,12 @@ class GlobalError { string Text; bool Error; + Item *Next; }; - vector List; + Item *List; bool PendingFlag; + void Insert(Item *I); public: @@ -67,9 +72,9 @@ class GlobalError // Simple accessors inline bool PendingError() {return PendingFlag;}; - inline bool empty() {return List.empty();}; + inline bool empty() {return List == 0;}; bool PopMessage(string &Text); - void Discard() {List.erase(List.begin(),List.end()); PendingFlag = false;}; + void Discard(); // Usefull routine to dump to cerr void DumpErrors(); -- cgit v1.2.3