1.1 --- a/vint.c Fri Sep 11 01:21:09 2009 +0200
1.2 +++ b/vint.c Fri Sep 11 01:27:18 2009 +0200
1.3 @@ -1,4 +1,4 @@
1.4 -/* Generated by Pyrex 0.9.6.4 on Fri Sep 11 01:17:16 2009 */
1.5 +/* Generated by Pyrex 0.9.6.4 on Fri Sep 11 01:26:01 2009 */
1.6
1.7 #define PY_SSIZE_T_CLEAN
1.8 #include "Python.h"
1.9 @@ -61,41 +61,62 @@
1.10 __pyx_v_s = Py_None; Py_INCREF(Py_None);
1.11
1.12 /* "/home/paulb/Software/Python/iixr/vint.pyx":11 */
1.13 + __pyx_1 = (__pyx_v_number < 128);
1.14 + if (__pyx_1) {
1.15 +
1.16 + /* "/home/paulb/Software/Python/iixr/vint.pyx":12 */
1.17 + (__pyx_v_bytes[0]) = __pyx_v_number;
1.18 +
1.19 + /* "/home/paulb/Software/Python/iixr/vint.pyx":13 */
1.20 + __pyx_2 = PyString_FromStringAndSize(__pyx_v_bytes,1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;}
1.21 + Py_DECREF(__pyx_v_s);
1.22 + __pyx_v_s = __pyx_2;
1.23 + __pyx_2 = 0;
1.24 +
1.25 + /* "/home/paulb/Software/Python/iixr/vint.pyx":14 */
1.26 + Py_INCREF(__pyx_v_s);
1.27 + __pyx_r = __pyx_v_s;
1.28 + goto __pyx_L0;
1.29 + goto __pyx_L2;
1.30 + }
1.31 + __pyx_L2:;
1.32 +
1.33 + /* "/home/paulb/Software/Python/iixr/vint.pyx":16 */
1.34 __pyx_v_i = 0;
1.35
1.36 - /* "/home/paulb/Software/Python/iixr/vint.pyx":12 */
1.37 + /* "/home/paulb/Software/Python/iixr/vint.pyx":17 */
1.38 while (1) {
1.39 __pyx_1 = (__pyx_v_number != 0);
1.40 if (!__pyx_1) break;
1.41
1.42 - /* "/home/paulb/Software/Python/iixr/vint.pyx":13 */
1.43 + /* "/home/paulb/Software/Python/iixr/vint.pyx":18 */
1.44 __pyx_v_lsd = (__pyx_v_number & 127);
1.45
1.46 - /* "/home/paulb/Software/Python/iixr/vint.pyx":14 */
1.47 + /* "/home/paulb/Software/Python/iixr/vint.pyx":19 */
1.48 __pyx_v_number = (__pyx_v_number >> 7);
1.49
1.50 - /* "/home/paulb/Software/Python/iixr/vint.pyx":15 */
1.51 + /* "/home/paulb/Software/Python/iixr/vint.pyx":20 */
1.52 __pyx_1 = (__pyx_v_number != 0);
1.53 if (__pyx_1) {
1.54 __pyx_v_lsd = (__pyx_v_lsd | 128);
1.55 - goto __pyx_L4;
1.56 + goto __pyx_L5;
1.57 }
1.58 - __pyx_L4:;
1.59 + __pyx_L5:;
1.60
1.61 - /* "/home/paulb/Software/Python/iixr/vint.pyx":17 */
1.62 + /* "/home/paulb/Software/Python/iixr/vint.pyx":22 */
1.63 (__pyx_v_bytes[__pyx_v_i]) = __pyx_v_lsd;
1.64
1.65 - /* "/home/paulb/Software/Python/iixr/vint.pyx":18 */
1.66 + /* "/home/paulb/Software/Python/iixr/vint.pyx":23 */
1.67 __pyx_v_i = (__pyx_v_i + 1);
1.68 }
1.69
1.70 - /* "/home/paulb/Software/Python/iixr/vint.pyx":20 */
1.71 - __pyx_2 = PyString_FromStringAndSize(__pyx_v_bytes,__pyx_v_i); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; goto __pyx_L1;}
1.72 + /* "/home/paulb/Software/Python/iixr/vint.pyx":25 */
1.73 + __pyx_2 = PyString_FromStringAndSize(__pyx_v_bytes,__pyx_v_i); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;}
1.74 Py_DECREF(__pyx_v_s);
1.75 __pyx_v_s = __pyx_2;
1.76 __pyx_2 = 0;
1.77
1.78 - /* "/home/paulb/Software/Python/iixr/vint.pyx":21 */
1.79 + /* "/home/paulb/Software/Python/iixr/vint.pyx":26 */
1.80 Py_INCREF(__pyx_v_s);
1.81 __pyx_r = __pyx_v_s;
1.82 goto __pyx_L0;