-/* $Id: term_ps.c,v 1.40 2010/08/01 15:46:18 joerg Exp $ */
+/* $Id: term_ps.c,v 1.42 2010/08/20 01:02:07 schwarze Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
#include <time.h>
#include <unistd.h>
+#include "mandoc.h"
#include "out.h"
#include "main.h"
#include "term.h"
if (sz < PS_BUFSLOP)
sz = PS_BUFSLOP;
+
p->engine.ps.psmargsz += sz;
- p->engine.ps.psmarg = realloc(p->engine.ps.psmarg,
- p->engine.ps.psmargsz);
- if (NULL == p->engine.ps.psmarg)
+ p->engine.ps.psmarg = realloc
+ (p->engine.ps.psmarg,
+ p->engine.ps.psmargsz);
+
+ if (NULL == p->engine.ps.psmarg) {
perror(NULL);
- exit(EXIT_FAILURE);
+ exit(MANDOCLEVEL_SYSERR);
+ }
}
static double ps_hspan(const struct termp *,
p->engine.ps.pdfobjsz * sizeof(size_t));
if (NULL == p->engine.ps.pdfobjs) {
perror(NULL);
- exit(EXIT_FAILURE);
+ exit(MANDOCLEVEL_SYSERR);
}
}