X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fnfa.h;h=290174663af5de80ada22b76fcebb1645e2ff746;hb=be6bf53019f49c1448f0161e3b0ce8d3b5b09ec0;hp=ddce4af69578c537a80633e8ded19b45703d5035;hpb=548d17fb92d2efaa1ef637b56fcec09a7261e842;p=yaz-moved-to-github.git diff --git a/include/yaz/nfa.h b/include/yaz/nfa.h index ddce4af..2901746 100644 --- a/include/yaz/nfa.h +++ b/include/yaz/nfa.h @@ -1,6 +1,6 @@ /* Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. - * $Id: nfa.h,v 1.7 2006-05-10 13:58:46 heikki Exp $ + * $Id: nfa.h,v 1.11 2006-10-04 16:59:33 mike Exp $ */ /** @@ -28,6 +28,7 @@ #define YAZ_NFA_H #include +#include YAZ_BEGIN_CDECL @@ -88,7 +89,7 @@ typedef struct yaz_nfa_converter yaz_nfa_converter; * \return a pointer to the newly created NFA * * */ -yaz_nfa *yaz_nfa_init(); +yaz_nfa *yaz_nfa_init(void); /** \brief Destroy the whole thing */ void yaz_nfa_destroy( @@ -214,7 +215,7 @@ yaz_nfa_state *yaz_nfa_add_range( yaz_nfa *n, * \param s the state to add this to. If null, adds to the initial state * \param seq is a sequence of yaz_fna_chars. * \param seq_len is the length of the sequence - * \Return the final state + * \return the final state * * Starting from state s (or from the initial state, if s is * null), finds as much of seq as possible and inserts the rest. @@ -529,7 +530,14 @@ yaz_nfa_state *yaz_nfa_get_next(yaz_nfa *n, yaz_nfa_state *s); * already printable, passing a null pointer here prints them with a %s * */ -void yaz_nfa_dump(FILE *F, yaz_nfa *n, char *(*strfunc)(void *) ); +void yaz_nfa_dump(FILE *F, + yaz_nfa *n, + char *(*strfunc)(void *) ); + +/** \brief Helper to dump converters + * + */ +char *yaz_nfa_dump_converter(void *conv); /* \} */