Re: sizeof in Macros. (Was: Specifying dependencies more clearly)

2023-03-12 Thread Alejandro Colomar
Howdy Ralph, On 11/10/22 10:31, Ralph Corderoy wrote: > Howdy Alejandro, > [...] >>> My patch just changes >>> #define length(s) (sizeof(s) - 1) >>> to: >>> #define length(s) (nitems(s) - 1) >>> >>> (nitems() is defined to be the obvious sizeof division (called >>> ARRAY_SIZE(9) i

Re: sizeof in Macros. (Was: Specifying dependencies more clearly)

2022-11-15 Thread Alejandro Colomar
Hi Ralph, As you noticed, if you don't address me in To or Cc, I may not notice the email. I try to, but sometimes I miss it. Sorry. On 11/10/22 10:31, Ralph Corderoy wrote: Howdy Alejandro, Okay, here we go for a rant. Consider the cost of lost opportunities. Since I wrote the code f

sizeof in Macros. (Was: Specifying dependencies more clearly)

2022-11-10 Thread Ralph Corderoy
Howdy Alejandro, > > Okay, here we go for a rant. Consider the cost of lost opportunities. > Since I wrote the code from memory, I had a few typos, but the idea > was there... > > >     typedef struct { > >     size_t  length; > >     u_char  *start; > >     } str_t; > > > >     #d