Description: replace error() with pd_error()
 error() has been removed and -Werror=implicit-function-declaration leads to
 FTBFS
Author: IOhannes m zmölnig
Origin: Debian
Forwarded: no
Last-Update: 2024-03-16 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pd-creb.orig/modules/statwav~.c
+++ pd-creb/modules/statwav~.c
@@ -113,12 +113,12 @@
     if (!(a = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class)))
     {
         if (*s->s_name)
-            error("statwav~: %s: no such array", x->x_arrayname->s_name);
+            pd_error(x, "statwav~: %s: no such array", x->x_arrayname->s_name);
         x->x_vec = 0;
     }
     else if (!garray_getfloatarray(a, &x->x_npoints, &x->x_vec))
     {
-        error("%s: bad template for statwav~", x->x_arrayname->s_name);
+        pd_error(x,"%s: bad template for statwav~", x->x_arrayname->s_name);
         x->x_vec = 0;
     }
     else garray_usedindsp(a);
--- pd-creb.orig/modules/tabreadmix~.c
+++ pd-creb/modules/tabreadmix~.c
@@ -192,11 +192,11 @@
 void tabreadmix_tilde_wrap(t_tabreadmix_tilde *x, t_float start, t_float end )
 {
     if ( start > end )
-    	error( "tabreadmix~: wrap: start %i must be lower than end %i", (int)start, (int)end );
+    	pd_error(x, "tabreadmix~: wrap: start %i must be lower than end %i", (int)start, (int)end );
     else if ( 0 > start || start > x->x_npoints )
-    	error( "tabreadmix~: wrap: start %i must be between 0 and bufsize (%d)", (int)start, (int)x->x_npoints );
+    	pd_error(x, "tabreadmix~: wrap: start %i must be between 0 and bufsize (%d)", (int)start, (int)x->x_npoints );
     else if ( 0 > end || end > x->x_npoints )
-    	error( "tabreadmix~: wrap: end %i must be between 0 and bufsize (%d)", (int)end, (int)x->x_npoints );
+    	pd_error(x, "tabreadmix~: wrap: end %i must be between 0 and bufsize (%d)", (int)end, (int)x->x_npoints );
     else
     {
     	x->x_wrap_start = start;
@@ -243,12 +243,12 @@
     if (!(a = (t_garray *)pd_findbyclass(x->x_arrayname, garray_class)))
     {
         if (*s->s_name)
-            error("tabreadmix~: %s: no such array", x->x_arrayname->s_name);
+            pd_error(x,"tabreadmix~: %s: no such array", x->x_arrayname->s_name);
         x->x_vec = 0;
     }
     else if (!garray_getfloatarray(a, &x->x_npoints, &x->x_vec))
     {
-        error("%s: bad template for tabreadmix~", x->x_arrayname->s_name);
+        pd_error(x,"%s: bad template for tabreadmix~", x->x_arrayname->s_name);
         x->x_vec = 0;
     }
     else garray_usedindsp(a);
