* Fixed compiler warnings concerning the lack of a newline at the
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Thu, 15 Oct 2009 19:38:45 +0000 (19:38 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Thu, 15 Oct 2009 19:38:45 +0000 (19:38 +0000)
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.

21 files changed:
source/blender/freestyle/FRS_freestyle_config.h
source/blender/freestyle/intern/geometry/FastGrid.cpp
source/blender/freestyle/intern/python/BPy_Freestyle.cpp
source/blender/freestyle/intern/python/BPy_Id.cpp
source/blender/freestyle/intern/python/BPy_SShape.cpp
source/blender/freestyle/intern/python/BPy_ViewMap.cpp
source/blender/freestyle/intern/python/BPy_ViewShape.cpp
source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
source/blender/freestyle/intern/python/StrokeShader/BPy_GuidingLinesShader.cpp
source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp
source/blender/freestyle/intern/rendering/GLBlendEquation.cpp
source/blender/freestyle/intern/rendering/GLFreeMemoryVisitor.h
source/blender/freestyle/intern/scene_graph/NodeCamera.h
source/blender/freestyle/intern/scene_graph/Rep.cpp
source/blender/freestyle/intern/scene_graph/SceneVisitor.cpp
source/blender/freestyle/intern/stroke/StrokeIO.cpp
source/blender/freestyle/intern/stroke/StrokeIO.h
source/blender/freestyle/intern/system/BaseObject.cpp
source/blender/freestyle/intern/system/Iterator.cpp
source/blender/freestyle/intern/system/Iterator.h

index 22ccd320e7e185557371ba50335fc6d630a5b2f0..86a05d1aa223604361d74c3a0aaea47d0b6d2131 100644 (file)
@@ -14,4 +14,4 @@ extern "C" {
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif
index b090a3df67f8020385ccaee73ac63cc0977e6cc3..325126b4b96aa5049e39947a49532af8758b0ec7 100755 (executable)
@@ -59,4 +59,4 @@ void FastGrid::fillCell(const Vec3u& p, Cell& cell) {
     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
+}
index 3f53619cdbd1ae1b853dfa0b76dd3fd913a2edd2..bd5a5c8b38a1b1f4c436ab458e412b3fef4d7625 100644 (file)
@@ -101,4 +101,4 @@ PyObject *Freestyle_Init( void )
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif
index fbc22c2bffc69ff2d6348bb49d7efe798cfca6c1..3c157230cffc26f2aac36b938c25eb13d73c73a1 100644 (file)
@@ -174,4 +174,4 @@ PyObject * Id_RichCompare(BPy_Id *o1, BPy_Id *o2, int opid) {
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif
index 6538818d025e84f9fef16637c0970a5d93929008..9ab2fbac09658824b482a583f48412049abd9f54 100644 (file)
@@ -177,7 +177,7 @@ PyObject * SShape_bbox( BPy_SShape *self ) {
 
 
 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_getVertexList( BPy_SShape *self ) {
 
 
 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 @@ PyObject * SShape_setId( BPy_SShape *self , PyObject *args) {
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif
index 7cbf2b5645c79c4e1ec546862e5d62f9bfb6bafc..19ba7469a24eedb1fe0afbce28a21fc4aab0fd32 100644 (file)
@@ -154,4 +154,4 @@ PyObject * ViewMap_setScene3dBBox( BPy_ViewMap *self , PyObject *args) {
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif
index fcff1338ed1d44cacbc25c4237a1c6a850b1e2c9..46ac5e44d0d9e7682ba617dd61307f5e0dff16c4 100644 (file)
@@ -142,7 +142,7 @@ PyObject * ViewShape_sshape( BPy_ViewShape *self ) {
 
 
 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_vertices( BPy_ViewShape *self ) {
 
 
 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 @@ PyObject * ViewShape_AddVertex( BPy_ViewShape *self , PyObject *args) {
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif
index 36702799b49388fdbe13a055423e66e0f470cd88..dd204925936699f60644faa7b61cb8b8a26017ab 100644 (file)
@@ -133,7 +133,7 @@ PyObject * SVertex_normals( BPy_SVertex *self ) {
        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++ ) {
index a94b9ef523480f7dc53486211152230d1636d33c..3e1a7c0f858e121887b7c982602536186a75976f 100644 (file)
@@ -72,4 +72,3 @@ int GuidingLinesShader___init__( BPy_GuidingLinesShader* self, PyObject *args)
 #ifdef __cplusplus
 }
 #endif
-       
\ No newline at end of file
index 66c22528e7f1d3a4c35a67b3999e5daefbfec17d..5fcbff2c8de924fd32497860e4f29d948a994e9c 100644 (file)
@@ -139,7 +139,7 @@ PyObject * UnaryFunction0DVectorViewShape___call__( BPy_UnaryFunction0DVectorVie
                }
                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] )) );
index d1ff993d0a01a89cf52f6e5d2c730147334d3b06..4f5a5a731f9c64ed8f704b2350dc37184670cb95 100644 (file)
@@ -166,7 +166,7 @@ PyObject * UnaryFunction1DVectorViewShape___call__( BPy_UnaryFunction1DVectorVie
                }
                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] )) );
index 5dc0985aa53354533943122741127e54458f264a..2cbd003c58e5cd267b6f2ebf2ccc2572e03f87db 100644 (file)
@@ -6,4 +6,4 @@ void FRS_glBlendEquation(GLenum mode) {
        } else if ( glBlendEquationEXT ) {
                glBlendEquationEXT(mode);
        }
-}
\ No newline at end of file
+}
index dd6412b1bb7c30c4f88e182ed69cf5b462895f1c..2b9314f3701be34523a6d6cfceea654130e98557 100644 (file)
@@ -20,4 +20,4 @@ public:
         VISIT_DECL(IndexedFaceSet)
 };
 
-#endif // GL_FREE_MEMORY_H_
\ No newline at end of file
+#endif // GL_FREE_MEMORY_H_
index 76ccf465d387094057dcc75c80edfaa5e5007000..cdd6fa830482ffdb94c83aa2fc803c8076bb804e 100644 (file)
@@ -189,4 +189,4 @@ public:
 };
 
 
-#endif // NODE_CAMERA_H_
\ No newline at end of file
+#endif // NODE_CAMERA_H_
index 520d3c41e2e09a900468b2c1852d1f2f18348706..84ad2c2a966935009678e7e097406ed63d7e4973 100755 (executable)
@@ -1 +1 @@
-#include "Rep.h"
\ No newline at end of file
+#include "Rep.h"
index 9cfb9d40d24ac34ff63b2c3b37cdfa5ef0e6ea85..da9c94930bdad2bfacd0ecf3f302a63753319120 100755 (executable)
@@ -1 +1 @@
-#include "SceneVisitor.h"
\ No newline at end of file
+#include "SceneVisitor.h"
index 7f540939fa11528aaaf37a50f314df6fbd66b7a5..903a198adc26829cd7d34116ba6631059ba902d9 100755 (executable)
@@ -52,4 +52,4 @@ ostream& operator<<(ostream& out, const Stroke& iStroke){
     out << *(*v) << endl;
   }
   return out;
-}
\ No newline at end of file
+}
index 42b99420f4af27f2a3e089758401234b912461db..c99704c3b37a103c9b41fdd2987ae62028302aaa 100755 (executable)
@@ -44,4 +44,4 @@ LIB_STROKE_EXPORT
 ostream& operator<<(ostream& out, const Stroke& iStroke);
 
 
-#endif // STROKEIO_H
\ No newline at end of file
+#endif // STROKEIO_H
index 21d8a77b268099b1402e01988dc083edae1a95f2..0cf1c917195aa34ea63349db2267ad45b8fd5971 100755 (executable)
@@ -1 +1 @@
-#include "BaseObject.h"
\ No newline at end of file
+#include "BaseObject.h"
index b3b0de9563d92ac16cc72bdb1e71424184297fc4..67acc8935899a65b5e3a34ac19304fe39dd3b39b 100644 (file)
@@ -1 +1 @@
-#include "Iterator.h"
\ No newline at end of file
+#include "Iterator.h"
index ce6badd543ac4384311a30105e80547095b1cb93..1801c1e3b2ff96aa56f701c3ed3679c3e6667445 100644 (file)
@@ -38,4 +38,4 @@ public:
 
 };
 
-#endif // ITERATOR_H
\ No newline at end of file
+#endif // ITERATOR_H