[prev in list] [next in list] [prev in thread] [next in thread]
List: pyamf-commits
Subject: [pyamf-commits] r1799 - pyamf/branches/cpyamf-amf3/cpyamf
From: commits () pyamf ! org (commits () pyamf ! org)
Date: 2008-11-24 15:54:37
Message-ID: 20081124145402.809317BC063 () mail ! collab ! com
[Download RAW message or body]
Author: nick
Date: 2008-11-24 15:54:01 +0100 (Mon, 24 Nov 2008)
New Revision: 1799
Modified:
pyamf/branches/cpyamf-amf3/cpyamf/amf3.c
Log:
Remove debug cruft
Modified: pyamf/branches/cpyamf-amf3/cpyamf/amf3.c
===================================================================
--- pyamf/branches/cpyamf-amf3/cpyamf/amf3.c 2008-11-24 14:50:58 UTC (rev 1798)
+++ pyamf/branches/cpyamf-amf3/cpyamf/amf3.c 2008-11-24 14:54:01 UTC (rev 1799)
@@ -1,4 +1,4 @@
-/* Generated by Cython 0.10.1 on Mon Nov 24 14:50:04 2008 */
+/* Generated by Cython 0.10.1 on Mon Nov 24 14:53:45 2008 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
@@ -193,12 +193,6 @@
static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); \
/*proto*/ static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, \
PyObject **tb); /*proto*/
-static int __Pyx_Print(PyObject *, int); /*proto*/
-#if PY_MAJOR_VERSION >= 3
-static PyObject* __pyx_print = 0;
-static PyObject* __pyx_print_kwargs = 0;
-#endif
-
static void __Pyx_WriteUnraisable(const char *name); /*proto*/
static void __Pyx_AddTraceback(const char *funcname); /*proto*/
@@ -236,8 +230,6 @@
static PyObject *__pyx_kp_OverflowError;
static char __pyx_k_read_uchar[] = "read_uchar";
static PyObject *__pyx_kp_read_uchar;
-static char __pyx_k_2[] = "hi";
-static PyObject *__pyx_kp_2;
static PyObject *__pyx_builtin_OverflowError;
static PyObject *__pyx_kp_1;
static char __pyx_k_1[] = "Out of range";
@@ -1045,7 +1037,7 @@
* else:
* s = 0 # <<<<<<<<<<<<<<
*
- * print 'hi'
+ * return _decode_int(stream, s)
*/
__pyx_v_s = 0;
}
@@ -1054,26 +1046,13 @@
/* "/Users/nick/projects/pyamf/branches/cpyamf-amf3/cpyamf/amf3.pyx":101
* s = 0
*
- * print 'hi' # <<<<<<<<<<<<<<
- *
- * return _decode_int(stream, s)
- */
- __pyx_1 = PyTuple_New(1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; \
__pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- Py_INCREF(__pyx_kp_2);
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_kp_2);
- if (__Pyx_Print(((PyObject *)__pyx_1), 1) < 0) {__pyx_filename = __pyx_f[0]; \
__pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
- Py_DECREF(((PyObject *)__pyx_1)); __pyx_1 = 0;
-
- /* "/Users/nick/projects/pyamf/branches/cpyamf-amf3/cpyamf/amf3.pyx":103
- * print 'hi'
- *
* return _decode_int(stream, s) # <<<<<<<<<<<<<<
*
*/
__pyx_3.__pyx_n = 1;
__pyx_3.sign = __pyx_v_s;
__pyx_4 = __pyx_f_6cpyamf_4amf3__decode_int(__pyx_v_stream, &__pyx_3);
- __pyx_1 = PyInt_FromLong(__pyx_4); if (unlikely(!__pyx_1)) {__pyx_filename = \
__pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + \
__pyx_1 = PyInt_FromLong(__pyx_4); if (unlikely(!__pyx_1)) {__pyx_filename = \
__pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;} \
__pyx_r = __pyx_1; __pyx_1 = 0;
goto __pyx_L0;
@@ -1116,7 +1095,6 @@
{&__pyx_kp_sign, __pyx_k_sign, sizeof(__pyx_k_sign), 1, 1, 1},
{&__pyx_kp_OverflowError, __pyx_k_OverflowError, sizeof(__pyx_k_OverflowError), 1, \
1, 1}, {&__pyx_kp_read_uchar, __pyx_k_read_uchar, sizeof(__pyx_k_read_uchar), 1, 1, \
1},
- {&__pyx_kp_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 1, 0},
{&__pyx_kp_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 0},
{0, 0, 0, 0, 0, 0}
};
@@ -1423,81 +1401,6 @@
}
-#if PY_MAJOR_VERSION < 3
-static PyObject *__Pyx_GetStdout(void) {
- PyObject *f = PySys_GetObject("stdout");
- if (!f) {
- PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
- }
- return f;
-}
-
-static int __Pyx_Print(PyObject *arg_tuple, int newline) {
- PyObject *f;
- PyObject* v;
- int i;
-
- if (!(f = __Pyx_GetStdout()))
- return -1;
- for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
- if (PyFile_SoftSpace(f, 1)) {
- if (PyFile_WriteString(" ", f) < 0)
- return -1;
- }
- v = PyTuple_GET_ITEM(arg_tuple, i);
- if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
- return -1;
- if (PyString_Check(v)) {
- char *s = PyString_AsString(v);
- Py_ssize_t len = PyString_Size(v);
- if (len > 0 &&
- isspace(Py_CHARMASK(s[len-1])) &&
- s[len-1] != ' ')
- PyFile_SoftSpace(f, 0);
- }
- }
- if (newline) {
- if (PyFile_WriteString("\n", f) < 0)
- return -1;
- PyFile_SoftSpace(f, 0);
- }
- return 0;
-}
-
-#else /* Python 3 has a print function */
-static int __Pyx_Print(PyObject *arg_tuple, int newline) {
- PyObject* kwargs = 0;
- PyObject* result = 0;
- PyObject* end_string;
- if (!__pyx_print) {
- __pyx_print = PyObject_GetAttrString(__pyx_b, "print");
- if (!__pyx_print)
- return -1;
- }
- if (!newline) {
- if (!__pyx_print_kwargs) {
- __pyx_print_kwargs = PyDict_New();
- if (!__pyx_print_kwargs)
- return -1;
- end_string = PyUnicode_FromStringAndSize(" ", 1);
- if (!end_string)
- return -1;
- if (PyDict_SetItemString(__pyx_print_kwargs, "end", end_string) < 0) {
- Py_DECREF(end_string);
- return -1;
- }
- Py_DECREF(end_string);
- }
- kwargs = __pyx_print_kwargs;
- }
- result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
- if (!result)
- return -1;
- Py_DECREF(result);
- return 0;
-}
-#endif
-
static void __Pyx_WriteUnraisable(const char *name) {
PyObject *old_exc, *old_val, *old_tb;
PyObject *ctx;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic