blob: 582651256e06370031618216d70cf268b3fede1d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
void
libautomata_reset_automaton(struct libautomata_automaton *automaton)
{
size_t i;
for (i = 0u; i < automaton->nnodes; i++)
automaton->nodes[i].reset(&automaton->nodes[i]);
automaton->current = automaton->start;
automaton->state = LIBAUTOMATA_AUTOMATON_RUNNING;
}
|