2 * FML interpreter. Europagate, 1995
5 * Revision 1.2 1995/02/10 15:50:55 adam
6 * MARC interface implemented. Minor bugs fixed. fmltest can
7 * be used to format single MARC records. New function '\list'
10 * Revision 1.1 1995/02/09 16:06:07 adam
11 * FML can be called from the outside multiple times by the functions:
12 * fml_exec_call and fml_exec_call_str.
13 * An interactive parameter (-i) to fmltest starts a shell-like
14 * interface to FML by using the fml_exec_call_str function.
23 static const char **str_args;
25 static int str_reader (void)
28 while (! (c = **str_args))
38 void fml_exec_call_argv (Fml fml, const char **argv)
40 int (*old_func)(void) = fml->read_func;
42 fml->read_func = str_reader;
44 eof_mark = fml->eof_mark;
46 fml->read_func = old_func;
50 void fml_exec_call_str (Fml fml, const char *str)
52 int (*old_func)(void) = fml->read_func;
58 fml->read_func = str_reader;
60 eof_mark = fml->eof_mark;
62 fml->read_func = old_func;