Add an option parser
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 12 Mar 2012 01:05:57 +0000 (21:05 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 12 Mar 2012 05:28:50 +0000 (01:28 -0400)
commitbcacef19b032d1162120c4a48412bb62b90ad61c
tree07b3ca56da1946d99e79258d4bab9276ef1e05bd
parent22ba60e514e074e4bdee1529aa8d22600712f001
Add an option parser

On one hand, getopt (in particular the -o suboption syntax) sucks on the
server side, and on the client side we would like to avoid the glib
dependency.  We can roll out own option parser and solve both problems
and save a few lines of code total.
26 files changed:
clients/Makefile.am
clients/clickdot.c
clients/desktop-shell.c
clients/dnd.c
clients/eventdemo.c
clients/flower.c
clients/gears.c
clients/image.c
clients/resizor.c
clients/smoke.c
clients/tablet-shell.c
clients/terminal.c
clients/view.c
clients/window.c
clients/window.h
clients/wscreensaver.c
shared/Makefile.am
shared/config-parser.h
shared/option-parser.c [new file with mode: 0644]
src/Makefile.am
src/compositor-drm.c
src/compositor-openwfd.c
src/compositor-wayland.c
src/compositor-x11.c
src/compositor.c
src/compositor.h