[svn:parrot] r47140 - in branches/gc_massacre: config/gen/makefiles src/gc

bacek at svn.parrot.org bacek at svn.parrot.org
Sun May 30 09:38:28 UTC 2010


Author: bacek
Date: Sun May 30 09:38:27 2010
New Revision: 47140
URL: https://trac.parrot.org/parrot/changeset/47140

Log:
Add stub for double-linked lists

Added:
   branches/gc_massacre/src/gc/list.c
   branches/gc_massacre/src/gc/list.h
Modified:
   branches/gc_massacre/config/gen/makefiles/root.in

Modified: branches/gc_massacre/config/gen/makefiles/root.in
==============================================================================
--- branches/gc_massacre/config/gen/makefiles/root.in	Sun May 30 09:37:54 2010	(r47139)
+++ branches/gc_massacre/config/gen/makefiles/root.in	Sun May 30 09:38:27 2010	(r47140)
@@ -452,6 +452,7 @@
     src/gc/mark_sweep$(O) \
     src/gc/system$(O) \
     src/gc/pool_allocator$(O) \
+    src/gc/list$(O) \
     src/global$(O) \
     src/global_setup$(O) \
     src/hash$(O) \
@@ -1273,7 +1274,7 @@
 
 src/gc/mark_sweep$(O) : $(PARROT_H_HEADERS) src/gc/gc_private.h src/gc/mark_sweep.c
 
-src/gc/gc_ms$(O) : $(PARROT_H_HEADERS) src/gc/gc_private.h src/gc/pool_allocator.h src/gc/gc_ms.c
+src/gc/gc_ms$(O) : $(PARROT_H_HEADERS) src/gc/gc_private.h src/gc/pool_allocator.h src/gc/list.h src/gc/gc_ms.c
 
 src/gc/gc_inf$(O) : $(PARROT_H_HEADERS) src/gc/gc_private.h src/gc/gc_inf.c
 
@@ -1285,6 +1286,9 @@
 src/gc/pool_allocator$(O) : $(PARROT_H_HEADERS) \
 	src/gc/pool_allocator.h src/gc/pool_allocator.c
 
+src/gc/list$(O) : $(PARROT_H_HEADERS) \
+	src/gc/list.h src/gc/list.c
+
 src/hll$(O) : $(PARROT_H_HEADERS) src/hll.str $(INC_DIR)/dynext.h src/hll.c
 
 src/platform$(O) : $(PARROT_H_HEADERS) src/platform.c

Added: branches/gc_massacre/src/gc/list.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/gc_massacre/src/gc/list.c	Sun May 30 09:38:27 2010	(r47140)
@@ -0,0 +1,49 @@
+/*
+Copyright (C) 2010, Parrot Foundation.
+$Id$
+
+=head1 NAME
+
+src/gc/list.c - Implementation of double linked lists.
+
+=head1 DESCRIPTION
+
+This code implements double linked list of GCable objects.
+
+=cut
+
+*/
+
+#include "parrot/parrot.h"
+#include "list.h"
+
+/* HEADERIZER HFILE: src/gc/list.h */
+
+/* HEADERIZER BEGIN: static */
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
+
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
+/* HEADERIZER END: static */
+
+/*
+
+=over 4
+
+=cut
+
+*/
+
+/*
+
+=back
+
+=cut
+
+*/
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */

Added: branches/gc_massacre/src/gc/list.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/gc_massacre/src/gc/list.h	Sun May 30 09:38:27 2010	(r47140)
@@ -0,0 +1,32 @@
+/*
+Copyright (C) 2010, Parrot Foundation.
+$Id$
+
+=head1 NAME
+
+src/gc/list.h - Linked lists of allocated objects.
+
+=head1 DESCRIPTION
+
+Implementation of double linked lists used by various GC implementations.
+
+*/
+
+#ifndef PARROT_GC_LIST_H_GUARD
+#define PARROT_GC_LIST_H_GUARD
+
+
+/* HEADERIZER BEGIN: src/gc/list.c */
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
+
+/* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
+/* HEADERIZER END: src/gc/list.c */
+
+#endif /* PARROT_GC_LIST_H_GUARD */
+
+/*
+ * Local variables:
+ *   c-file-style: "parrot"
+ * End:
+ * vim: expandtab shiftwidth=4:
+ */


More information about the parrot-commits mailing list