- Subject: RE: Looping and composite conditions
- From: SANGOI DINO <SANGOID@xxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Dec 2002 17:10:57 +0100
> -----Original Message-----
> From: Morten Bo Johansen [mailto:mojo@xxxxxxxx]
> Sent: giovedì 19 dicembre 2002 16.18
> Subject: Re: Looping and composite conditions
>
> SD> an easy fix may be:
>
> SD> static define untranslated ()
> SD> {
> SD> bol_fsearch ("msgstr") and fsearch ("\"") and
> looking_at ("\"\"")
> SD> and down_1 () and (skip_chars (" \t\n"), looking_at ("#"));
> SD> }
> SD> (note the ',' instead of 'and').
>
> No, it didn't work.
Strange, this works as it should on my (very limited) test.
> SD> define find_untranslated ()
> SD> {
[SNIP]
> SD> }
>
> No go there either ;-) But Guenther provided a solution. Thanks
> to both you and Guenther.
I haven't really tried this one, I wrote it directly into the mailer.
Reading it again I see that a curly brace is missing in the last condition,
that should read:
if (andelse { fsearch ("\"") }
{ looking_at ("\"\"") }
{ down_1 () }
{ skip_chars (" \t\n"), looking_at ("#") } )
^^^ missing before!!!
And is also missing the 'bsearch("\"")' at the end.
Anyways, Thanks to Guenter you already have a solution, this is only just
for completeness.
Happy hacking,
Dino
--
In theory, there is no difference between theory and practice.
In practice, there is.
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]