X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6c139d6e362f04a1582e8a8f511f8aeab031fecf..24231681aa99e84c8a6aae5e54b7e207e19d6087:/apt-pkg/contrib/error.h diff --git a/apt-pkg/contrib/error.h b/apt-pkg/contrib/error.h index 06367592b..9b54b72a5 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.2 1998/07/07 04:17:11 jgg Exp $ +// $Id: error.h,v 1.5 1998/09/18 02:42:41 jgg Exp $ /* ###################################################################### Global Erorr Class - Global error mechanism @@ -42,7 +42,7 @@ #define PKGLIB_ERROR_H #ifdef __GNUG__ -#pragma interface "pkglib/error.h" +#pragma interface "apt-pkg/error.h" #endif #include @@ -64,6 +64,7 @@ class GlobalError // Call to generate an error from a library call. bool Errno(const char *Function,const char *Description,...); + bool WarningE(const char *Function,const char *Description,...); /* A warning should be considered less severe than an error, and may be ignored by the client. */ @@ -82,8 +83,8 @@ class GlobalError GlobalError(); }; -/* The 'extra-ansi' syntax is used to help with collisions. This is the - single global instance of this class. */ -extern GlobalError *_error; +// The 'extra-ansi' syntax is used to help with collisions. +GlobalError *_GetErrorObj(); +#define _error _GetErrorObj() #endif