diff --git a/README.md b/README.md index 60a1ccf..2cffb7d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Go bindings for Sciter -[![Build status](https://ci.appveyor.com/api/projects/status/rphv883klffw9em9/branch/master?svg=true)](https://ci.appveyor.com/project/pravic/go-sciter) -[![Build Status](https://img.shields.io/travis/sciter-sdk/go-sciter/master.svg)](https://travis-ci.org/sciter-sdk/go-sciter) +[![AppVeyor status](https://ci.appveyor.com/api/projects/status/rphv883klffw9em9/branch/master?svg=true)](https://ci.appveyor.com/project/pravic/go-sciter) +[![Travis Status](https://travis-ci.com/sciter-sdk/go-sciter.svg?branch=master)](https://travis-ci.com/sciter-sdk/go-sciter) [![License](https://img.shields.io/github/license/sciter-sdk/go-sciter.svg)](https://github.com/sciter-sdk/go-sciter) [![Join the forums at https://sciter.com/forums](https://img.shields.io/badge/forum-sciter.com-orange.svg)](https://sciter.com/forums) diff --git a/callbacks.c b/callbacks.c index 28aad0d..de6df5b 100644 --- a/callbacks.c +++ b/callbacks.c @@ -1,9 +1,9 @@ #include "sciter-x.h" #include "_cgo_export.h" -// typedef BOOL SC_CALLBACK SciterElementCallback(HELEMENT he, LPVOID param); +// typedef SBOOL SC_CALLBACK SciterElementCallback(HELEMENT he, LPVOID param); -BOOL SC_CALLBACK SciterElementCallback_cgo(HELEMENT he, LPVOID param) +SBOOL SC_CALLBACK SciterElementCallback_cgo(HELEMENT he, LPVOID param) { return goSciterElementCallback(he, param); } @@ -26,8 +26,8 @@ VOID SC_CALLBACK LPCSTR_RECEIVER_cgo(LPCSTR str, UINT str_length, LPVOID param) goLPCSTR_RECEIVER(str, str_length, param); } -// typedef BOOL SC_CALLBACK ElementEventProc(LPVOID tag, HELEMENT he, UINT evtg, LPVOID prms); -BOOL SC_CALLBACK ElementEventProc_cgo(LPVOID tag, HELEMENT he, UINT evtg, LPVOID prms) +// typedef SBOOL SC_CALLBACK ElementEventProc(LPVOID tag, HELEMENT he, UINT evtg, LPVOID prms); +SBOOL SC_CALLBACK ElementEventProc_cgo(LPVOID tag, HELEMENT he, UINT evtg, LPVOID prms) { return goElementEventProc(tag, he, evtg, prms); } @@ -57,9 +57,9 @@ INT SC_CALLBACK ELEMENT_COMPARATOR_cgo(HELEMENT he1, HELEMENT he2, LPVOID param) return goELEMENT_COMPARATOR(he1, he2, param); } -// typedef BOOL SC_CALLBACK KeyValueCallback(LPVOID param, const VALUE* pkey, const VALUE* pval); +// typedef SBOOL SC_CALLBACK KeyValueCallback(LPVOID param, const VALUE* pkey, const VALUE* pval); -BOOL SC_CALLBACK KeyValueCallback_cgo(LPVOID param, const VALUE* pkey, const VALUE* pval) +SBOOL SC_CALLBACK KeyValueCallback_cgo(LPVOID param, const VALUE* pkey, const VALUE* pval) { return goKeyValueCallback(param, (VALUE*)pkey, (VALUE*)pval); } \ No newline at end of file diff --git a/examples/callback/callback.go b/examples/callback/callback.go index 00018c5..0d26507 100644 --- a/examples/callback/callback.go +++ b/examples/callback/callback.go @@ -3,7 +3,7 @@ package main import ( "log" "path/filepath" - + "github.com/sciter-sdk/go-sciter" "github.com/sciter-sdk/go-sciter/window" ) diff --git a/examples/demoes/01/demo1.go b/examples/demoes/01/demo1.go index b2f3228..3b93cfd 100644 --- a/examples/demoes/01/demo1.go +++ b/examples/demoes/01/demo1.go @@ -3,7 +3,7 @@ package main import ( "log" "path/filepath" - + "github.com/sciter-sdk/go-sciter" "github.com/sciter-sdk/go-sciter/window" ) diff --git a/examples/demoes/05/demo5.go b/examples/demoes/05/demo5.go index d9135d8..1d7c912 100644 --- a/examples/demoes/05/demo5.go +++ b/examples/demoes/05/demo5.go @@ -3,7 +3,7 @@ package main import ( "log" "path/filepath" - + "github.com/sciter-sdk/go-sciter" "github.com/sciter-sdk/go-sciter/window" ) diff --git a/examples/handlers/handlers.go b/examples/handlers/handlers.go index b508444..454a484 100644 --- a/examples/handlers/handlers.go +++ b/examples/handlers/handlers.go @@ -4,7 +4,7 @@ import ( "flag" "log" "path/filepath" - + "github.com/sciter-sdk/go-sciter" "github.com/sciter-sdk/go-sciter/rice" "github.com/sciter-sdk/go-sciter/window" diff --git a/examples/textHtml/textHtml.go b/examples/textHtml/textHtml.go index b41d4b3..ed729a6 100644 --- a/examples/textHtml/textHtml.go +++ b/examples/textHtml/textHtml.go @@ -24,7 +24,7 @@ const (