projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using plain char instead of unsigned char in my tests.
[yaz-moved-to-github.git]
/
include
/
yaz
/
nfa.h
diff --git
a/include/yaz/nfa.h
b/include/yaz/nfa.h
index
ddce4af
..
2901746
100644
(file)
--- 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.
/* 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 <yaz/yconfig.h>
#define YAZ_NFA_H
#include <yaz/yconfig.h>
+#include <stdio.h>
YAZ_BEGIN_CDECL
YAZ_BEGIN_CDECL
@@
-88,7
+89,7
@@
typedef struct yaz_nfa_converter yaz_nfa_converter;
* \return a pointer to the newly created NFA
*
* */
* \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(
/** \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
* \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.
*
* 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
*
*/
* 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);
/* \} */
/* \} */