~jelmer/ubuntu/maverick/bzr/2.2.5

« back to all changes in this revision

Viewing changes to bzrlib/_rio_pyx.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-05-27 21:58:49 UTC
  • mfrom: (1.4.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100527215849-61ojb51ih9zn31ov
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by Pyrex 0.9.8.5 on Wed Mar 24 18:17:31 2010 */
 
1
/* Generated by Pyrex 0.9.8.5 on Fri May 28 05:01:44 2010 */
2
2
 
3
3
#define PY_SSIZE_T_CLEAN
4
4
#include "Python.h"
151
151
  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_tag)) return 0;
152
152
  Py_INCREF(__pyx_v_tag);
153
153
 
154
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":63 */
 
154
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":63 */
155
155
  __pyx_1 = (!PyString_CheckExact(__pyx_v_tag));
156
156
  if (__pyx_1) {
157
157
    __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; goto __pyx_L1;}
166
166
  }
167
167
  __pyx_L2:;
168
168
 
169
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":65 */
 
169
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":65 */
170
170
  __pyx_v_c_tag = PyString_AS_STRING(__pyx_v_tag);
171
171
 
172
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":66 */
 
172
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":66 */
173
173
  __pyx_4 = PyString_GET_SIZE(__pyx_v_tag); if (__pyx_4 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; goto __pyx_L1;}
174
174
  __pyx_v_c_len = __pyx_4;
175
175
 
176
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":67 */
 
176
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":67 */
177
177
  __pyx_1 = (__pyx_v_c_len < 1);
178
178
  if (__pyx_1) {
179
179
    Py_INCREF(Py_False);
183
183
  }
184
184
  __pyx_L3:;
185
185
 
186
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":69 */
 
186
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":69 */
187
187
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_c_len; ++__pyx_v_i) {
188
188
    __pyx_1 = (!__pyx_f_6bzrlib_8_rio_pyx__valid_tag_char((__pyx_v_c_tag[__pyx_v_i])));
189
189
    if (__pyx_1) {
195
195
    __pyx_L6:;
196
196
  }
197
197
 
198
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":72 */
 
198
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":72 */
199
199
  Py_INCREF(Py_True);
200
200
  __pyx_r = Py_True;
201
201
  goto __pyx_L0;
219
219
  PyObject *__pyx_2 = 0;
220
220
  PyObject *__pyx_3 = 0;
221
221
 
222
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":78 */
 
222
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":78 */
223
223
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_len; ++__pyx_v_i) {
224
224
    __pyx_1 = ((__pyx_v_line[__pyx_v_i]) == ':');
225
225
    if (__pyx_1) {
226
226
 
227
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":80 */
 
227
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":80 */
228
228
      __pyx_1 = ((__pyx_v_line[(__pyx_v_i + 1)]) != ' ');
229
229
      if (__pyx_1) {
230
230
        __pyx_2 = PyString_FromString(__pyx_v_line); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; goto __pyx_L1;}
242
242
      }
243
243
      __pyx_L5:;
244
244
 
245
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":82 */
 
245
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":82 */
246
246
      memcpy(__pyx_v_value,((__pyx_v_line + __pyx_v_i) + 2),((__pyx_v_len - __pyx_v_i) - 2));
247
247
 
248
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":83 */
 
248
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":83 */
249
249
      (__pyx_v_value_len[0]) = ((__pyx_v_len - __pyx_v_i) - 2);
250
250
 
251
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":84 */
 
251
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":84 */
252
252
      __pyx_2 = PyString_FromStringAndSize(__pyx_v_line,__pyx_v_i); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; goto __pyx_L1;}
253
253
      __pyx_r = __pyx_2;
254
254
      __pyx_2 = 0;
258
258
    __pyx_L4:;
259
259
  }
260
260
 
261
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":85 */
 
261
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":85 */
262
262
  __pyx_3 = PyString_FromString(__pyx_v_line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; goto __pyx_L1;}
263
263
  __pyx_2 = PyNumber_Remainder(__pyx_k2p, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; goto __pyx_L1;}
264
264
  Py_DECREF(__pyx_3); __pyx_3 = 0;
289
289
  PyObject *__pyx_2 = 0;
290
290
  PyObject *__pyx_3 = 0;
291
291
 
292
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":91 */
 
292
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":91 */
293
293
  for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_len; ++__pyx_v_i) {
294
294
    __pyx_1 = ((__pyx_v_line[__pyx_v_i]) == ':');
295
295
    if (__pyx_1) {
296
296
 
297
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":93 */
 
297
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":93 */
298
298
      __pyx_1 = ((__pyx_v_line[(__pyx_v_i + 1)]) != ' ');
299
299
      if (__pyx_1) {
300
300
        __pyx_2 = PyUnicode_FromUnicode(__pyx_v_line,__pyx_v_len); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; goto __pyx_L1;}
312
312
      }
313
313
      __pyx_L5:;
314
314
 
315
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":96 */
 
315
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":96 */
316
316
      memcpy(__pyx_v_value,(&(__pyx_v_line[(__pyx_v_i + 2)])),(((__pyx_v_len - __pyx_v_i) - 2) * (sizeof(Py_UNICODE))));
317
317
 
318
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":97 */
 
318
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":97 */
319
319
      (__pyx_v_value_len[0]) = ((__pyx_v_len - __pyx_v_i) - 2);
320
320
 
321
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":98 */
 
321
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":98 */
322
322
      __pyx_2 = PyUnicode_EncodeASCII(__pyx_v_line,__pyx_v_i,__pyx_k3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L1;}
323
323
      __pyx_r = __pyx_2;
324
324
      __pyx_2 = 0;
328
328
    __pyx_L4:;
329
329
  }
330
330
 
331
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":99 */
 
331
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":99 */
332
332
  __pyx_3 = PyUnicode_FromUnicode(__pyx_v_line,__pyx_v_len); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L1;}
333
333
  __pyx_2 = PyNumber_Remainder(__pyx_k2p, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; goto __pyx_L1;}
334
334
  Py_DECREF(__pyx_3); __pyx_3 = 0;
379
379
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
380
380
  __pyx_v_line = Py_None; Py_INCREF(Py_None);
381
381
 
382
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":108 */
 
382
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":108 */
383
383
  __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; goto __pyx_L1;}
384
384
  Py_DECREF(__pyx_v_pairs);
385
385
  __pyx_v_pairs = __pyx_1;
386
386
  __pyx_1 = 0;
387
387
 
388
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":109 */
 
388
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":109 */
389
389
  Py_INCREF(Py_None);
390
390
  Py_DECREF(__pyx_v_tag);
391
391
  __pyx_v_tag = Py_None;
392
392
 
393
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":110 */
 
393
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":110 */
394
394
  __pyx_v_accum_len = 0;
395
395
 
396
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":111 */
 
396
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":111 */
397
397
  __pyx_v_accum_size = 4096;
398
398
 
399
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":112 */
 
399
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":112 */
400
400
  __pyx_v_accum_value = ((char *)malloc(__pyx_v_accum_size));
401
401
 
402
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":113 */
 
402
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":113 */
403
403
  __pyx_2 = (__pyx_v_accum_value == NULL);
404
404
  if (__pyx_2) {
405
405
    __Pyx_Raise(PyExc_MemoryError, 0, 0);
408
408
  }
409
409
  __pyx_L2:;
410
410
 
411
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":115 */
 
411
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":115 */
412
412
  /*try:*/ {
413
413
 
414
 
    /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":116 */
 
414
    /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":116 */
415
415
    __pyx_1 = PyObject_GetIter(__pyx_v_line_iter); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; goto __pyx_L4;}
416
416
    for (;;) {
417
417
      __pyx_3 = PyIter_Next(__pyx_1);
423
423
      __pyx_v_line = __pyx_3;
424
424
      __pyx_3 = 0;
425
425
 
426
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":117 */
 
426
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":117 */
427
427
      __pyx_2 = __pyx_v_line == Py_None;
428
428
      if (__pyx_2) {
429
429
        goto __pyx_L7;
431
431
      }
432
432
      __pyx_L8:;
433
433
 
434
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":119 */
 
434
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":119 */
435
435
      __pyx_2 = (!PyString_CheckExact(__pyx_v_line));
436
436
      if (__pyx_2) {
437
437
        __pyx_3 = PyNumber_Remainder(__pyx_k4p, __pyx_v_line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; goto __pyx_L4;}
447
447
      }
448
448
      __pyx_L9:;
449
449
 
450
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":121 */
 
450
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":121 */
451
451
      __pyx_v_c_line = PyString_AS_STRING(__pyx_v_line);
452
452
 
453
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":122 */
 
453
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":122 */
454
454
      __pyx_5 = PyString_GET_SIZE(__pyx_v_line); if (__pyx_5 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; goto __pyx_L4;}
455
455
      __pyx_v_c_len = __pyx_5;
456
456
 
457
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":123 */
 
457
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":123 */
458
458
      __pyx_2 = (__pyx_v_c_len < 1);
459
459
      if (__pyx_2) {
460
460
        goto __pyx_L7;
462
462
      }
463
463
      __pyx_L10:;
464
464
 
465
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":125 */
 
465
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":125 */
466
466
      __pyx_2 = (__pyx_v_c_len == 1);
467
467
      if (__pyx_2) {
468
468
        __pyx_2 = ((__pyx_v_c_line[0]) == '\n');
473
473
      }
474
474
      __pyx_L11:;
475
475
 
476
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":127 */
 
476
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":127 */
477
477
      __pyx_2 = ((__pyx_v_accum_len + __pyx_v_c_len) > __pyx_v_accum_size);
478
478
      if (__pyx_2) {
479
479
 
480
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":128 */
 
480
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":128 */
481
481
        __pyx_v_accum_size = (__pyx_v_accum_len + __pyx_v_c_len);
482
482
 
483
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":129 */
 
483
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":129 */
484
484
        __pyx_v_new_accum_value = ((char *)realloc(__pyx_v_accum_value,__pyx_v_accum_size));
485
485
 
486
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":130 */
 
486
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":130 */
487
487
        __pyx_2 = (__pyx_v_new_accum_value == NULL);
488
488
        if (__pyx_2) {
489
489
          __Pyx_Raise(PyExc_MemoryError, 0, 0);
498
498
      }
499
499
      __pyx_L12:;
500
500
 
501
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":134 */
 
501
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":134 */
502
502
      __pyx_2 = ((__pyx_v_c_line[0]) == '\t');
503
503
      if (__pyx_2) {
504
504
 
505
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":135 */
 
505
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":135 */
506
506
        __pyx_2 = __pyx_v_tag == Py_None;
507
507
        if (__pyx_2) {
508
508
          __pyx_4 = PyNumber_Remainder(__pyx_k5p, __pyx_v_line); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; goto __pyx_L4;}
518
518
        }
519
519
        __pyx_L15:;
520
520
 
521
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":137 */
 
521
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":137 */
522
522
        memcpy((__pyx_v_accum_value + __pyx_v_accum_len),(__pyx_v_c_line + 1),(__pyx_v_c_len - 1));
523
523
 
524
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":138 */
 
524
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":138 */
525
525
        __pyx_v_accum_len = ((__pyx_v_accum_len + __pyx_v_c_len) - 1);
526
526
        goto __pyx_L14;
527
527
      }
528
528
      /*else*/ {
529
529
 
530
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":140 */
 
530
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":140 */
531
531
        __pyx_2 = __pyx_v_tag != Py_None;
532
532
        if (__pyx_2) {
533
533
          __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_accum_value,(__pyx_v_accum_len - 1),__pyx_k3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; goto __pyx_L4;}
542
542
        }
543
543
        __pyx_L16:;
544
544
 
545
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":144 */
 
545
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":144 */
546
546
        __pyx_3 = __pyx_f_6bzrlib_8_rio_pyx__split_first_line_utf8(__pyx_v_c_line,__pyx_v_c_len,__pyx_v_accum_value,(&__pyx_v_accum_len)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; goto __pyx_L4;}
547
547
        Py_DECREF(__pyx_v_tag);
548
548
        __pyx_v_tag = __pyx_3;
549
549
        __pyx_3 = 0;
550
550
 
551
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":146 */
 
551
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":146 */
552
552
        __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n__valid_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; goto __pyx_L4;}
553
553
        __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; goto __pyx_L4;}
554
554
        Py_INCREF(__pyx_v_tag);
582
582
    __pyx_L7:;
583
583
    Py_DECREF(__pyx_1); __pyx_1 = 0;
584
584
 
585
 
    /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":148 */
 
585
    /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":148 */
586
586
    __pyx_2 = __pyx_v_tag != Py_None;
587
587
    if (__pyx_2) {
588
588
 
589
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":149 */
 
589
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":149 */
590
590
      __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_accum_value,(__pyx_v_accum_len - 1),__pyx_k3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; goto __pyx_L4;}
591
591
      __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; goto __pyx_L4;}
592
592
      Py_INCREF(__pyx_v_tag);
596
596
      __pyx_7 = PyList_Append(__pyx_v_pairs,__pyx_6); if (__pyx_7 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; goto __pyx_L4;}
597
597
      Py_DECREF(__pyx_6); __pyx_6 = 0;
598
598
 
599
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":151 */
 
599
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":151 */
600
600
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_Stanza); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; goto __pyx_L4;}
601
601
      __pyx_1 = PyObject_GetAttr(__pyx_4, __pyx_n_from_pairs); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; goto __pyx_L4;}
602
602
      Py_DECREF(__pyx_4); __pyx_4 = 0;
693
693
  __pyx_v_tag = Py_None; Py_INCREF(Py_None);
694
694
  __pyx_v_line = Py_None; Py_INCREF(Py_None);
695
695
 
696
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":163 */
 
696
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":163 */
697
697
  __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; goto __pyx_L1;}
698
698
  Py_DECREF(__pyx_v_pairs);
699
699
  __pyx_v_pairs = __pyx_1;
700
700
  __pyx_1 = 0;
701
701
 
702
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":164 */
 
702
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":164 */
703
703
  Py_INCREF(Py_None);
704
704
  Py_DECREF(__pyx_v_tag);
705
705
  __pyx_v_tag = Py_None;
706
706
 
707
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":165 */
 
707
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":165 */
708
708
  __pyx_v_accum_len = 0;
709
709
 
710
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":166 */
 
710
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":166 */
711
711
  __pyx_v_accum_size = 4096;
712
712
 
713
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":167 */
 
713
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":167 */
714
714
  __pyx_v_accum_value = ((Py_UNICODE *)malloc((__pyx_v_accum_size * (sizeof(Py_UNICODE)))));
715
715
 
716
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":168 */
 
716
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":168 */
717
717
  __pyx_2 = (__pyx_v_accum_value == NULL);
718
718
  if (__pyx_2) {
719
719
    __Pyx_Raise(PyExc_MemoryError, 0, 0);
722
722
  }
723
723
  __pyx_L2:;
724
724
 
725
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":170 */
 
725
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":170 */
726
726
  /*try:*/ {
727
727
 
728
 
    /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":171 */
 
728
    /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":171 */
729
729
    __pyx_1 = PyObject_GetIter(__pyx_v_unicode_iter); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; goto __pyx_L4;}
730
730
    for (;;) {
731
731
      __pyx_3 = PyIter_Next(__pyx_1);
737
737
      __pyx_v_line = __pyx_3;
738
738
      __pyx_3 = 0;
739
739
 
740
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":172 */
 
740
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":172 */
741
741
      __pyx_2 = __pyx_v_line == Py_None;
742
742
      if (__pyx_2) {
743
743
        goto __pyx_L7;
745
745
      }
746
746
      __pyx_L8:;
747
747
 
748
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":174 */
 
748
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":174 */
749
749
      __pyx_2 = (!PyUnicode_CheckExact(__pyx_v_line));
750
750
      if (__pyx_2) {
751
751
        __pyx_3 = PyNumber_Remainder(__pyx_k10p, __pyx_v_line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; goto __pyx_L4;}
761
761
      }
762
762
      __pyx_L9:;
763
763
 
764
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":176 */
 
764
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":176 */
765
765
      __pyx_v_c_line = PyUnicode_AS_UNICODE(__pyx_v_line);
766
766
 
767
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":177 */
 
767
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":177 */
768
768
      __pyx_5 = PyUnicode_GET_SIZE(__pyx_v_line); if (__pyx_5 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; goto __pyx_L4;}
769
769
      __pyx_v_c_len = __pyx_5;
770
770
 
771
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":178 */
 
771
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":178 */
772
772
      __pyx_2 = (__pyx_v_c_len < 1);
773
773
      if (__pyx_2) {
774
774
        goto __pyx_L7;
776
776
      }
777
777
      __pyx_L10:;
778
778
 
779
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":180 */
 
779
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":180 */
780
780
      __pyx_2 = Py_UNICODE_ISLINEBREAK((__pyx_v_c_line[0]));
781
781
      if (__pyx_2) {
782
782
        goto __pyx_L7;
784
784
      }
785
785
      __pyx_L11:;
786
786
 
787
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":182 */
 
787
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":182 */
788
788
      __pyx_2 = ((__pyx_v_accum_len + __pyx_v_c_len) > __pyx_v_accum_size);
789
789
      if (__pyx_2) {
790
790
 
791
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":183 */
 
791
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":183 */
792
792
        __pyx_v_accum_size = (__pyx_v_accum_len + __pyx_v_c_len);
793
793
 
794
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":184 */
 
794
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":184 */
795
795
        __pyx_v_new_accum_value = ((Py_UNICODE *)realloc(__pyx_v_accum_value,(__pyx_v_accum_size * (sizeof(Py_UNICODE)))));
796
796
 
797
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":186 */
 
797
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":186 */
798
798
        __pyx_2 = (__pyx_v_new_accum_value == NULL);
799
799
        if (__pyx_2) {
800
800
          __Pyx_Raise(PyExc_MemoryError, 0, 0);
809
809
      }
810
810
      __pyx_L12:;
811
811
 
812
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":190 */
 
812
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":190 */
813
813
      __pyx_2 = ((__pyx_v_c_line[0]) == '\t');
814
814
      if (__pyx_2) {
815
815
 
816
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":191 */
 
816
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":191 */
817
817
        __pyx_2 = __pyx_v_tag == Py_None;
818
818
        if (__pyx_2) {
819
819
          __pyx_4 = PyNumber_Remainder(__pyx_k5p, __pyx_v_line); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 192; goto __pyx_L4;}
829
829
        }
830
830
        __pyx_L15:;
831
831
 
832
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":193 */
 
832
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":193 */
833
833
        memcpy((&(__pyx_v_accum_value[__pyx_v_accum_len])),(&(__pyx_v_c_line[1])),((__pyx_v_c_len - 1) * (sizeof(Py_UNICODE))));
834
834
 
835
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":195 */
 
835
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":195 */
836
836
        __pyx_v_accum_len = (__pyx_v_accum_len + (__pyx_v_c_len - 1));
837
837
        goto __pyx_L14;
838
838
      }
839
839
      /*else*/ {
840
840
 
841
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":197 */
 
841
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":197 */
842
842
        __pyx_2 = __pyx_v_tag != Py_None;
843
843
        if (__pyx_2) {
844
844
          __pyx_3 = PyUnicode_FromUnicode(__pyx_v_accum_value,(__pyx_v_accum_len - 1)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; goto __pyx_L4;}
853
853
        }
854
854
        __pyx_L16:;
855
855
 
856
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":200 */
 
856
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":200 */
857
857
        __pyx_3 = __pyx_f_6bzrlib_8_rio_pyx__split_first_line_unicode(__pyx_v_c_line,__pyx_v_c_len,__pyx_v_accum_value,(&__pyx_v_accum_len)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; goto __pyx_L4;}
858
858
        Py_DECREF(__pyx_v_tag);
859
859
        __pyx_v_tag = __pyx_3;
860
860
        __pyx_3 = 0;
861
861
 
862
 
        /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":202 */
 
862
        /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":202 */
863
863
        __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n__valid_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; goto __pyx_L4;}
864
864
        __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; goto __pyx_L4;}
865
865
        Py_INCREF(__pyx_v_tag);
893
893
    __pyx_L7:;
894
894
    Py_DECREF(__pyx_1); __pyx_1 = 0;
895
895
 
896
 
    /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":204 */
 
896
    /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":204 */
897
897
    __pyx_2 = __pyx_v_tag != Py_None;
898
898
    if (__pyx_2) {
899
899
 
900
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":205 */
 
900
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":205 */
901
901
      __pyx_3 = PyUnicode_FromUnicode(__pyx_v_accum_value,(__pyx_v_accum_len - 1)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; goto __pyx_L4;}
902
902
      __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; goto __pyx_L4;}
903
903
      Py_INCREF(__pyx_v_tag);
907
907
      __pyx_7 = PyList_Append(__pyx_v_pairs,__pyx_6); if (__pyx_7 == (-1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; goto __pyx_L4;}
908
908
      Py_DECREF(__pyx_6); __pyx_6 = 0;
909
909
 
910
 
      /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":207 */
 
910
      /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":207 */
911
911
      __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_Stanza); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L4;}
912
912
      __pyx_1 = PyObject_GetAttr(__pyx_4, __pyx_n_from_pairs); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L4;}
913
913
      Py_DECREF(__pyx_4); __pyx_4 = 0;
999
999
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
1000
1000
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;};
1001
1001
 
1002
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":50 */
 
1002
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":50 */
1003
1003
  __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; goto __pyx_L1;}
1004
1004
  Py_INCREF(__pyx_n_Stanza);
1005
1005
  PyList_SET_ITEM(__pyx_1, 0, __pyx_n_Stanza);
1010
1010
  Py_DECREF(__pyx_1); __pyx_1 = 0;
1011
1011
  Py_DECREF(__pyx_2); __pyx_2 = 0;
1012
1012
 
1013
 
  /* "/home/mbp/bzr/prepare-2.1/bzrlib/_rio_pyx.pyx":158 */
 
1013
  /* "/home/robertc/source/baz/pending/working/bzrlib/_rio_pyx.pyx":158 */
1014
1014
  return;
1015
1015
  __pyx_L1:;
1016
1016
  Py_XDECREF(__pyx_1);