X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C782A3.BAD57D7F@onstor-exch02.onstor.net>; Thu, 19 Apr 2007 09:56:52 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: isblank works for me
Date: Thu, 19 Apr 2007 09:56:52 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E0351BCE4@onstor-exch02.onstor.net>
In-Reply-To: <20070419094946.69a8e9e0@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: isblank works for me
Thread-Index: AceCor0XqkRsbCzNSF2Q/25csbPUDwAAKItA
References: <20070418192601.564f4e99@ripper.onstor.net><BB375AF679D4A34E9CA8DFA650E2B04E0351BBD7@onstor-exch02.onstor.net> <20070419094946.69a8e9e0@ripper.onstor.net>
From: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

I have defined isblank() in ssc-bsdcompat/linux.h. Defining the
prototype allows things to compile and link, it will not get the macro
version, but the difference is negligible and this is not high
performance part of the code anyway.

-----Original Message-----
From: Andy Sharp=20
Sent: Thursday, April 19, 2007 9:50 AM
To: Maxim Kozlovsky
Subject: Re: isblank works for me



Includes/linux.h:

#define isblank(B) isspace(B)

Doing it right means you don't have to mess with it at all the next 20
times it occurs in our code.

Thanks,


a


On Thu, 19 Apr 2007 07:43:18 -0700 "Maxim Kozlovsky"
<maxim.kozlovsky@onstor.com> wrote:

> Yes - -Wall option.
>=20
> -----Original Message-----
> From: Andy Sharp=20
> Sent: Wednesday, April 18, 2007 7:26 PM
> To: Maxim Kozlovsky
> Subject: isblank works for me
>=20
> The following program:
>=20
> #include <stdio.h>
> #include <ctype.h>
>=20
> main() {
>=20
> 	char *foo =3D "asdf adf asdf adsf sadf";
> 	int i;
>=20
> 	for (; *foo; foo++) {
> 		if (!isblank(*foo)) {
> 			putchar(*foo);
> 		}
> 	}
>=20
> 	printf("\n");
> }
>=20
> compiles just fine for me:
>=20
> ripper:~$ mipsel-linux-gnu-gcc -O2 isblank.c -o isblank
> ripper:~$ file isblank
> isblank: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), for
> GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux
> 2.4.1, not stripped
> ripper:~$=20
>=20
>=20
> Am I missing something?
>=20
> Cheers,
>=20
> a
