]> git.tuebingen.mpg.de Git - paraslash.git/commit
write: Get rid of gengetopt's string parser.
authorAndre Noll <maan@systemlinux.org>
Sun, 29 Jul 2012 17:49:46 +0000 (19:49 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Aug 2012 11:01:08 +0000 (13:01 +0200)
commit8fa50e3e39b4f65dea2a694dc064038a41036642
treeb53060e547acc7ff7979000e4cb246e0bc131923
parentbd533f99665cab3c9d64c14c242a8f80bdce71c5
write: Get rid of gengetopt's string parser.

It causes gengetopt to generate quite some additional code for
the string parsers of all writers. Moreover, this string parser is
inferior to create_argv() and create_shifted_argv() of string.c as
gengetopt's parser does not honor any quoting at all.

This commit changes the signature of the ->parse_config_or_die method
of struct writer to take an (argc, argv) pair instead of a string.  All
writers can thus call the vanilla command line parser of gengetopt. The
single user in write_common.c now calls ->parse_config_or_die()
with an (argc, argv) pair obtained from create_shifted_argv().
alsa_write.c
ao_write.c
audiod.c
file_write.c
m4/gengetopt/makefile
oss_write.c
osx_write.c
write.c
write.h
write_common.c