Anonymous avatar Anonymous committed c2a6107

Added doc strings to the pygame2.openal base types.

Comments (0)

Files changed (13)

 * alpha1 (rev. 2176)
 * alpha2 (rev. 2430)
 * alpha3 (rev. 2707)
-
- 
   capi/freetype.rst
   capi/mask.rst
   capi/math.rst
+  capi/openal.rst
   capi/sdlbase.rst
   capi/sdlcdrom.rst
   capi/sdlevent.rst

doc/capi/openal.rst

+==============
+pygame2.openal
+==============
+The :mod:`pygame2.openal` C API contains various objects and functions for
+math and vector operations.
+
+Import
+------
+Include headers::
+
+  pygame2/pgopenal.h
+
+.. cfunction:: int import_pygame2_openal (void)
+
+  Imports the :mod:`pygame2.openal` module. This returns 0 on success and
+  -1 on failure.
+
+Macros
+------
+
+.. cfunction:: CONTEXT_IS_CURRENT (ctxt)
+
+  Gets, whether the passed context is the current one. This returns 0,
+  if the context is not the current one
+
+.. cfunction:: ASSERT_CONTEXT_IS_CURRENT (ctxt, ret)
+
+  Checks, whether the passed context is the current one. If not, this
+  will set a :exc:`PyExc_PyGameError` and return *retval*.
+
+PyDevice
+--------
+.. ctype:: PyDevice
+.. ctype:: PyDevice_Type
+
+The PyDevice object is an OpenAL device implementation, which
+interoperates with the underlying audio hardware or software driver and
+is used for audio playback.
+
+Members
+^^^^^^^
+.. cmember:: ALCdevice* PyDevice.device
+
+Functions
+^^^^^^^^^
+.. cfunction:: int PyDevice_Check (PyObject *obj)
+
+  Returns true, if the argument is a :ctype:`PyDevice` or a subclass of
+  :ctype:`PyDevice`.
+
+.. cfunction:: ALCdevice* PyDevice_AsDevice (PyObject *obj)
+
+  Macro for accessing the *device* member of the :ctype:`PyDevice`. This
+  does not perform any type or argument checks.
+
+.. cfunction:: PyObject* PyDevice_New (const char *name)
+
+  Creates a new :ctype:`PyDevice` object for the passed OpenAL device
+  identifier. *name* can bu NULL to use the default device. On failure,
+  this returns NULL.
+
+PyCaptureDevice
+---------------
+.. ctype:: PyCaptureDevice
+.. ctype:: PyCaptureDevice_Type
+
+The PyCaptureDevice object is an OpenAL device implementation, which
+interoperates with the underlying audio hardware or software driver and
+is used for audio recording.
+
+Members
+^^^^^^^
+.. cmember:: PyDevice PyCaptureDevice.device
+
+  The parent :ctype:`PyDevice` class the PyCaptureDevice inherits from.
+
+.. cmember:: ALCsizei PyCaptureDevice.size
+
+  The default buffer size to use for capturing sound.
+
+.. cmember:: ALCenum PyCaptureDevice.format
+
+  The format of the sound to capture.
+
+.. cmember:: ALCuint PyCaptureDevice.frequency
+
+  The frequency in Hz of the sound to capture.
+
+Functions
+^^^^^^^^^
+.. cfunction:: int PyCaptureDevice_Check (PyObject *obj)
+
+  Returns true, if the argument is a :ctype:`PyCaptureDevice` or a
+  subclass of :ctype:`PyCaptureDevice`.
+
+.. cfunction:: ALCdevice* PyCaptureDevice_AsDevice (PyObject *obj)
+
+  Macro for accessing the (inherited) *device* member of the
+  :ctype:`PyCaptureDevice`. This does not perform any type or argument
+  checks.
+
+.. cfunction:: PyObject* PyCaptureDevice_New (const char *name, ALCuint frequency, ALCenum format, ALCsizei size)
+
+  Creates a new :ctype:`PyCaptureDevice` object for the passed OpenAL
+  device identifier. *name* can bu NULL to use the default capture
+  device. On failure, this returns NULL.
+
+PyContext
+---------
+.. ctype:: PyContext
+.. ctype:: PyContext_Type
+
+.. todo::
+
+  describe
+
+Members
+^^^^^^^
+.. cmember:: ALCcontext* context
+.. cmember:: PyObject* device
+.. cmember:: PyObject* listener
+
+Functions
+^^^^^^^^^
+.. cfunction:: int PyContext_Check (PyObject *obj)
+
+  Returns true, if the argument is a :ctype:`PyContext` or a subclass of
+  :ctype:`PyContext`.
+
+.. cfunction:: ALCcontext* PyContext_AsContext (PyObject *obj)
+
+  Macro for accessing the *context* member of the :ctype:`PyContext`. This
+  does not perform any type or argument checks.
+
+PyBuffers
+---------
+.. ctype:: PyBuffers
+.. ctype:: PyBuffers_Type
+
+.. todo::
+
+  describe
+
+Members
+^^^^^^^
+.. cmember:: PyObject* context
+.. cmember:: ALCsizei count
+.. cmember:: ALuint* buffers
+
+Functions
+^^^^^^^^^
+.. cfunction:: int PyBuffers_Check (PyObject *obj)
+
+  Returns true, if the argument is a :ctype:`PyBuffers` or a subclass of
+  :ctype:`PyBuffers`.
+
+.. cfunction:: ALuint* PyBuffers_AsBuffers (PyObject *obj)
+
+  Macro for accessing the *buffers* member of the :ctype:`PyBuffers`. This
+  does not perform any type or argument checks.
+
+PySources
+---------
+.. ctype:: PySources
+.. ctype:: PySources_Type
+
+.. todo::
+
+  describe
+
+Members
+^^^^^^^
+.. cmember:: PyObject* context
+.. cmember:: ALCsizei count
+.. cmember:: ALuint* sources
+
+Functions
+^^^^^^^^^
+.. cfunction:: int PySources_Check (PyObject *obj)
+
+  Returns true, if the argument is a :ctype:`PySources` or a subclass of
+  :ctype:`PySources`.
+
+.. cfunction:: ALuint* PySources_AsSources (PyObject *obj)
+
+  Macro for accessing the *sources* member of the :ctype:`PySources`. This
+  does not perform any type or argument checks.
+
+PyListner
+---------
+.. ctype:: PyListener
+.. ctype:: PyListener_Type
+
+.. todo::
+
+  describe
+
+Members
+^^^^^^^
+.. cmember:: PyObject* context
+
+Functions
+^^^^^^^^^
+.. cfunction:: int PyListener_Check (PyObject *obj)
+
+  Returns true, if the argument is a :ctype:`PyListener` or a subclass of
+  :ctype:`PyListener`.
 
 # General information about the project.
 project = u'Pygame2'
-copyright = u'2009, The Pygame development team'
+copyright = u'2009-2010, The Pygame development team'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
                     "src/openal/context.c",
                     "src/openal/capturedevice.c",
                     "src/openal/device.c" ],
+        instheaders = [ "src/openal/pgopenal.h" ],
+        docfile = "openalbase.xml",
         depends = [ 'openal' ],
         experimental = True),
     ]

src/openal/buffers.c

 
 #include "openalmod.h"
 #include "pgopenal.h"
+#include "openalbase_doc.h"
 
 static int _buffers_init (PyObject *self, PyObject *args, PyObject *kwds);
 static void _buffers_dealloc (PyBuffers *self);
 /**
  */
 static PyMethodDef _buffers_methods[] = {
-    { "set_prop", _buffers_setprop, METH_VARARGS, NULL },
-    { "get_prop", _buffers_getprop, METH_VARARGS, NULL },
-    { "buffer_data", _buffers_bufferdata, METH_VARARGS, NULL },
+    { "set_prop", _buffers_setprop, METH_VARARGS, DOC_BASE_BUFFERS_SET_PROP },
+    { "get_prop", _buffers_getprop, METH_VARARGS, DOC_BASE_BUFFERS_GET_PROP },
+    { "buffer_data", _buffers_bufferdata, METH_VARARGS,
+      DOC_BASE_BUFFERS_BUFFER_DATA },
     { NULL, NULL, 0, NULL }
 };
 
 /**
  */
 static PyGetSetDef _buffers_getsets[] = {
-    { "count", _buffers_getcount, NULL, NULL, NULL },
-    { "buffers", _buffers_getbuffers, NULL, NULL, NULL },
+    { "count", _buffers_getcount, NULL, DOC_BASE_BUFFERS_COUNT, NULL },
+    { "buffers", _buffers_getbuffers, NULL, DOC_BASE_BUFFERS_BUFFERS, NULL },
     { NULL, NULL, NULL, NULL, NULL }
 };
 
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
-    0/*DOC_BASE_DEVICE*/,
+    DOC_BASE_BUFFERS,
     0,                          /* tp_traverse */
     0,                          /* tp_clear */
     0,                          /* tp_richcompare */

src/openal/capturedevice.c

 #include "openalmod.h"
 #include "pgbase.h"
 #include "pgopenal.h"
+#include "openalbase_doc.h"
 
 static int _getbytesfromformat (ALenum format);
 static int _getchannelsfromformat (ALenum format);
 /**
  */
 static PyMethodDef _capturedevice_methods[] = {
-    { "start", (PyCFunction) _capturedevice_start, METH_NOARGS, NULL },
-    { "stop", (PyCFunction) _capturedevice_stop, METH_NOARGS, NULL },
+    { "start", (PyCFunction) _capturedevice_start, METH_NOARGS,
+      DOC_BASE_CAPTUREDEVICE_START },
+    { "stop", (PyCFunction) _capturedevice_stop, METH_NOARGS,
+      DOC_BASE_CAPTUREDEVICE_STOP },
     { "get_samples", (PyCFunction) _capturedevice_getsamples, METH_VARARGS,
-      NULL },
+      DOC_BASE_CAPTUREDEVICE_GET_SAMPLES },
     { NULL, NULL, 0, NULL }
 };
 
 /**
  */
 static PyGetSetDef _capturedevice_getsets[] = {
-    { "size", _capturedevice_getsize, NULL, NULL, NULL },
-    { "frequency", _capturedevice_getfrequency, NULL, NULL, NULL },
-    { "format", _capturedevice_getformat, NULL, NULL, NULL },
+    { "size", _capturedevice_getsize, NULL, DOC_BASE_CAPTUREDEVICE_SIZE, NULL },
+    { "frequency", _capturedevice_getfrequency, NULL, 
+      DOC_BASE_CAPTUREDEVICE_FREQUENCY, NULL },
+    { "format", _capturedevice_getformat, NULL, DOC_BASE_CAPTUREDEVICE_FORMAT,
+      NULL },
     { NULL, NULL, NULL, NULL, NULL }
 };
 
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
-    0/*DOC_BASE_DEVICE*/,
+    DOC_BASE_CAPTUREDEVICE,
     0,                          /* tp_traverse */
     0,                          /* tp_clear */
     0,                          /* tp_richcompare */

src/openal/context.c

 #include "pgbase.h"
 #include "openalmod.h"
 #include "pgopenal.h"
+#include "openalbase_doc.h"
 
 static int _context_init (PyObject *self, PyObject *args, PyObject *kwds);
 static void _context_dealloc (PyContext *self);
 /**
  */
 static PyMethodDef _context_methods[] = {
-    { "make_current", (PyCFunction)_context_makecurrent, METH_NOARGS, NULL },
-    { "create_buffers", (PyCFunction) _context_createbuffers, METH_O, NULL },
-    { "create_sources", (PyCFunction) _context_createsources, METH_O, NULL },
-    { "suspend", (PyCFunction) _context_suspend, METH_NOARGS, NULL },
-    { "process", (PyCFunction) _context_process, METH_NOARGS, NULL },
-    { "enable", (PyCFunction) _context_enable, METH_O, "" },
-    { "disable", (PyCFunction) _context_disable, METH_O, "" },
-    { "is_enabled", (PyCFunction) _context_isenabled, METH_O, "" },
+    { "make_current", (PyCFunction)_context_makecurrent, METH_NOARGS,
+      DOC_BASE_CONTEXT_MAKE_CURRENT },
+    { "create_buffers", (PyCFunction) _context_createbuffers, METH_O,
+      DOC_BASE_CONTEXT_CREATE_BUFFERS },
+    { "create_sources", (PyCFunction) _context_createsources, METH_O,
+      DOC_BASE_CONTEXT_CREATE_SOURCES },
+    { "suspend", (PyCFunction) _context_suspend, METH_NOARGS,
+      DOC_BASE_CONTEXT_SUSPEND },
+    { "process", (PyCFunction) _context_process, METH_NOARGS,
+      DOC_BASE_CONTEXT_PROCESS },
+    { "enable", (PyCFunction) _context_enable, METH_O,
+      DOC_BASE_CONTEXT_ENABLE },
+    { "disable", (PyCFunction) _context_disable, METH_O,
+      DOC_BASE_CONTEXT_DISABLE },
+    { "is_enabled", (PyCFunction) _context_isenabled, METH_O,
+      DOC_BASE_CONTEXT_IS_ENABLED },
     /*{ "get_prop", (PyCFunction) _context_getprop, METH_VARARGS, "" },*/
     { NULL, NULL, 0, NULL }
 };
 /**
  */
 static PyGetSetDef _context_getsets[] = {
-    { "is_current", _context_iscurrent, NULL, NULL, NULL },
-    { "device", _context_getdevice, NULL, NULL, NULL },
-    { "listener", _context_getlistener, NULL, NULL, NULL },
+    { "is_current", _context_iscurrent, NULL, DOC_BASE_CONTEXT_IS_CURRENT,
+      NULL },
+    { "device", _context_getdevice, NULL, DOC_BASE_CONTEXT_DEVICE, NULL },
+    { "listener", _context_getlistener, NULL, DOC_BASE_CONTEXT_LISTENER, NULL },
     { "distance_model", _context_getdistancemodel, _context_setdistancemodel,
-      NULL, NULL },
+      DOC_BASE_CONTEXT_DISTANCE_MODEL, NULL },
     { "doppler_factor", _context_getdopplerfactor, _context_setdopplerfactor,
-      NULL, NULL }, 
+      DOC_BASE_CONTEXT_DOPPLER_FACTOR, NULL }, 
     { "speed_of_sound", _context_getspeedofsound, _context_setspeedofsound,
-      NULL, NULL },
+      DOC_BASE_CONTEXT_SPEED_OF_SOUND, NULL },
     { NULL, NULL, NULL, NULL, NULL }
 };
 
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
-    0/*DOC_BASE_CONTEXT*/,
+    DOC_BASE_CONTEXT,
     0,                          /* tp_traverse */
     0,                          /* tp_clear */
     0,                          /* tp_richcompare */

src/openal/device.c

 
 #include "openalmod.h"
 #include "pgopenal.h"
+#include "openalbase_doc.h"
 
 static int _device_init (PyObject *self, PyObject *args, PyObject *kwds);
 static void _device_dealloc (PyDevice *self);
 /**
  */
 static PyMethodDef _device_methods[] = {
-    { "has_extension", _device_hasextension, METH_VARARGS, NULL },
-    { "get_error", (PyCFunction)_device_geterror, METH_NOARGS, NULL },
-    { "get_enum_value", _device_getenumvalue, METH_O, NULL },
+    { "has_extension", _device_hasextension, METH_VARARGS,
+      DOC_BASE_DEVICE_HAS_EXTENSION },
+    { "get_error", (PyCFunction)_device_geterror, METH_NOARGS,
+      DOC_BASE_DEVICE_GET_ERROR },
+    { "get_enum_value", _device_getenumvalue, METH_O,
+      DOC_BASE_DEVICE_GET_ENUM_VALUE },
     { NULL, NULL, 0, NULL }
 };
 
 /**
  */
 static PyGetSetDef _device_getsets[] = {
-    { "name", _device_getname, NULL, NULL/*DOC_BASEDEVICE_NAME*/, NULL },
-    { "extensions", _device_getextensions, NULL, NULL, NULL },
+    { "name", _device_getname, NULL, DOC_BASE_DEVICE_NAME, NULL },
+    { "extensions", _device_getextensions, NULL, DOC_BASE_DEVICE_EXTENSIONS,
+      NULL },
     { NULL, NULL, NULL, NULL, NULL }
 };
 
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
-    0/*DOC_BASE_DEVICE*/,
+    DOC_BASE_DEVICE,
     0,                          /* tp_traverse */
     0,                          /* tp_clear */
     0,                          /* tp_richcompare */

src/openal/listener.c

 
 #include "openalmod.h"
 #include "pgopenal.h"
+#include "openalbase_doc.h"
 
 static int _listener_init (PyObject *self, PyObject *args, PyObject *kwds);
 static void _listener_dealloc (PyListener *self);
 /**
  */
 static PyMethodDef _listener_methods[] = {
-    { "set_prop", _listener_setprop, METH_VARARGS, NULL },
-    { "get_prop", _listener_getprop, METH_VARARGS, NULL },
+    { "set_prop", _listener_setprop, METH_VARARGS, DOC_BASE_LISTENER_SET_PROP },
+    { "get_prop", _listener_getprop, METH_VARARGS, DOC_BASE_LISTENER_GET_PROP },
     { NULL, NULL, 0, NULL }
 };
 
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
-    0/*DOC_BASE_DEVICE*/,
+    DOC_BASE_LISTENER,
     0,                          /* tp_traverse */
     0,                          /* tp_clear */
     0,                          /* tp_richcompare */

src/openal/openalmod.c

 #include "openalmod.h"
 #include "pgbase.h"
 #include "pgopenal.h"
-/*#include "openalbase_doc.h"*/
+#include "openalbase_doc.h"
 
 static PyObject* _openal_init (PyObject *self);
 static PyObject* _openal_quit (PyObject *self);
 static PyObject* _openal_getdefaultcapturedevicename (PyObject *self);
 
 static PyMethodDef _openal_methods[] = {
-    { "init", (PyCFunction)_openal_init, METH_NOARGS, ""/*DOC_BASE_INIT*/ },
-    { "quit", (PyCFunction)_openal_quit, METH_NOARGS, ""/*DOC_BASE_QUIT*/ },
+    { "init", (PyCFunction)_openal_init, METH_NOARGS, DOC_BASE_INIT },
+    { "quit", (PyCFunction)_openal_quit, METH_NOARGS, DOC_BASE_QUIT },
     { "get_error", (PyCFunction)_openal_geterror, METH_NOARGS,
-      ""/*DOC_BASE_GETERROR*/ },
-    { "is_extension_present", _openal_isextensionpresent, METH_VARARGS, "" },
-    { "get_enum_value", _openal_getenumvalue, METH_O, "" }, 
+      DOC_BASE_GET_ERROR },
+    { "is_extension_present", _openal_isextensionpresent, METH_VARARGS,
+      DOC_BASE_IS_EXTENSION_PRESENT },
+    { "get_enum_value", _openal_getenumvalue, METH_O,
+      DOC_BASE_GET_ENUM_VALUE }, 
     { "list_output_devices", (PyCFunction)_openal_listoutputdevices,
-      METH_NOARGS, "" },
+      METH_NOARGS, DOC_BASE_LIST_OUTPUT_DEVICES },
     { "list_capture_devices", (PyCFunction)_openal_listcapturedevices,
-      METH_NOARGS, "" },
-    { "al_get_string", (PyCFunction)_openal_algetstring, METH_O, "" },
+      METH_NOARGS, DOC_BASE_LIST_CAPTURE_DEVICES },
+    { "al_get_string", (PyCFunction)_openal_algetstring, METH_O,
+      DOC_BASE_AL_GET_STRING },
     { "set_current_context", (PyCFunction)_openal_setcurrentcontext,
-      METH_O, "" },
+      METH_O, DOC_BASE_SET_CURRENT_CONTEXT },
     { "get_default_output_device_name",
-      (PyCFunction) _openal_getdefaultoutputdevicename, METH_NOARGS, ""},
+      (PyCFunction) _openal_getdefaultoutputdevicename, METH_NOARGS,
+      DOC_BASE_GET_DEFAULT_OUTPUT_DEVICE_NAME },
     { "get_default_capture_device_name",
-      (PyCFunction) _openal_getdefaultcapturedevicename, METH_NOARGS, ""},
+      (PyCFunction) _openal_getdefaultcapturedevicename, METH_NOARGS,
+      DOC_BASE_GET_DEFAULT_CAPTURE_DEVICE_NAME },
    
     { NULL, NULL, 0, NULL },
 };
     };
     mod = PyModule_Create (&_module);
 #else
-    mod = Py_InitModule3 ("base", _openal_methods, ""/*DOC_BASE*/);
+    mod = Py_InitModule3 ("base", _openal_methods, DOC_BASE);
 #endif
     if (!mod)
         goto fail;

src/openal/sources.c

 
 #include "openalmod.h"
 #include "pgopenal.h"
+#include "openalbase_doc.h"
 
 static int _sources_init (PyObject *self, PyObject *args, PyObject *kwds);
 static void _sources_dealloc (PySources *self);
 /**
  */
 static PyMethodDef _sources_methods[] = {
-    { "set_prop", _sources_setprop, METH_VARARGS, NULL },
-    { "get_prop", _sources_getprop, METH_VARARGS, NULL },
-    { "play", _sources_play, METH_O, NULL },
-    { "pause", _sources_pause, METH_O, NULL },
-    { "stop", _sources_stop, METH_O, NULL },
-    { "rewind", _sources_rewind, METH_O, NULL },
-    { "queue_buffers", _sources_queuebuffers, METH_VARARGS, NULL },
-    { "unqueue_buffers", _sources_unqueuebuffers, METH_VARARGS, NULL },
+    { "set_prop", _sources_setprop, METH_VARARGS, DOC_BASE_SOURCES_SET_PROP },
+    { "get_prop", _sources_getprop, METH_VARARGS, DOC_BASE_SOURCES_GET_PROP },
+    { "play", _sources_play, METH_O, DOC_BASE_SOURCES_PLAY },
+    { "pause", _sources_pause, METH_O, DOC_BASE_SOURCES_PAUSE },
+    { "stop", _sources_stop, METH_O, DOC_BASE_SOURCES_STOP },
+    { "rewind", _sources_rewind, METH_O, DOC_BASE_SOURCES_REWIND },
+    { "queue_buffers", _sources_queuebuffers, METH_VARARGS,
+      DOC_BASE_SOURCES_QUEUE_BUFFERS },
+    { "unqueue_buffers", _sources_unqueuebuffers, METH_VARARGS,
+      DOC_BASE_SOURCES_UNQUEUE_BUFFERS },
     { NULL, NULL, 0, NULL }
 };
 
 /**
  */
 static PyGetSetDef _sources_getsets[] = {
-    { "count", _sources_getcount, NULL, NULL, NULL },
-    { "sources", _sources_getsources, NULL, NULL, NULL },
+    { "count", _sources_getcount, NULL, DOC_BASE_SOURCES_COUNT, NULL },
+    { "sources", _sources_getsources, NULL, DOC_BASE_SOURCES_SOURCES, NULL },
     { NULL, NULL, NULL, NULL, NULL }
 };
 
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
-    0/*DOC_BASE_DEVICE*/,
+    DOC_BASE_SOURCES,
     0,                          /* tp_traverse */
     0,                          /* tp_clear */
     0,                          /* tp_richcompare */

test/c_api/base_tests.c

         ERROR ("Mismatch in UintFromSeqIndex result 1");
 
     i = j = 0;
-    if (!PointFromObject (seq, &i, &j))
-        ERROR ("Mismatch in PointFromObject");
+    if (!PointFromObj (seq, &i, &j))
+        ERROR ("Mismatch in PointFromObj");
     if (i != 2 || j != 4)
-        ERROR ("Mismatch in PointFromObject result");
+        ERROR ("Mismatch in PointFromObj result");
 
     sw = sh = 0;
-    if (!SizeFromObject (seq, &sw, &sh))
-        ERROR ("Mismatch in SizeFromObject");
+    if (!SizeFromObj (seq, &sw, &sh))
+        ERROR ("Mismatch in SizeFromObj");
     if (sw != 2 || sh != 4)
-        ERROR ("Mismatch in SizeFromObject result");
+        ERROR ("Mismatch in SizeFromObj result");
 
     d = e = 0;
-    if (!FPointFromObject (seq, &d, &e))
-        ERROR ("Mismatch in FPointFromObject");
+    if (!FPointFromObj (seq, &d, &e))
+        ERROR ("Mismatch in FPointFromObj");
     if (d != 2.f || e != 4.f)
-        ERROR ("Mismatch in FPointFromObject result");
+        ERROR ("Mismatch in FPointFromObj result");
 
     d = e = 0;
-    if (!FSizeFromObject (seq, &d, &e))
-        ERROR ("Mismatch in FSizeFromObject");
+    if (!FSizeFromObj (seq, &d, &e))
+        ERROR ("Mismatch in FSizeFromObj");
     if (d != 2.f || e != 4.f)
-        ERROR ("Mismatch in FSizeFromObject result");
+        ERROR ("Mismatch in FSizeFromObj result");
     Py_DECREF (seq);
 
     string = PyString_FromString ("Hello World!");
-    if (!ASCIIFromObject (string, &str, &tmp))
-        ERROR ("Mismatch in ASCIIFromObject");
+    if (!ASCIIFromObj (string, &str, &tmp))
+        ERROR ("Mismatch in ASCIIFromObj");
     if (strcmp (str, "Hello World!") != 0)
-        ERROR ("Mismatch in ASCIIFromObject result");
+        ERROR ("Mismatch in ASCIIFromObj result");
     Py_XDECREF (tmp);
 
-    if (!UTF8FromObject (string, &str, &tmp))
-        ERROR ("Mismatch in UTF8FromObject");
+    if (!UTF8FromObj (string, &str, &tmp))
+        ERROR ("Mismatch in UTF8FromObj");
     if (strcmp (str, "Hello World!") != 0)
-        ERROR ("Mismatch in UTF8FromObject result");
+        ERROR ("Mismatch in UTF8FromObj result");
     Py_XDECREF (tmp);
 }
 
         ((PyRect*)rect)->h != 4)
         ERROR ("Rect mismatch in PyRect_New");
 
-    if (!SizeFromObject (rect, &w, &h))
-        ERROR ("Mismatch in SizeFromObject for PyRect");
+    if (!SizeFromObj (rect, &w, &h))
+        ERROR ("Mismatch in SizeFromObj for PyRect");
     if (w != 3 || h != 4)
-        ERROR ("Mismatch in SizeFromObject result for PyRect");
+        ERROR ("Mismatch in SizeFromObj result for PyRect");
 
-    if (!PointFromObject (rect, (int*)&x, (int*)&y))
-        ERROR ("Mismatch in PointFromObject for PyRect");
+    if (!PointFromObj (rect, (int*)&x, (int*)&y))
+        ERROR ("Mismatch in PointFromObj for PyRect");
     if (x != 1 || y != 2)
-        ERROR ("Mismatch in PointFromObject result for PyRect");
+        ERROR ("Mismatch in PointFromObj result for PyRect");
 
-    if (!FSizeFromObject (rect, &dw, &dh))
-        ERROR ("Mismatch in FSizeFromObject for PyRect");
+    if (!FSizeFromObj (rect, &dw, &dh))
+        ERROR ("Mismatch in FSizeFromObj for PyRect");
     if (dw != 3 || dh != 4)
-        ERROR ("Mismatch in FSizeFromObject result for PyRect");
+        ERROR ("Mismatch in FSizeFromObj result for PyRect");
 
-    if (!FPointFromObject (rect, &dx, &dy))
-        ERROR ("Mismatch in FPointFromObject for PyRect");
+    if (!FPointFromObj (rect, &dx, &dy))
+        ERROR ("Mismatch in FPointFromObj for PyRect");
     if (dx != 1 || dy != 2)
-        ERROR ("Mismatch in FPointFromObject result for PyRect");
+        ERROR ("Mismatch in FPointFromObj result for PyRect");
     
     Py_DECREF (rect);
 }
         ((PyFRect*)rect)->h != 4.04f)
         ERROR ("FRect mismatch in PyFRect_New");
 
-    if (!SizeFromObject (rect, &sw, &sh))
-        ERROR ("Mismatch in SizeFromObject for PyFRect");
+    if (!SizeFromObj (rect, &sw, &sh))
+        ERROR ("Mismatch in SizeFromObj for PyFRect");
     if (sw != 3 || sh != 4)
-        ERROR ("Mismatch in SizeFromObject result for PyFRect");
+        ERROR ("Mismatch in SizeFromObj result for PyFRect");
 
-    if (!PointFromObject (rect, &ix, &iy))
-        ERROR ("Mismatch in PointFromObject for PyFRect");
+    if (!PointFromObj (rect, &ix, &iy))
+        ERROR ("Mismatch in PointFromObj for PyFRect");
     if (ix != 1 || iy != 2)
-        ERROR ("Mismatch in PointFromObject result for PyFRect");
+        ERROR ("Mismatch in PointFromObj result for PyFRect");
 
-    if (!FSizeFromObject (rect, &w, &h))
-        ERROR ("Mismatch in FSizeFromObject for PyFRect");
+    if (!FSizeFromObj (rect, &w, &h))
+        ERROR ("Mismatch in FSizeFromObj for PyFRect");
     if (!NEAR_ZERO (w - 3.03) || !NEAR_ZERO (h - 4.04))
-        ERROR ("Mismatch in FSizeFromObject result for PyFRect");
+        ERROR ("Mismatch in FSizeFromObj result for PyFRect");
 
-    if (!FPointFromObject (rect, &x, &y))
-        ERROR ("Mismatch in FPointFromObject for PyFRect");
+    if (!FPointFromObj (rect, &x, &y))
+        ERROR ("Mismatch in FPointFromObj for PyFRect");
     if (!NEAR_ZERO (x - 1.01) || !NEAR_ZERO (y - 2.02))
-        ERROR ("Mismatch in FPointFromObject result for PyFRect");
+        ERROR ("Mismatch in FPointFromObj result for PyFRect");
     
     Py_DECREF (rect);
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.