[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23872] branches/soc-2008-mxcurioni/source /blender/freestyle: * Fixed compiler warnings concerning the lack of a newline at the

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Thu Oct 15 21:38:45 CEST 2009


Revision: 23872
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23872
Author:   kjym3
Date:     2009-10-15 21:38:45 +0200 (Thu, 15 Oct 2009)

Log Message:
-----------
* Fixed compiler warnings concerning the lack of a newline at the
end of a file.

* Fixed compiler warnings due to an invalid argument to PyList_New().
NULL was used instead of 0 to create an empty list.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/freestyle/FRS_freestyle_config.h
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/geometry/FastGrid.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Freestyle.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Id.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_SShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewMap.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/StrokeShader/BPy_GuidingLinesShader.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLBlendEquation.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLFreeMemoryVisitor.h
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/NodeCamera.h
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/Rep.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/SceneVisitor.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeIO.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeIO.h
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/system/BaseObject.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/system/Iterator.cpp
    branches/soc-2008-mxcurioni/source/blender/freestyle/intern/system/Iterator.h

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/FRS_freestyle_config.h
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/FRS_freestyle_config.h	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/FRS_freestyle_config.h	2009-10-15 19:38:45 UTC (rev 23872)
@@ -14,4 +14,4 @@
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/geometry/FastGrid.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/geometry/FastGrid.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/geometry/FastGrid.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -59,4 +59,4 @@
     assert(p[1]<_cells_nb[1]);
     assert(p[2]<_cells_nb[2]);
     _cells[_cells_nb[0] * (p[2] * _cells_nb[1] + p[1]) + p[0]] = &cell;
-}
\ No newline at end of file
+}

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Freestyle.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Freestyle.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Freestyle.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -101,4 +101,4 @@
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Id.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Id.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Id.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -174,4 +174,4 @@
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_SShape.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_SShape.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_SShape.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -177,7 +177,7 @@
 
 
 PyObject * SShape_getVertexList( BPy_SShape *self ) {
-	PyObject *py_vertices = PyList_New(NULL);
+	PyObject *py_vertices = PyList_New(0);
 
 	vector< SVertex * > vertices = self->ss->getVertexList();
 	vector< SVertex * >::iterator it;
@@ -191,7 +191,7 @@
 
 
 PyObject * SShape_getEdgeList( BPy_SShape *self ) {
-	PyObject *py_edges = PyList_New(NULL);
+	PyObject *py_edges = PyList_New(0);
 
 	vector< FEdge * > edges = self->ss->getEdgeList();
 	vector< FEdge * >::iterator it;
@@ -229,4 +229,4 @@
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewMap.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewMap.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewMap.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -154,4 +154,4 @@
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewShape.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewShape.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewShape.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -142,7 +142,7 @@
 
 
 PyObject * ViewShape_vertices( BPy_ViewShape *self ) {
-	PyObject *py_vertices = PyList_New(NULL);
+	PyObject *py_vertices = PyList_New(0);
 
 	vector< ViewVertex * > vertices = self->vs->vertices();
 	vector< ViewVertex * >::iterator it;
@@ -156,7 +156,7 @@
 
 
 PyObject * ViewShape_edges( BPy_ViewShape *self ) {
-	PyObject *py_edges = PyList_New(NULL);
+	PyObject *py_edges = PyList_New(0);
 
 	vector< ViewEdge * > edges = self->vs->edges();
 	vector< ViewEdge * >::iterator it;
@@ -260,4 +260,4 @@
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -133,7 +133,7 @@
 	PyObject *py_normals; 
 	set< Vec3r > normals;
 	
-	py_normals  = PyList_New(NULL);
+	py_normals  = PyList_New(0);
 	normals = self->sv->normals();
 		
 	for( set< Vec3r >::iterator set_iterator = normals.begin(); set_iterator != normals.end(); set_iterator++ ) {

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/StrokeShader/BPy_GuidingLinesShader.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/StrokeShader/BPy_GuidingLinesShader.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/StrokeShader/BPy_GuidingLinesShader.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -72,4 +72,3 @@
 #ifdef __cplusplus
 }
 #endif
-	
\ No newline at end of file

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -139,7 +139,7 @@
 		}
 		return NULL;
 	}
-	PyObject *list = PyList_New(NULL);
+	PyObject *list = PyList_New(0);
 	
 	for( unsigned int i = 0; i < self->uf0D_vectorviewshape->result.size(); i++)
 		PyList_Append(list, BPy_ViewShape_from_ViewShape(*( self->uf0D_vectorviewshape->result[i] )) );

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -166,7 +166,7 @@
 		}
 		return NULL;
 	}
-	PyObject *list = PyList_New(NULL);
+	PyObject *list = PyList_New(0);
 	
 	for( unsigned int i = 0; i < self->uf1D_vectorviewshape->result.size(); i++)
 		PyList_Append(list, BPy_ViewShape_from_ViewShape(*( self->uf1D_vectorviewshape->result[i] )) );

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLBlendEquation.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLBlendEquation.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLBlendEquation.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -6,4 +6,4 @@
 	} else if ( glBlendEquationEXT ) {
 		glBlendEquationEXT(mode);
 	}
-}
\ No newline at end of file
+}

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLFreeMemoryVisitor.h
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLFreeMemoryVisitor.h	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/rendering/GLFreeMemoryVisitor.h	2009-10-15 19:38:45 UTC (rev 23872)
@@ -20,4 +20,4 @@
         VISIT_DECL(IndexedFaceSet)
 };
 
-#endif // GL_FREE_MEMORY_H_
\ No newline at end of file
+#endif // GL_FREE_MEMORY_H_

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/NodeCamera.h
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/NodeCamera.h	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/NodeCamera.h	2009-10-15 19:38:45 UTC (rev 23872)
@@ -189,4 +189,4 @@
 };
 
 
-#endif // NODE_CAMERA_H_
\ No newline at end of file
+#endif // NODE_CAMERA_H_

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/Rep.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/Rep.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/Rep.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -1 +1 @@
-#include "Rep.h"
\ No newline at end of file
+#include "Rep.h"

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/SceneVisitor.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/SceneVisitor.cpp	2009-10-15 19:32:07 UTC (rev 23871)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/scene_graph/SceneVisitor.cpp	2009-10-15 19:38:45 UTC (rev 23872)
@@ -1 +1 @@
-#include "SceneVisitor.h"
\ No newline at end of file
+#include "SceneVisitor.h"

Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeIO.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/stroke/StrokeIO.cpp	2009-10-15 19:32:07 UTC (rev 23871)

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list