From a679b2d4591cf6c0d793861e99d55a4a474047d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 21 Mar 2022 10:17:27 +0100 Subject: [PATCH] rename x->verbose to x->x_verbose it's really a Pd-specific member (as opposed to comport-specific) --- comport.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/comport.c b/comport.c index d01eaff..2b73533 100644 --- a/comport.c +++ b/comport.c @@ -50,7 +50,7 @@ JZ 20210321 cleanup t_comport struct #include #include -#define comport_verbose if(x->verbose > 0)post +#define comport_verbose if(x->x_verbose > 0)post #define t_bool char @@ -89,7 +89,7 @@ typedef struct comport int rxerrors; /* holds the rx line errors */ - int verbose; /* be more verbose */ + int x_verbose; /* be more verbose */ /* buffers */ unsigned char *x_inbuf; /* read incoming serial to here */ @@ -1441,7 +1441,7 @@ allows COM port numbers to be specified. */ clock_delay(x->x_clock, x->x_deltime); - x->verbose = 0; + x->x_verbose = 0; return x; } @@ -1992,8 +1992,8 @@ static void comport_info(t_comport *x) /* ---------------- HELPER ------------------------- */ static void comport_set_verbose(t_comport *x, t_floatarg f) { - x->verbose = f; - comport_verbose("[comport] verbose is on: %d", (int) f); + x->x_verbose = f; + comport_verbose("[comport] verbose is on: %d", x->x_verbose); } static void comport_help(t_comport *x)