[xiph-cvs] cvs commit: ogg-python/src _oggmodule.c pyoggpackbuff.c pyoggpacket.c pyoggpage.c pyoggstreamstate.c pyoggsyncstate.c

Andrew Catham Master of Python andrew at xiph.org
Sun Feb 17 17:19:03 PST 2002



andrew      02/02/17 17:19:03

  Modified:    .        ChangeLog
               src      _oggmodule.c pyoggpackbuff.c pyoggpacket.c
                        pyoggpage.c pyoggstreamstate.c pyoggsyncstate.c
  Log:
  2002-02-17  Andrew H. Chatham <andrew.chatham at duke.edu>
          * _oggmodule.c, pyoggsyncstate.c, pyoggstreamstate.c,
            pyoggpage.c, pyoggpacket.c, pyoggpackbuff.c:
          Set the ob_types in the init method instead of statically, as
          MSVC complains.

Revision  Changes    Path
1.9       +6 -0      ogg-python/ChangeLog

Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/ChangeLog,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ChangeLog	2002/01/27 11:17:25	1.8
+++ ChangeLog	2002/02/18 01:19:01	1.9
@@ -1,3 +1,9 @@
+2002-02-17  Andrew H. Chatham <andrew.chatham at duke.edu>
+	* _oggmodule.c, pyoggsyncstate.c, pyoggstreamstate.c,
+	  pyoggpage.c, pyoggpacket.c, pyoggpackbuff.c:
+	Set the ob_types in the init method instead of statically, as 
+	MSVC complains.
+	
 2002-01-27  Andrew H. Chatham <andrew.chatham at duke.edu>
         * config_unix.py: Pass dir flags better
         * pyoggpackbuff.c (py_oggpack_reset), (py_oggpack_writeclear): 

<p><p>1.6       +7 -0      ogg-python/src/_oggmodule.c

Index: _oggmodule.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/_oggmodule.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- _oggmodule.c	2001/08/31 02:05:29	1.5
+++ _oggmodule.c	2002/02/18 01:19:02	1.6
@@ -7,6 +7,7 @@
 #include "pyoggsyncstate.h"
 #include "pyoggpacket.h"
 #include "pyoggpackbuff.h"
+#include "pyoggpage.h"
 
 static PyMethodDef Ogg_methods[] = {
   {"OggStreamState", py_ogg_stream_state_new, 
@@ -34,6 +35,12 @@
 init_ogg(void)
 {
   PyObject *module, *dict, *Py_module_info;
+
+  py_oggpack_buffer_type.ob_type = &PyType_Type;
+  py_ogg_packet_type.ob_type = &PyType_Type;
+  py_ogg_page_type.ob_type = &PyType_Type;
+  py_ogg_stream_state_type.ob_type = &PyType_Type;
+  py_ogg_sync_state_type.ob_type = &PyType_Type;
   
   module = Py_InitModule("_ogg", Ogg_methods);
   dict = PyModule_GetDict(module);

<p><p>1.5       +1 -1      ogg-python/src/pyoggpackbuff.c

Index: pyoggpackbuff.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggpackbuff.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pyoggpackbuff.c	2002/01/27 11:17:25	1.4
+++ pyoggpackbuff.c	2002/02/18 01:19:02	1.5
@@ -34,7 +34,7 @@
 The second parameter is the number of bits to write (defaults to 32)";
 
 PyTypeObject py_oggpack_buffer_type = {
-  PyObject_HEAD_INIT(&PyType_Type)
+  PyObject_HEAD_INIT(NULL)
   0,
   "Oggpack_Buffer",
   sizeof(py_oggpack_buffer),

<p><p>1.4       +1 -1      ogg-python/src/pyoggpacket.c

Index: pyoggpacket.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggpacket.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pyoggpacket.c	2001/05/14 15:33:11	1.3
+++ pyoggpacket.c	2002/02/18 01:19:02	1.4
@@ -12,7 +12,7 @@
 static PyObject *py_ogg_packet_repr(PyObject *self);
 
 PyTypeObject py_ogg_packet_type = {
-  PyObject_HEAD_INIT(&PyType_Type)
+  PyObject_HEAD_INIT(NULL)
   0,
   "OggPacket",
   sizeof(py_ogg_packet),

<p><p>1.4       +1 -1      ogg-python/src/pyoggpage.c

Index: pyoggpage.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggpage.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pyoggpage.c	2001/05/02 01:49:10	1.3
+++ pyoggpage.c	2002/02/18 01:19:02	1.4
@@ -24,7 +24,7 @@
 FDEF(ogg_page_granulepos) "Return the granular position of the data contained in this page.";
 
 PyTypeObject py_ogg_page_type = {
-  PyObject_HEAD_INIT(&PyType_Type)
+  PyObject_HEAD_INIT(NULL)
   0,
   "OggPage",
   sizeof(py_ogg_page),

<p><p>1.4       +1 -1      ogg-python/src/pyoggstreamstate.c

Index: pyoggstreamstate.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggstreamstate.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pyoggstreamstate.c	2001/05/02 01:49:10	1.3
+++ pyoggstreamstate.c	2002/02/18 01:19:02	1.4
@@ -25,7 +25,7 @@
 FDEF(ogg_stream_packetout) "Extract a packet from the stream";
 
 PyTypeObject py_ogg_stream_state_type = {
-  PyObject_HEAD_INIT(&PyType_Type)
+  PyObject_HEAD_INIT(NULL)
   0,
   "OggStreamState",
   sizeof(py_ogg_stream_state),

<p><p>1.5       +1 -1      ogg-python/src/pyoggsyncstate.c

Index: pyoggsyncstate.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggsyncstate.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pyoggsyncstate.c	2001/05/02 01:49:10	1.4
+++ pyoggsyncstate.c	2002/02/18 01:19:02	1.5
@@ -21,7 +21,7 @@
 FDEF(ogg_sync_pageseek) "Synchronize with the given OggPage.";
 
 PyTypeObject py_ogg_sync_state_type = {
-  PyObject_HEAD_INIT(&PyType_Type)
+  PyObject_HEAD_INIT(NULL)
   0,
   "OggSyncState",
   sizeof(py_ogg_sync_state),

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list