[xiph-cvs] cvs commit: ogg-python/src pyoggpackbuff.c

Andrew Catham Master of Python andrew at xiph.org
Sun Jan 27 03:17:26 PST 2002



andrew      02/01/27 03:17:26

  Modified:    .        ChangeLog config_unix.py setup.py
               src      pyoggpackbuff.c
  Log:
  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):
                  Return None from functions
          * bump version to 0.5

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

Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/ChangeLog,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ChangeLog	2001/09/02 18:21:30	1.7
+++ ChangeLog	2002/01/27 11:17:25	1.8
@@ -1,3 +1,9 @@
+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): 
+		Return None from functions
+	* bump version to 0.5
+	
 2001-09-02  Andrew H. Chatham <andrew.chatham at duke.edu>
         * setup.py: bumped version number to 0.4
         

<p><p>1.2       +1 -1      ogg-python/config_unix.py

Index: config_unix.py
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/config_unix.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- config_unix.py	2001/02/06 03:18:19	1.1
+++ config_unix.py	2002/01/27 11:17:25	1.2
@@ -53,7 +53,7 @@
         execute('rm -f conf.oggtest', 0)
 
         try:
-            run_test(ogg_test_program)
+            run_test(ogg_test_program, flags="-I" + ogg_include_dir)
             if not os.path.isfile('conf.oggtest'):
                 raise RuntimeError, "Did not produce output"
             execute('rm conf.oggtest', 0)

<p><p>1.4       +1 -1      ogg-python/setup.py

Index: setup.py
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/setup.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- setup.py	2001/09/02 18:21:30	1.3
+++ setup.py	2002/01/27 11:17:25	1.4
@@ -11,7 +11,7 @@
 from distutils.extension import Extension
 
 VERSION_MAJOR = 0
-VERSION_MINOR = 4
+VERSION_MINOR = 5
 pyogg_version = str(VERSION_MAJOR) + "." + str(VERSION_MINOR)
 
 def get_setup():

<p><p>1.4       +8 -4      ogg-python/src/pyoggpackbuff.c

Index: pyoggpackbuff.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggpackbuff.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pyoggpackbuff.c	2001/05/02 01:49:10	1.3
+++ pyoggpackbuff.c	2002/01/27 11:17:25	1.4
@@ -4,7 +4,7 @@
 
 /************************************************************
                          OggPackBuffer Object
- ************************************************************/
+************************************************************/
 
 char py_oggpack_buffer_doc[] = "";
 
@@ -113,7 +113,7 @@
     return NULL;
 
   ret = (py_oggpack_buffer *) PyObject_NEW(py_oggpack_buffer,
-					   &py_oggpack_buffer_type);
+																					 &py_oggpack_buffer_type);
   if (ret == NULL)
     return NULL;
 
@@ -128,6 +128,8 @@
     return NULL;
 
   oggpack_reset(PY_OGGPACK_BUFF(self));
+	Py_INCREF(Py_None);
+	return Py_None;
 }
 
 static PyObject *
@@ -135,8 +137,10 @@
 {
   if (!PyArg_ParseTuple(args, ""))
     return NULL;
-
+	
   oggpack_writeclear(PY_OGGPACK_BUFF(self));
+	Py_INCREF(Py_None);
+	return Py_None;
 }
 
 static PyObject *
@@ -306,7 +310,7 @@
   char buf[256];
 
   sprintf(buf, "<OggPackBuff, endbyte = %ld, endbit = %d at %p>", ob->endbyte,
-	  ob->endbit, self);
+					ob->endbit, self);
   return PyString_FromString(buf);
 }
 

<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