]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_create.c
dos2unix
[pdclib] / opt / nothread / tss_create.c
index 4b8ce168074f5196fc2a32c7e9c42c61813b8737..a778c7b438211240e00441ba0ea23437fbeba3f7 100644 (file)
@@ -1,8 +1,21 @@
-#include <threads.h>\r
-\r
-int tss_create(tss_t *key, tss_dtor_t dtor)\r
-{\r
-       key->self  = key;\r
-       key->value = NULL;\r
-       return thrd_success;\r
-}
\ No newline at end of file
+#ifndef REGTEST
+#include <threads.h>
+
+int tss_create(tss_t *key, tss_dtor_t dtor)
+{
+       key->self  = key;
+       key->value = NULL;
+       return thrd_success;
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+/* Tested in tss_get.c */
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif