[Mesa-dev] Mesa (master): util: require debug options to be separated by commas
Kenneth Graunke
kenneth at whitecape.org
Wed Jan 26 07:35:46 PST 2011
On Wednesday, January 26, 2011 02:45:43 am Marek Olšák wrote:
> Hi Michal,
>
> Is this what you have in mind?
>
> diff --git a/src/gallium/auxiliary/util/u_debug.c
> b/src/gallium/auxiliary/util/u_debug.c
> index 8cf7660..cb4d60d 100644
> --- a/src/gallium/auxiliary/util/u_debug.c
> +++ b/src/gallium/auxiliary/util/u_debug.c
> @@ -180,6 +180,13 @@ debug_get_num_option(const char *name, long dfault)
> return result;
> }
>
> +static boolean is_alphanumeric(char c)
> +{
> + return (c >= 'a' && c <= 'z') ||
> + (c >= 'A' && c <= 'Z') ||
> + (c >= '0' && c <= '9');
> +}
> +
You probably just want the standard C isalnum() function from ctype.h here.
I'm almost positive even MSVC supports it.
More information about the mesa-dev
mailing list