Re: [PATCH] eruby on tiger

Jb Evain <[email protected]> Tue, 19 Jul 2005 11:57:53 +0200
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hola Shugo,

Thanks for your answer,

> But isspace() requires unsigned char for arguments.

Right.

> Does the attached patch help you?

Not much, this way, we use unsigned char * as arguments to functions
such as strncmp or rb_str_new and gcc 4 complains.

This is not very cute, but we could write stuff like:

char *s;
if (isspace ((int) (unsigned char) s [0])) {}

or write a macro to handle that.

Anyway, this is not very important :)

Jb