1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00
mpv/input
wm4 066ecfcbfb common: simplify and optimize string escape parsing
This code is shared between input.conf parser and option parser. Until
now, the performance didn't really matter. But I want to use this code
for JSON parsing too, and since JSON will have to be parsed a lot, it
should probably try to avoid realloc'ing too much.

This commit moves parsing of C-style escaped strings into a common
function, and allows using it in a way realloc can be completely
avoided, if the already allocated buffer is large enough.
2013-12-30 22:49:50 +01:00
..
cmd_list.c input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
cmd_list.h input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
cmd_parse.c common: simplify and optimize string escape parsing 2013-12-30 22:49:50 +01:00
cmd_parse.h input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
input.c input: print an error if reading input.conf fails 2013-12-28 15:06:43 +01:00
input.h input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
joystick.c input: rework how input sources are added 2013-12-21 20:50:13 +01:00
joystick.h input: rework how input sources are added 2013-12-21 20:50:13 +01:00
keycodes.c input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
keycodes.h input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
lirc.c input: rework how input sources are added 2013-12-21 20:50:13 +01:00
lirc.h input: rework how input sources are added 2013-12-21 20:50:13 +01:00