[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49381] branches/ge_components/source/ blender/blenkernel/intern/python_component.c: Making "private" functions in python_component.c static.

Mitchell Stokes mogurijin at gmail.com
Mon Jul 30 09:13:42 CEST 2012


Revision: 49381
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49381
Author:   moguri
Date:     2012-07-30 07:13:42 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
Making "private" functions in python_component.c static.

Modified Paths:
--------------
    branches/ge_components/source/blender/blenkernel/intern/python_component.c

Modified: branches/ge_components/source/blender/blenkernel/intern/python_component.c
===================================================================
--- branches/ge_components/source/blender/blenkernel/intern/python_component.c	2012-07-30 07:12:18 UTC (rev 49380)
+++ branches/ge_components/source/blender/blenkernel/intern/python_component.c	2012-07-30 07:13:42 UTC (rev 49381)
@@ -17,7 +17,7 @@
 #ifdef WITH_PYTHON
 #include "Python.h"
 
-int verify_class(PyObject *cls)
+static int verify_class(PyObject *cls)
 {
 	PyObject *list, *item;
 	char *name;
@@ -133,7 +133,7 @@
 	return pyclass;
 }
 
-PyObject *arg_dict_from_component(PythonComponent *pc)
+static PyObject *arg_dict_from_component(PythonComponent *pc)
 {
 	ComponentProperty *cprop;
 	PyObject *args= NULL, *value=NULL;
@@ -164,7 +164,7 @@
 }
 #endif /* WITH_PYTHON */
 
-ComponentProperty *create_property(char *name, short type, int data, void *poin)
+static ComponentProperty *create_property(char *name, short type, int data, void *poin)
 {
 	ComponentProperty *cprop;
 
@@ -196,7 +196,7 @@
 	return cprop;
 }
 
-void free_component_property(ComponentProperty *cprop)
+static void free_component_property(ComponentProperty *cprop)
 {
 	if (cprop->type == CPROP_TYPE_SET && cprop->poin)
 	{
@@ -208,7 +208,7 @@
 	MEM_freeN(cprop);
 }
 
-void free_component_properties(ListBase *lb)
+static void free_component_properties(ListBase *lb)
 {
 	ComponentProperty *cprop;
 
@@ -218,7 +218,7 @@
 	}
 }
 
-void create_properties(PythonComponent *pycomp, PyObject *cls)
+static void create_properties(PythonComponent *pycomp, PyObject *cls)
 {
 #ifdef WITH_PYTHON
 	PyObject *args_dict, *key, *value, *items, *item;




More information about the Bf-blender-cvs mailing list