- make some internal symbols static
authordoko@ubuntu.com <doko@ubuntu.com>
Tue, 17 May 2016 23:06:01 +0000 (01:06 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Tue, 17 May 2016 23:06:01 +0000 (01:06 +0200)
Modules/_collectionsmodule.c
Modules/_tracemalloc.c
Modules/faulthandler.c

index d57f1ba55ae9d3d57cbc94e6af390afd3160b5dc..3008879f98d4d4a44ab361ad4250425dd8a424f5 100644 (file)
@@ -264,7 +264,7 @@ PyDoc_STRVAR(popleft_doc, "Remove and return the leftmost element.");
 
 #define NEEDS_TRIM(deque, maxlen) ((size_t)(maxlen) < (size_t)(Py_SIZE(deque)))
 
-int
+static int
 deque_append_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen)
 {
     if (deque->rightindex == BLOCKLEN - 1) {
index beda2b612d770d59d46a69549fa793873b6f627c..e3329c722fe51a3010e66f71b20a14cc92c58a23 100644 (file)
@@ -262,7 +262,7 @@ hashtable_hash_pointer_t(_Py_hashtable_t *ht, const void *pkey)
 }
 
 
-int
+static int
 hashtable_compare_pointer_t(_Py_hashtable_t *ht, const void *pkey,
                             const _Py_hashtable_entry_t *entry)
 {
index 570c87520fc0f56f38db8327e98865cac4de4c07..d6322d0f3f1b8847100113981d6b9f494e7dd6f2 100644 (file)
@@ -414,7 +414,7 @@ faulthandler_exc_handler(struct _EXCEPTION_POINTERS *exc_info)
 
 /* Install the handler for fatal signals, faulthandler_fatal_error(). */
 
-int
+static int
 faulthandler_enable(void)
 {
     size_t i;