Organize xkbcomp/ header files
authorRan Benita <ran234@gmail.com>
Mon, 13 Aug 2012 08:00:43 +0000 (11:00 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 1 Sep 2012 07:58:10 +0000 (10:58 +0300)
commitcdc228eaf6e55e0dfc524fe62cd1021f2467e3bf
tree98ced0725cb0d98157f14690680d8565ff897faf
parent3634b1565e00f72fcbde655363b85f8f060d91b5
Organize xkbcomp/ header files

Various non-functional changes:
- Re-add keycodes.h and move some stuff there.
- Add parser-priv.h for internal bison/flex stuff.
- Don't include headers from other headers, such that file dependencies
  are immediate in each file.
- Rename xkbcomp.h -> ast.h, parseutils.{c,h} -> ast-build.{c,h}
- Rename path.{c,h} -> include.{c,h}
- Rename keytypes.c -> types.c
- Make the naming of XkbFile-related functions more consistent.
- Move xkb_map_{new,ref,unref} to map.c.
- Remove most extern keyword from function declarations, it's just
  noise (XKB_EXPORT is what's important here).
- Append XKBCOMP_ to include guards.
- Shuffle some code around to make all of this work.

Splitting this would be a headache..

Signed-off-by: Ran Benita <ran234@gmail.com>
27 files changed:
Makefile.am
src/map.c
src/xkb-priv.h
src/xkbcomp/action.c
src/xkbcomp/action.h
src/xkbcomp/ast-build.c [moved from src/xkbcomp/parseutils.c with 91% similarity]
src/xkbcomp/ast-build.h [moved from src/xkbcomp/parseutils.h with 64% similarity]
src/xkbcomp/ast.h [moved from src/xkbcomp/xkbcomp.h with 90% similarity]
src/xkbcomp/compat.c
src/xkbcomp/expr.c
src/xkbcomp/expr.h
src/xkbcomp/include.c [moved from src/xkbcomp/path.c with 92% similarity]
src/xkbcomp/include.h [moved from src/xkbcomp/path.h with 76% similarity]
src/xkbcomp/keycodes.c
src/xkbcomp/keycodes.h [new file with mode: 0644]
src/xkbcomp/parser-priv.h [new file with mode: 0644]
src/xkbcomp/parser.y
src/xkbcomp/rules.c
src/xkbcomp/rules.h
src/xkbcomp/scanner.l
src/xkbcomp/symbols.c
src/xkbcomp/types.c [moved from src/xkbcomp/keytypes.c with 99% similarity]
src/xkbcomp/vmod.c
src/xkbcomp/vmod.h
src/xkbcomp/xkbcomp-priv.h
src/xkbcomp/xkbcomp.c
test/rules-file.c