AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070419100104.7c20216a@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<maxim.kozlovsky@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E0351BCE4@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 19 Apr 2007 10:01:16 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Maxim Kozlovsky" <maxim.kozlovsky@onstor.com>
Subject: Re: isblank works for me
Message-ID: <20070419100116.52b01a51@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0351BCE4@onstor-exch02.onstor.net>
References: <20070418192601.564f4e99@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0351BBD7@onstor-exch02.onstor.net>
	<20070419094946.69a8e9e0@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0351BCE4@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

That works.

On Thu, 19 Apr 2007 09:56:52 -0700 "Maxim Kozlovsky"
<maxim.kozlovsky@onstor.com> wrote:

> 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 
> 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.
> > 
> > -----Original Message-----
> > From: Andy Sharp 
> > Sent: Wednesday, April 18, 2007 7:26 PM
> > To: Maxim Kozlovsky
> > Subject: isblank works for me
> > 
> > The following program:
> > 
> > #include <stdio.h>
> > #include <ctype.h>
> > 
> > main() {
> > 
> > 	char *foo = "asdf adf asdf adsf sadf";
> > 	int i;
> > 
> > 	for (; *foo; foo++) {
> > 		if (!isblank(*foo)) {
> > 			putchar(*foo);
> > 		}
> > 	}
> > 
> > 	printf("\n");
> > }
> > 
> > compiles just fine for me:
> > 
> > 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:~$ 
> > 
> > 
> > Am I missing something?
> > 
> > Cheers,
> > 
> > a
