Author: Remi Meier
Branch: c7-weakref
Changeset: r995:99d119949f95
Date: 2014-03-13 10:17 +0100
http://bitbucket.org/pypy/stmgc/changeset/99d119949f95/

Log:    make functions static

diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c
--- a/c7/stm/weakref.c
+++ b/c7/stm/weakref.c
@@ -17,7 +17,7 @@
 }
 
 
-void _set_weakref_in_all_segments(object_t *weakref, object_t *value)
+static void _set_weakref_in_all_segments(object_t *weakref, object_t *value)
 {
     ssize_t size = 16;
 
@@ -38,7 +38,7 @@
 
 /***** Minor collection *****/
 
-void stm_move_young_weakrefs()
+static void stm_move_young_weakrefs()
 {
     /* The code relies on the fact that no weakref can be an old object
        weakly pointing to a young object.  Indeed, weakrefs are immutable
@@ -102,7 +102,7 @@
 /***** Major collection *****/
 
 
-void stm_visit_old_weakrefs(void)
+static void stm_visit_old_weakrefs(void)
 {
     long i;
     for (i = 0; i < NB_SEGMENTS; i++) {
diff --git a/c7/stm/weakref.h b/c7/stm/weakref.h
--- a/c7/stm/weakref.h
+++ b/c7/stm/weakref.h
@@ -1,9 +1,9 @@
 #ifndef _SRCSTM_WEAKREF_H
 #define _SRCSTM_WEAKREF_H
 
-
-void stm_move_young_weakrefs(void);
-void stm_visit_old_weakrefs(void);
+object_t *stm_allocate_weakref(ssize_t size_rounded_up);
+static void stm_move_young_weakrefs(void);
+static void stm_visit_old_weakrefs(void);
 
 
 #endif
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to