diff options
author | Stefan Kemper <stefan.kemper@artifex.com> | 2004-12-08 21:35:13 +0000 |
---|---|---|
committer | Stefan Kemper <stefan.kemper@artifex.com> | 2004-12-08 21:35:13 +0000 |
commit | 1fa45945c0bb06cf24c044137687bd1265445cf6 (patch) | |
tree | 7b9fc0f12d39a9256afc30e8b451eff05d7db554 /gs/src/gzspotan.c | |
parent | 6e0dd2a35cb964484b96f833c34152030ba5cea1 (diff) |
Delaying changes for assertions and gzspotan.c till after 8.50 release.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5567 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gzspotan.c')
-rw-r--r-- | gs/src/gzspotan.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gs/src/gzspotan.c b/gs/src/gzspotan.c index 61f2de331..d0f6fc239 100644 --- a/gs/src/gzspotan.c +++ b/gs/src/gzspotan.c @@ -31,7 +31,7 @@ #include "memory_.h" #include "math_.h" #include "vdtrace.h" - +#include <assert.h> #define VD_TRAP_N_COLOR RGB(128, 128, 0) #define VD_TRAP_U_COLOR RGB(0, 0, 255) @@ -130,7 +130,7 @@ private inline void trap_unreserve(gx_device_spot_analyzer *padev, gx_san_trap *t) { /* Assuming the last reserved one. */ - GS_DBG_ASSERT(t->link == padev->trap_free); + assert(t->link == padev->trap_free); padev->trap_free = t; } @@ -138,7 +138,7 @@ private inline void cont_unreserve(gx_device_spot_analyzer *padev, gx_san_trap_contact *t) { /* Assuming the last reserved one. */ - GS_DBG_ASSERT(t->link == padev->cont_free); + assert(t->link == padev->cont_free); padev->cont_free = t; } @@ -318,7 +318,7 @@ check_band_list(const gx_san_trap *list) const gx_san_trap *t = list; while (t->next != list) { - GS_DBG_ASSERT(t->xrtop <= t->next->xltop); + assert(t->xrtop <= t->next->xltop); t = t->next; } } @@ -335,12 +335,10 @@ try_unite_last_trap(gx_device_spot_analyzer *padev, fixed xlbot) unite it and release the last trapezoid and the last contact. */ if (t != NULL && t->upper != NULL && last->xrbot < xlbot && (last->prev == last || last->prev->xrbot < last->xlbot)) { - if ((t->next == NULL || t->xrtop < t->next->xltop) && - (t->upper->next == t->upper && - t->l == last->l && t->r == last->r)) { + if (t->upper->next == t->upper && + t->l == last->l && t->r == last->r) { if (padev->bot_current == t) padev->bot_current = (t == band_list_last(padev->bot_band) ? NULL : t->next); - GS_DBG_ASSERT(t->upper->upper == last); band_list_remove(&padev->top_band, last); band_list_remove(&padev->bot_band, t); band_list_insert_last(&padev->top_band, t); @@ -806,7 +804,7 @@ gx_san_generate_stems(gx_device_spot_analyzer *padev, { int code; - vd_get_dc('f'); + vd_get_dc('h'); vd_set_shift(0, 0); vd_set_scale(VD_SCALE); vd_set_origin(0, 0); |