@@ -93,9 +93,7 @@ itext_add_list(PElement *base, VipsBuf *buf, gboolean *first)
9393 if (!itext_add_element (buf , base , FALSE, FALSE))
9494 return base ;
9595
96- /* Buffer full? Abort list print.
97- */
98- if (buf -> full )
96+ if (vips_buf_is_full (buf ))
9997 return base ;
10098
10199 return NULL ;
@@ -125,11 +123,8 @@ itext_add_string(PElement *base, VipsBuf *buf)
125123 return base ;
126124 }
127125
128- /* Buffer full? Abort string print, though it's not an error (return
129- * NULL).
130- */
131- if (buf -> full )
132- return NULL ;
126+ if (vips_buf_is_full (buf ))
127+ return base ;
133128
134129 return NULL ;
135130}
@@ -304,7 +299,8 @@ itext_decompile(Reduce *rc, VipsBuf *buf, PElement *root)
304299 if (!reduce_pelement (rc , reduce_spine , root ))
305300 return FALSE;
306301
307- if (!itext_decompile_element (buf , root , TRUE) && !buf -> full )
302+ if (!itext_decompile_element (buf , root , TRUE) &&
303+ !vips_buf_is_full (buf ))
308304 /* Tally eval failed, and buffer is not full ... must
309305 * have been an eval error.
310306 */
@@ -455,7 +451,7 @@ itext_value(Reduce *rc, VipsBuf *buf, PElement *root)
455451 return FALSE;
456452
457453 if (!itext_add_element (buf , root , TRUE, FALSE) &&
458- !buf -> full )
454+ !vips_buf_is_full ( buf ) )
459455 /* Tally eval failed, and buffer is not full ... must
460456 * have been an eval error.
461457 */
@@ -558,7 +554,8 @@ itext_make_value_string(Expr *expr, VipsBuf *buf)
558554 return TRUE;
559555 }
560556
561- if (!itext_value_toplevel (reduce_context , buf , & expr -> root ))
557+ if (!itext_value_toplevel (reduce_context , buf , & expr -> root ) &&
558+ !vips_buf_is_full (buf ))
562559 return FALSE;
563560
564561 return TRUE;
0 commit comments