1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
From: =?utf-8?q?IOhannes_m_zm=C3=B6lnig?= <zmoelnig@umlautT.umlaeute.mur.at>
Date: Sun, 3 Sep 2023 16:23:46 +0200
Subject: replace error() with pd_error(x,)
Origin: upstream
Applied-Upstream: 5e921974920bcee9e80b0b14439f6612627c63cf
---
src/FIR~.c | 6 +++---
src/parentdollarzero.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/FIR~.c b/src/FIR~.c
index 1405a3c..20496d7 100644
--- a/src/FIR~.c
+++ b/src/FIR~.c
@@ -117,17 +117,17 @@ void FIR_tilde_set(t_FIR_tilde *x, t_symbol *table_name, t_floatarg forder, t_fl
if(!(ga = (t_garray *)pd_findbyclass(x->x_table_name, garray_class)))
{
if(*table_name->s_name)
- error("FIR~: %s: no such table~", x->x_table_name->s_name);
+ pd_error(x, "FIR~: %s: no such table~", x->x_table_name->s_name);
x->x_array_coef_beg = (iemarray_t *)0;
}
else if(!iemarray_getarray(ga, &table_size, &x->x_array_coef_beg))
{
- error("%s: bad template for FIR~", x->x_table_name->s_name);
+ pd_error(x, "%s: bad template for FIR~", x->x_table_name->s_name);
x->x_array_coef_beg = (iemarray_t *)0;
}
else if(table_size < order)
{
- error("FIR~: tablesize %d < order %d + offset %d !!!!", table_size, order, offset);
+ pd_error(x, "FIR~: tablesize %d < order %d + offset %d !!!!", table_size, order, offset);
x->x_array_coef_beg = (iemarray_t *)0;
}
else
diff --git a/src/parentdollarzero.c b/src/parentdollarzero.c
index 3f209b1..a42471f 100644
--- a/src/parentdollarzero.c
+++ b/src/parentdollarzero.c
@@ -43,7 +43,7 @@ static void *parentdollarzero_new(void)
else
#else
x->x_is_there_a_parent=0;
- error("[parentdollarzero]: compiled without g_canvas.h - cannot work properly!");
+ pd_error(x, "[parentdollarzero]: compiled without g_canvas.h - cannot work properly!");
#endif
x->s_parent_unique = gensym("");
outlet_new(&x->x_obj, &s_symbol);
|