Move utils.{c,h} to be used by the entire project
authorRan Benita <ran234@gmail.com>
Fri, 23 Mar 2012 20:25:47 +0000 (22:25 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 27 Mar 2012 12:59:51 +0000 (13:59 +0100)
This is a first step for making consistent use of utils.h also outside
of xkbcomp/ .

Signed-off-by: Ran Benita <ran234@gmail.com>
src/Makefile.am
src/utils.c [moved from src/xkbcomp/utils.c with 100% similarity]
src/utils.h [moved from src/xkbcomp/utils.h with 100% similarity]
src/xkbcomp/Makefile.am
test/filecomp.c
test/namescomp.c
test/rulescomp.c
test/state.c

index ef66913..2aed33d 100644 (file)
@@ -17,6 +17,8 @@ libxkbcommon_la_SOURCES = \
        misc.c \
        state.c \
        text.c \
+       utils.c \
+       utils.h \
        xkb.c \
        xkballoc.h \
        xkbmisc.h \
similarity index 100%
rename from src/xkbcomp/utils.c
rename to src/utils.c
similarity index 100%
rename from src/xkbcomp/utils.h
rename to src/utils.h
index 0866208..473f94d 100644 (file)
@@ -23,8 +23,6 @@ libxkbcomp_la_SOURCES = \
        parseutils.c \
        parseutils.h \
        symbols.c \
-       utils.c \
-       utils.h \
        vmod.c \
        vmod.h \
        xkbcomp.c \
index facc02f..94c1bc1 100644 (file)
@@ -31,7 +31,7 @@ authorization from the authors.
 #include <X11/X.h>
 #include <X11/Xdefs.h>
 #include "xkbcommon/xkbcommon.h"
-#include "xkbcomp/utils.h"
+#include "utils.h"
 
 static char buffer[8192];
 
index b98ac7a..95dcecc 100644 (file)
@@ -29,7 +29,7 @@ authorization from the authors.
 #include <X11/X.h>
 #include <X11/Xdefs.h>
 #include "xkbcommon/xkbcommon.h"
-#include "xkbcomp/utils.h"
+#include "utils.h"
 
 int main(int argc, char *argv[])
 {
index fa0890a..0a84c94 100644 (file)
@@ -29,7 +29,7 @@ authorization from the authors.
 #include <X11/X.h>
 #include <X11/Xdefs.h>
 #include "xkbcommon/xkbcommon.h"
-#include "xkbcomp/utils.h"
+#include "utils.h"
 
 int main(int argc, char *argv[])
 {
index bc02148..476ee18 100644 (file)
@@ -31,7 +31,7 @@
 #include <X11/keysym.h>
 #include <linux/input.h>
 #include "xkbcommon/xkbcommon.h"
-#include "xkbcomp/utils.h"
+#include "utils.h"
 #include "XKBcommonint.h"
 
 /* Offset between evdev keycodes (where KEY_ESCAPE is 1), and the evdev XKB