PERFORCE change 231152 for review
Jonathan Anderson
jonathan at FreeBSD.org
Sun Jul 14 19:07:13 UTC 2013
http://p4web.freebsd.org/@@231152?ac=10
Change 231152 by jonathan at jonathan-on-joe on 2013/07/14 19:06:16
Sync TESLA commit c5fc70 to Perforce.
Affected files ...
.. //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/libtesla/tesla_internal.h#9 edit
.. //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/libtesla/tesla_store.c#5 edit
Differences ...
==== //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/libtesla/tesla_internal.h#9 (text+ko) ====
@@ -78,7 +78,7 @@
/**
* Reset all automata in a store to the inactive state.
*/
-int32_t tesla_store_reset(struct tesla_store *store);
+void tesla_store_reset(struct tesla_store *store);
/**
* Clean up a @ref tesla_store.
==== //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/libtesla/tesla_store.c#5 (text+ko) ====
@@ -151,6 +151,16 @@
}
+void
+tesla_store_reset(struct tesla_store *store)
+{
+ DEBUG(libtesla.store.reset, "tesla_store_reset %tx\n", store);
+
+ for (uint32_t i = 0; i < store->length; i++)
+ tesla_class_reset(store->classes + i);
+}
+
+
int32_t
tesla_class_get(tesla_store *store, uint32_t id, tesla_class **tclassp,
const char *name, const char *description)
More information about the p4-projects
mailing list