+2008-06-28 Guillem Jover <guillem@debian.org>
+
+ * lib/dpkg.h (onerr_abort): Move declaration to the ehandle.c section.
+ * lib/mlib.c (onerr_abort): Move definition ...
+ * lib/ehandle.c: ... here.
+
2008-06-28 Guillem Jover <guillem@debian.org>
* lib/mlib.c (checksubprocerr): Move the PROCNOERR check before
/*** from ehandle.c ***/
+extern volatile int onerr_abort;
+
typedef void error_printer(const char *emsg, const char *contextstring);
void push_error_handler(jmp_buf *jbufp, error_printer *printerror,
off_t buffer_read(buffer_data_t data, void *buf, off_t length, const char *desc);
off_t buffer_copy(buffer_data_t read_data, buffer_data_t write_data, off_t limit, const char *desc);
-extern volatile int onerr_abort;
-
/*** from utils.c ***/
int cisdigit(int c);
* same again just in case.
*/
+/* Incremented when we do some kind of generally necessary operation,
+ * so that loops &c know to quit if we take an error exit. Decremented
+ * again afterwards.
+ */
+volatile int onerr_abort = 0;
+
#define NCALLS 2
struct cleanupentry {
#include <dpkg-db.h>
#include <md5.h>
-/* Incremented when we do some kind of generally necessary operation, so that
- * loops &c know to quit if we take an error exit. Decremented again afterwards.
- */
-volatile int onerr_abort= 0;
-
void *m_malloc(size_t amount) {
#ifdef MDEBUG
unsigned short *r2, x;