From 2fa101f3b4d4aedc0fdc35c64cdfb63beadea3d2 Mon Sep 17 00:00:00 2001 From: Paul J R Date: Sat, 14 Nov 2009 04:52:55 +1100 Subject: [PATCH] thats a little weird --- src/cleanit | 14 -------------- src/dbibridge.go | 6 +++--- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/cleanit b/src/cleanit index d83b860..ed7144d 100755 --- a/src/cleanit +++ b/src/cleanit @@ -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 diff --git a/src/dbibridge.go b/src/dbibridge.go index 4c72f2f..64b7d1b 100644 --- a/src/dbibridge.go +++ b/src/dbibridge.go @@ -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; -- 1.7.0.4