gettext
d862ba37 - libgettextpo: Don't use static variable gram_max_allowed_errors.

Commit
140 days ago
libgettextpo: Don't use static variable gram_max_allowed_errors. * gettext-tools/src/read-po.h (gram_max_allowed_errors): New declaration. * gettext-tools/src/read-po-lex.h (gram_max_allowed_errors): Remove declaration. * gettext-tools/src/read-po.c: Include <limits.h>. (gram_max_allowed_errors): Moved to here. Change initial value to UINT_MAX. * gettext-tools/src/read-po-lex.c: Include read-po.h. (gram_max_allowed_errors): Remove variable. * gettext-tools/libgettextpo/gettext-po.c: Don't include read-po-lex.h. (po_file_read): Don't assign gram_max_allowed_errors. * gettext-tools/src/msgattrib.c (main): Initialize gram_max_allowed_errors. * gettext-tools/src/msgcat.c (main): Likewise. * gettext-tools/src/msgcomm.c (main): Likewise. * gettext-tools/src/msgconv.c (main): Likewise. * gettext-tools/src/msgen.c (main): Likewise. * gettext-tools/src/msgexec.c (main): Likewise. * gettext-tools/src/msgfilter.c (main): Likewise. * gettext-tools/src/msggrep.c (main): Likewise. * gettext-tools/src/msginit.c (main): Likewise. * gettext-tools/src/msguniq.c (main): Likewise. * gettext-tools/src/xgettext.c (main): Likewise. * gettext-tools/src/msgcmp.c: Don't include read-po-lex.h. * gettext-tools/src/msgmerge.c: Likewise. * gettext-tools/src/msgfmt.c: Don't include read-po-lex.h. (main): Initialize gram_max_allowed_errors.
Author
Committer
Parents
Loading