]> git.llucax.com Git - software/ev.d.git/commitdiff
Move low-level ev bindings to module ev.c.
authorLeandro Lucarella <llucax@gmail.com>
Thu, 31 Jan 2008 04:59:55 +0000 (02:59 -0200)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 31 Jan 2008 04:59:55 +0000 (02:59 -0200)
This is to leave place to high-level bindings on module ev.d.

Makefile
ev/c.d [moved from ev.d with 99% similarity]
test.d

index b6b1e19ebf46a1315495cf01171ec1b304c12631..1dbb4bcd0e6f436b2392b10ea2410b8dea807433 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,17 +11,17 @@ DFLAGS += -ggdb
 
 all: test
 
-test.o: test.d ev.d
+test.o: test.d ev/c.d
        gdc -c $(DFLAGS) test.d
 
-ev.o: ev.d
-       gdc -c $(DFLAGS) ev.d
+ev/c.o: ev/c.d
+       gdc -c -o ev/c.o $(DFLAGS) ev/c.d
 
-test: test.o ev.o
-       gdc -o test -lev $(DFLAGS) test.o ev.o
+test: test.o ev/c.o
+       gdc -o test -lev $(DFLAGS) test.o ev/c.o
 
 clean:
-       $(RM) -v *.o test
+       $(RM) -v *.o ev/*.o test
 
 .PHONY: clean all
 
diff --git a/ev.d b/ev/c.d
similarity index 99%
rename from ev.d
rename to ev/c.d
index 2d27cf560f39657c04d8a59b45533cc40247485e..d28e03436871d412c8962efdbc260fa087d2170c 100644 (file)
--- a/ev.d
+++ b/ev/c.d
@@ -9,7 +9,7 @@
  +
  +/
 
-module ev;
+module ev.c;
 
 enum: uint
 {
diff --git a/test.d b/test.d
index 98ea1ecdd7c76889580e10d0c94798125db2eb50..1dc3ddfb1a374f0c3616e468e88eb30bf48a2641 100644 (file)
--- a/test.d
+++ b/test.d
@@ -10,7 +10,7 @@
  +/
 
 import io = std.stdio;
-import ev;
+import ev.c;
 
 extern (C)
 {