thats a little weird
authorPaul J R <me@pjr.cc>
Fri, 13 Nov 2009 17:52:55 +0000 (04:52 +1100)
committerPaul J R <me@pjr.cc>
Fri, 13 Nov 2009 17:52:55 +0000 (04:52 +1100)
src/cleanit
src/dbibridge.go

index d83b860..ed7144d 100755 (executable)
@@ -1,15 +1 @@
 rm -f *.cgo[1234].* *.so *.o *.a *.8
-cgo dbibridge.go 
-
-8g -o _dbibridge_.8 dbibridge.cgo1.go dbibridge.cgo2.go
-8c -FVw -I/export/src/external/golang//src/pkg/runtime  dbibridge.cgo3.c
-gopack grc dbibridge.a _dbibridge_.8 dbibridge.cgo3.8
-#cp dbibridge.a /export/src/external/golang//pkg/linux_386/dbibridge.a
-gcc -m32 -fPIC -O2 -o dbibridge.cgo4.o -c  dbibridge.cgo4.c
-gcc -m32 -shared -L`pwd` -lpthread -lm -ldbi -o dbibridge_dbibridge.so dbibridge.cgo4.o 
-#cp dbibridge.so /export/src/external/golang//pkg/linux_386/./dbibridge_dbibridge.so
-
-
-
-8g -I. webconnector.go
-8l -o godhammer -L. webconnector.8
index 4c72f2f..64b7d1b 100644 (file)
@@ -13,11 +13,11 @@ type DBIConnection struct {
        dbinit bool;
 }
 
-func DBICreate()(connection *DBConnection)
+func DBICreate()(connection *DBIConnection)
 {
-       var dbCon *DBConnection;
+       var dbCon *DBIConnection;
        
-       dbCon = new(DBConnection);
+       dbCon = new(DBIConnection);
        dbCon.dbinit = false;
        
        return dbCon;