|
|
|
|
|
by mtdewcmu
4593 days ago
|
|
Ah. I have not yet looked too far into how yxml works. I never came up with a perfectly satisfactory solution to the zero-buffer problem myself, but you've hit on a lot of the things that make it a hassle either way. It's almost impossible to do a usable xml parser under the assumption that it will not buffer and it will not be guaranteed access to more than one character at a time. I started developing one like that based on a goto-driven state machine, but I stopped working on it, because the interface was going to be too inconvenient. What I meant about blocking was blocking on malloc. It sounds like you're expecting the caller to take care of allocation? |
|