415
400
next_null = <char *>_my_memrchr(cur, c'\0', next_line - cur)
417
402
raise ValueError('bad no null')
420
403
item_prefix = PyString_FromStringAndSize(NULL,
421
404
prefix_length + next_null - cur)
422
405
c_item_prefix = PyString_AS_STRING(item_prefix)
424
407
memcpy(c_item_prefix, prefix, prefix_length)
425
408
memcpy(c_item_prefix + prefix_length, cur, next_null - cur)
427
409
flat_key = PyString_FromStringAndSize(next_null + 1,
428
410
next_line - next_null - 1)
429
411
flat_key = StaticTuple(flat_key).intern()
433
412
PyDict_SetItem(items, item_prefix, flat_key)