+2005-09-16 Bruno Haible <bruno@clisp.org>
+
+ * gettext-po.c (po_file_read): Set gram_max_allowed_errors to a large
+ integer, so that po_gram_error doesn't cause the program to exit().
+
2005-09-14 Bruno Haible <bruno@clisp.org>
* x-csharp.c: Include xerror.h.
/* Specification. */
#include "gettext-po.h"
+#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
po_error_at_line = handler->error_at_line;
po_multiline_warning = handler->multiline_warning;
po_multiline_error = handler->multiline_error;
+ gram_max_allowed_errors = UINT_MAX;
file = (struct po_file *) xmalloc (sizeof (struct po_file));
file->real_filename = filename;
po_error_at_line = error_at_line;
po_multiline_warning = multiline_warning;
po_multiline_error = multiline_error;
+ gram_max_allowed_errors = 20;
if (fp != stdin)
fclose (fp);