From: Peter Verthez Date: Sat, 19 Apr 2003 14:51:00 +0000 (+0000) Subject: Moved gedcom_set_error_handling from gedcom.y to make doxygen conversion X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=1cb22adafb0696887c3a7544f81898d0685b42b7;p=gedcom-parse.git Moved gedcom_set_error_handling from gedcom.y to make doxygen conversion of docs easier. --- diff --git a/gedcom/interface.c b/gedcom/interface.c index 8b42b21..aae15e4 100644 --- a/gedcom/interface.c +++ b/gedcom/interface.c @@ -126,3 +126,14 @@ void gedcom_cast_error(const char* file, int line, (_("Wrong cast of value in file %s, at line %d: %s instead of %s"), file, line, _(val_type_str[tried_bit]), _(val_type_str[real_bit])); } + +/** This function allows to customize what happens on an error. It doesn't + influence the generation of error or warning messages, only the behaviour + of the parser and its return code. See \ref Gedcom_err_mech for the + possible mechanisms. + */ + +void gedcom_set_error_handling(Gedcom_err_mech mechanism) +{ + error_mechanism = mechanism; +}