>> -        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

_______________________________________________
Babel-users mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Reply via email to