Add new generation for shared_ptr

This commit is contained in:
Patrick Pelissier committed 2017-03-16 00:14:36 +01:00
1 parent 50163118f4
commit 8b7dfc8246
2 files changed
+12

No files matched your search

+3
View File
@@ -65,6 +65,9 @@ gene-list:
gene-array:
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -DNDEBUG -S tgen-marray.c && less tgen-marray.s
gene-shared:
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -DNDEBUG -S tgen-shared.c && less tgen-shared.s
clean:
$(RM) $(EXE) *.s *~ *.o ./a.dat
$(RM) -rf coverage *.gcda *.gcno *.gcov all.info test.tar coverage-dir
+9
View File
@@ -0,0 +1,9 @@
#include "m-shared.h"
SHARED_PTR_DEF(int, int)
int f(shared_int_t p)
{
*shared_int_ref(p) = 17;
}