getenv_foo and TUNABLE_FOO_FETCH change

2001-10-23 Thread John Baldwin
Currently getenv_quad() claims to return a quad_t, but it's actual return value is 1 if it found the environment variable in question and converted it ok and 0 if it didn't. getenv_int() has the same return value. I'd like to apply the same to TUNABLE_*_FETCH so that one can do: if

Re: getenv_foo and TUNABLE_FOO_FETCH change

2001-10-23 Thread Peter Wemm
John Baldwin wrote: Also, one final note about using do { } while(0). If you actually read style(9), you will see that you are supposed to use it for compound statement s, not just for any macro that happens to be more than one line long. If the macro's body is a single statement, it

Re: getenv_foo and TUNABLE_FOO_FETCH change

2001-10-23 Thread John Baldwin
On 23-Oct-01 Peter Wemm wrote: John Baldwin wrote: Also, one final note about using do { } while(0). If you actually read style(9), you will see that you are supposed to use it for compound statement s, not just for any macro that happens to be more than one line long. If the