#include <sys/types.h>
#include <stdio.h>
#include "tnfsm.h"externstruct fsm_trans ttstab[], sostab[], substab[];
extern u_char ttfsm[][NCHRS], sofsm[][NCHRS], subfsm[][NCHRS];
externint ttstate, sostate, substate;
int fsminit(u_char fsm[][NCHRS], struct fsm_trans ttab[], int nstates);
int
fsmbuild()
{
fsminit(ttfsm, ttstab, NTSTATES);
ttstate = TSDATA;
fsminit(sofsm, sostab, NKSTATES);
sostate = KSREMOTE;
fsminit(subfsm, substab, NSSTATES);
substate = SS_START;
}