diff options
author | Ran Benita <ran234@gmail.com> | 2012-08-13 11:00:43 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-09-01 10:58:10 +0300 |
commit | cdc228eaf6e55e0dfc524fe62cd1021f2467e3bf (patch) | |
tree | 98ced0725cb0d98157f14690680d8565ff897faf /src/xkbcomp/compat.c | |
parent | 3634b1565e00f72fcbde655363b85f8f060d91b5 (diff) | |
download | libxkbcommon-cdc228eaf6e55e0dfc524fe62cd1021f2467e3bf.tar.gz libxkbcommon-cdc228eaf6e55e0dfc524fe62cd1021f2467e3bf.tar.bz2 libxkbcommon-cdc228eaf6e55e0dfc524fe62cd1021f2467e3bf.zip |
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>
Diffstat (limited to 'src/xkbcomp/compat.c')
-rw-r--r-- | src/xkbcomp/compat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xkbcomp/compat.c b/src/xkbcomp/compat.c index b00f64a..e8f394b 100644 --- a/src/xkbcomp/compat.c +++ b/src/xkbcomp/compat.c @@ -25,9 +25,11 @@ ********************************************************/ #include "xkbcomp-priv.h" -#include "parseutils.h" +#include "text.h" +#include "expr.h" #include "action.h" #include "vmod.h" +#include "include.h" enum si_field { SI_FIELD_VIRTUAL_MOD = (1 << 0), @@ -607,7 +609,7 @@ HandleIncludeCompatMap(CompatInfo *info, IncludeStmt *stmt) next_incl.act = NULL; ClearCompatInfo(&next_incl); - FreeXKBFile(rtrn); + FreeXkbFile(rtrn); } MergeIncludedCompatMaps(info, &included, merge); |