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

Andrew Catham Master of Python andrew at xiph.org
Tue Jul 23 00:05:36 PDT 2002



andrew      02/07/23 00:05:36

  Modified:    .        ChangeLog
               src      pyoggpackbuff.c
  Log:
  2002-07-23  Andrew H. Chatham <andrew at andrewchatham.com>
          * pyoggpackbuff.c: Removed *_huff functions (no longer in API).

Revision  Changes    Path
1.11      +3 -0      ogg-python/ChangeLog

Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/ChangeLog,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ChangeLog	2002/05/21 21:42:11	1.10
+++ ChangeLog	2002/07/23 07:05:35	1.11
@@ -1,3 +1,6 @@
+2002-07-23  Andrew H. Chatham <andrew at andrewchatham.com>
+	* pyoggpackbuff.c: Removed *_huff functions (no longer in API).
+	
 2002-05-21  Andrew H. Chatham <andrew.chatham at duke.edu>
         * _oggmodule.c: Include another header
         

<p><p>1.6       +0 -37     ogg-python/src/pyoggpackbuff.c

Index: pyoggpackbuff.c
===================================================================
RCS file: /usr/local/cvsroot/ogg-python/src/pyoggpackbuff.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- pyoggpackbuff.c	2002/02/18 01:19:02	1.5
+++ pyoggpackbuff.c	2002/07/23 07:05:35	1.6
@@ -16,7 +16,6 @@
 FDEF(oggpack_writeclear) "";
 
 FDEF(oggpack_look) "";
-FDEF(oggpack_look_huff) "";
 FDEF(oggpack_look1) "";
 
 FDEF(oggpack_bytes) "";
@@ -26,7 +25,6 @@
 FDEF(oggpack_read1) "";
 
 FDEF(oggpack_adv) "Advance the read location by n bits";
-FDEF(oggpack_adv_huff) "";
 FDEF(oggpack_adv1) "";
 
 FDEF(oggpack_write) "Write bits to the buffer.\n\n\
@@ -69,8 +67,6 @@
    METH_VARARGS, py_oggpack_writeclear_doc},
   {"look", py_oggpack_look,
    METH_VARARGS, py_oggpack_look_doc},
-  {"look_huff", py_oggpack_look_huff,
-   METH_VARARGS, py_oggpack_look_huff_doc},
   {"look1", py_oggpack_look1,
    METH_VARARGS, py_oggpack_look1_doc},
   {"bytes", py_oggpack_bytes,
@@ -85,8 +81,6 @@
    METH_VARARGS, py_oggpack_write_doc},
   {"adv", py_oggpack_adv,
    METH_VARARGS, py_oggpack_adv_doc},
-  {"adv_huff", py_oggpack_adv_huff,
-   METH_VARARGS, py_oggpack_adv_huff_doc},
   {"adv1", py_oggpack_adv1,
    METH_VARARGS, py_oggpack_adv1_doc},
   {NULL, NULL}
@@ -161,23 +155,6 @@
 }
 
 static PyObject *
-py_oggpack_look_huff(PyObject *self, PyObject *args) 
-{
-  int bits = 8;
-  long ret;
-  if (!PyArg_ParseTuple(args, "l", &bits))
-    return NULL;
-
-  if (bits > 8) {
-    PyErr_SetString(PyExc_ValueError, "Cannot look at more than 8 bits");
-    return NULL;
-  }
-
-  ret = oggpack_look_huff(PY_OGGPACK_BUFF(self), bits);
-  return PyLong_FromLong(ret);
-}
-
-static PyObject *
 py_oggpack_look1(PyObject *self, PyObject *args) 
 {
   long ret;
@@ -273,20 +250,6 @@
     return NULL;
 
   oggpack_adv(PY_OGGPACK_BUFF(self), bits);
-
-  Py_INCREF(Py_None);
-  return Py_None;
-}
-
-static PyObject *
-py_oggpack_adv_huff(PyObject *self, PyObject *args)
-{
-  int bits;
-
-  if (!PyArg_ParseTuple(args, "i", &bits))
-    return NULL;
-
-  oggpack_adv_huff(PY_OGGPACK_BUFF(self), bits);
 
   Py_INCREF(Py_None);
   return Py_None;

<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