PERFORCE change 229975 for review

Jonathan Anderson jonathan at FreeBSD.org
Wed Jun 19 22:16:30 UTC 2013


http://p4web.freebsd.org/@@229975?ac=10

Change 229975 by jonathan at jonathan-on-zenith on 2013/06/19 22:15:48

	Merge some upstream libtesla changes.

Affected files ...

.. //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/include/tesla-macros.h#4 edit
.. //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/libtesla/tesla_class.c#5 edit

Differences ...

==== //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/include/tesla-macros.h#4 (text+ko) ====

@@ -67,7 +67,9 @@
 /** A strictly-ordered sequence of events. */
 #define	TSEQUENCE(...)		__tesla_sequence(__tesla_ignore, __VA_ARGS__)
 
-#define	called(...)		__tesla_call(__VA_ARGS__)
+// This can be removed once all users are converted to the new syntax for calls.
+#pragma clang diagnostic ignored "-Wunused"
+#define	called(...)		__tesla_call(((void)__VA_ARGS__, __tesla_ignore))
 #define	returned(...)		__tesla_return(__VA_ARGS__)
 
 #define	callee(...)		__tesla_callee(__tesla_ignore, __VA_ARGS__)

==== //depot/projects/ctsrd/tesla/src/sys/contrib/tesla/libtesla/tesla_class.c#5 (text+ko) ====

@@ -192,15 +192,4 @@
 
 	bzero(c->tc_instances, sizeof(c->tc_instances[0]) * c->tc_limit);
 	c->tc_free = c->tc_limit;
-
-	switch (c->tc_context) {
-	case TESLA_CONTEXT_GLOBAL:
-		return tesla_class_global_release(c);
-
-	case TESLA_CONTEXT_THREAD:
-		return tesla_class_perthread_release(c);
-
-	default:
-		assert(0 && "unhandled TESLA context");
-	}
 }


More information about the p4-projects mailing list