[Babel-users] babel freebsd issues

Juliusz Chroboczek jch at pps.jussieu.fr
Tue Jul 31 08:26:28 UTC 2012


>> -        return -1;
>> +        return -2;
>
> The convention in this file is that -1 signals EOF, while -2 signals an
> error.  So the return value is correct, it's the handling of EOF that's
> broken.

@@ -71,7 +78,7 @@ getword(int c, char **token_r, gnc_t gnc, void
*closure)
 
     c = skip_whitespace(c, gnc, closure);
     if(c < 0)
-        return c;
+        return -2;
     if(c == '"' || c == '\n')
         return -2;
     do {

-- Juliusz



More information about the Babel-users mailing list