diff options
author | IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> | 2024-03-18 12:13:55 +0100 |
---|---|---|
committer | IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> | 2024-03-18 12:13:55 +0100 |
commit | b22e5feb1ad743148e253562b95d60ddb07e2c27 (patch) | |
tree | a3d0f36c930293d6c25c639f2c8e3eeb0cd081de | |
parent | 66fa7b4595463fc68ad7cd42937e37c4284697a5 (diff) |
Add patch to replace error() with pd_error()
Closes: #1066615
-rw-r--r-- | debian/patches/pd_error.patch | 66 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 67 insertions, 0 deletions
diff --git a/debian/patches/pd_error.patch b/debian/patches/pd_error.patch new file mode 100644 index 0000000..35febb3 --- /dev/null +++ b/debian/patches/pd_error.patch @@ -0,0 +1,66 @@ +Description: Replace error() with pd_error() +Author: IOhannes m zmölnig +Origin: Debian +Forwarded: no +Last-Update: 2024-03-18 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- pd-markex.orig/counter.c ++++ pd-markex/counter.c +@@ -80,12 +80,12 @@ + } + else + { +- error("up/down wrong"); ++ pd_error(x, "up/down wrong"); + return; + } + break; + default: +- error("dir wrong"); ++ pd_error(x, "dir wrong"); + return; + } + outlet_float(x->t_out1, (float)x->c_current); +@@ -96,7 +96,7 @@ + void counter_dir(t_counter *x, t_floatarg n) + { + if (n == 1 || n == 2 || n == 3) x->c_dir = (int)n; +- else error("bad dir"); ++ else pd_error(x, "bad dir"); + } + + void counter_high(t_counter *x, t_floatarg n) +--- pd-markex.orig/reson~.c ++++ pd-markex/reson~.c +@@ -128,7 +128,7 @@ + x->x_cspace.c_phase = 0; + if (!(x->x_cspace.c_buf = (float *)malloc(BUFSIZE * sizeof(float)))) + { +- error("buffer alloc failed"); ++ pd_error(x, "buffer alloc failed"); + return (0); + } + x->x_cspace.c_samprate = 44100.f; /* just a plausible default */ +--- pd-markex.orig/tripleLine.c ++++ pd-markex/tripleLine.c +@@ -63,7 +63,7 @@ + if (argc == 4) time = atom_getfloat(&argv[3]); + else if (argc != 3) + { +- error("tripleLine: requires 3 or 4 args"); ++ pd_error(x, "tripleLine: requires 3 or 4 args"); + return; + } + +--- pd-markex.orig/tripleRand.c ++++ pd-markex/tripleRand.c +@@ -37,7 +37,7 @@ + { + if (argc < 1 || argc > 3) + { +- error("tripleRand: Requires 1 - 3 values"); ++ pd_error(x, "tripleRand: Requires 1 - 3 values"); + return; + } + if (argc >= 1) diff --git a/debian/patches/series b/debian/patches/series index 9dc7fdd..9ef90ea 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ +pd_error.patch pd-lib-builder.patch |