Liste des Groupes | Revenir à cl c |
On Wed, 18 Sep 2024 01:07:17 +0100
Bart <bc@freeuk.com> wrote:
So, what you are saying is that it means 'w ^ (c == '"')'? Because there could be some ambiguity, I put in the brackets. I had to to guess the precedence and chose the one that seemed more plausible, but I guessed wrong.I find such a coding style pretty much impossible to grasp andThat's not how it was written in original. Should be:
unpleasant to look at. I had to refactor it like this:
>
---------------
>
static_Bool collect_word(char *s, char *r, _Bool w, Gopher go ) {
char c = *s;
#if 1
if (c == 0) {
go->f(go, r, s);
return w;
}
if (is_space(c) && w) {
go->f(go, r, s);
return words_do(s, go);
}
return collect_word(s+1, r, (w ^ c) == '"', go);
return collect_word(s+1, r, w ^ c == '"', go);
Not the same thing at all.
The same here.I'm surprised there weren't more typos, but that's not what my post was about which was presentation and layout.
Les messages affichés proviennent d'usenet.