Revision: 563
          http://rpy.svn.sourceforge.net/rpy/?rev=563&view=rev
Author:   lgautier
Date:     2008-06-15 15:10:56 -0700 (Sun, 15 Jun 2008)

Log Message:
-----------
- Fixes in function signatures to clear warnings at compile time

Modified Paths:
--------------
    branches/rpy_nextgen/rpy/rinterface/rinterface.c

Modified: branches/rpy_nextgen/rpy/rinterface/rinterface.c
===================================================================
--- branches/rpy_nextgen/rpy/rinterface/rinterface.c    2008-06-12 09:06:37 UTC 
(rev 562)
+++ branches/rpy_nextgen/rpy/rinterface/rinterface.c    2008-06-15 22:10:56 UTC 
(rev 563)
@@ -177,7 +177,7 @@
 
 
 static void
-EmbeddedR_WriteConsole(char *buf, int len)
+EmbeddedR_WriteConsole(const char *buf, int len)
 {
   PyOS_sighandler_t old_int;
   PyObject *arglist;
@@ -571,7 +571,7 @@
         Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,     /*tp_flags*/
         0,                      /*tp_doc*/
         0,                      /*tp_traverse*/
-        Sexp_clear,                      /*tp_clear*/
+        (inquiry)Sexp_clear,                      /*tp_clear*/
         0,                      /*tp_richcompare*/
         0,                      /*tp_weaklistoffset*/
         0,                      /*tp_iter*/
@@ -1106,7 +1106,7 @@
             " is done at zero.");
 
 static int
-VectorSexp_init(SexpObject *self, PyObject *args, PyObject *kwds);
+VectorSexp_init(PyObject *self, PyObject *args, PyObject *kwds);
 
 static PyTypeObject VectorSexp_Type = {
        /* The ob_type field must be initialized in the module init function
@@ -1157,7 +1157,7 @@
  
 
 static int
-VectorSexp_init(SexpObject *self, PyObject *args, PyObject *kwds)
+VectorSexp_init(PyObject *self, PyObject *args, PyObject *kwds)
 {
 #ifdef RPY_VERBOSE
   printf("%p: VectorSexp initializing...\n", self);
@@ -1252,7 +1252,7 @@
     res = NULL;
   }
   Py_DECREF(Py_False);
-  return res;
+  return (PyObject *)res;
 }
 PyDoc_STRVAR(EnvironmentSexp_findVar_doc,
             "Find an R object in a given environment.");
@@ -1391,7 +1391,7 @@
 
 
 static int
-EnvironmentSexp_init(PySexpObject *self, PyObject *args, PyObject *kwds);
+EnvironmentSexp_init(PyObject *self, PyObject *args, PyObject *kwds);
 
 static PyTypeObject EnvironmentSexp_Type = {
        /* The ob_type field must be initialized in the module init function
@@ -1442,7 +1442,7 @@
 };
 
 static int
-EnvironmentSexp_init(PySexpObject *self, PyObject *args, PyObject *kwds)
+EnvironmentSexp_init(PyObject *self, PyObject *args, PyObject *kwds)
 {
   PyObject *object;
   PyObject *copy;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to