[PATCH libxkbcommon] keymap: add xkb_keymap_new_from_memory()

Bill Spitzak spitzak at gmail.com
Mon Mar 11 10:31:45 PDT 2013


Oops, never mind, it looks like you have already analyzed yy_scan_byte 
and found it calls yy_scan_buffer internally (!!!). Oh well.

David Herrmann wrote:

> Internally, we depend on yy_scan_{string,byte}() helpers. According to
> flex documentation these already copy the input string because they are
> wrappers around yy_scan_buffer().
> yy_scan_buffer() on the other hand has some insane requirements. The
> buffer must be writeable and the last two bytes must be ASCII-NUL. But the
> buffer may contain other 0 bytes just fine.


More information about the wayland-devel mailing list