dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
989bc1d
)
Moved gedcom_set_error_handling from gedcom.y to make doxygen conversion
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 19 Apr 2003 14:51:00 +0000
(14:51 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sat, 19 Apr 2003 14:51:00 +0000
(14:51 +0000)
of docs easier.
gedcom/interface.c
patch
|
blob
|
history
diff --git
a/gedcom/interface.c
b/gedcom/interface.c
index 8b42b213f013fc533ba32e10507ebad3cbc5245f..aae15e485dcf73182cb11763b5d2f280fbd80061 100644
(file)
--- 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]));
}
(_("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;
+}