Generated by Cython 0.12.1 on Fri May 7 13:54:47 2010
Raw output: _Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0.c
1:
2: include "interrupt.pxi" # ctrl-c interrupt block support
3: include "stdsage.pxi" # ctrl-c interrupt block support
4:
5: include "cdefs.pxi"
6: cdef square_inplace(int* x):
static PyObject *__pyx_f_75_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0_square_inplace(int *__pyx_v_x) {
PyObject *__pyx_r = NULL;
__Pyx_RefNannySetupContext("square_inplace");
7: x[0] = x[0]**2
(__pyx_v_x[0]) = __Pyx_pow_long((__pyx_v_x[0]), 2); __pyx_r = Py_None; __Pyx_INCREF(Py_None); __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }
8:
9: def call_square_inplace(int x):
static PyObject *__pyx_pf_75_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0_call_square_inplace(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/ static char __pyx_doc_75_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0_call_square_inplace[] = "File: _Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0.pyx (starting at line 9)"; static PyObject *__pyx_pf_75_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0_call_square_inplace(PyObject *__pyx_self, PyObject *__pyx_arg_x) { int __pyx_v_x; PyObject *__pyx_r = NULL; __Pyx_RefNannySetupContext("call_square_inplace"); __pyx_self = __pyx_self; assert(__pyx_arg_x); { __pyx_v_x = __Pyx_PyInt_AsInt(__pyx_arg_x); if (unlikely((__pyx_v_x == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0.call_square_inplace"); return NULL; __pyx_L4_argument_unpacking_done:;
10: print "x is", x
__pyx_t_1 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_INCREF(((PyObject *)__pyx_kp_s_1)); PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_1)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_1)); PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __pyx_t_1 = 0; if (__Pyx_Print(__pyx_t_2, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11: square_inplace(&x)
__pyx_t_2 = __pyx_f_75_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0_square_inplace((&__pyx_v_x)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12: print "x is", x
__pyx_t_2 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_INCREF(((PyObject *)__pyx_kp_s_1)); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_1)); __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_1)); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); __Pyx_GIVEREF(__pyx_t_2); __pyx_t_2 = 0; if (__Pyx_Print(__pyx_t_1, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_AddTraceback("_Users_robertwb__sage_sage_notebook_sagenb_home_admin_91_code_sage44_spyx_0.call_square_inplace"); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }