#include "flexdef.h"
+/* declare functions that have forward references */
+
+void dump_associated_rules PROTO((FILE*, int));
+void dump_transitions PROTO((FILE*, int[]));
+void sympartition PROTO((int[], int, int[], int[]));
+int symfollowset PROTO((int[], int, int, int[]));
+
+
/* check_for_backtracking - check a DFA state for backtracking
*
* synopsis
* associated with this state
*/
-check_for_backtracking( ds, state )
+void check_for_backtracking( ds, state )
int ds;
int state[];
* synopsis
* int nfa_states[num_states+1], num_states;
* int accset[nacc+1], nacc;
- * int check_trailing_context();
- * true/false = check_trailing_context( nfa_states, num_states,
- * accset, nacc );
+ * check_trailing_context( nfa_states, num_states, accset, nacc );
*
* NOTES
* Trailing context is "dangerous" if both the head and the trailing
* accset[1 .. nacc] is the list of accepting numbers for the DFA state.
*/
-int check_trailing_context( nfa_states, num_states, accset, nacc )
+void check_trailing_context( nfa_states, num_states, accset, nacc )
int *nfa_states, num_states;
int *accset;
register int nacc;
* and writes a report to the given file
*/
-dump_associated_rules( file, ds )
+void dump_associated_rules( file, ds )
FILE *file;
int ds;
* is done to the given file.
*/
-dump_transitions( file, state )
+void dump_transitions( file, state )
FILE *file;
int state[];
/* increase_max_dfas - increase the maximum number of DFAs */
-increase_max_dfas()
+void increase_max_dfas()
{
current_max_dfas += MAX_DFAS_INCREMENT;
* creates the dfa corresponding to the ndfa we've constructed. the
* dfa starts out in state #1.
*/
-ntod()
+
+void ntod()
{
int *accset, ds, nacc, newds;
* sympartition( ds, numstates, symlist, duplist );
*/
-sympartition( ds, numstates, symlist, duplist )
+void sympartition( ds, numstates, symlist, duplist )
int ds[], numstates, duplist[];
int symlist[];