Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
llgo: [v0.10.1]
llgo: [v0.11.0]
llcppg: [v0.2.1]
steps:
- name: Checkout
Expand Down Expand Up @@ -52,18 +52,23 @@ jobs:
- name: Setup LLGo
working-directory: .llgo
run: |
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-19 main" | sudo tee /etc/apt/sources.list.d/llvm.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y python3 python3-pip llvm-18-dev libuv1-dev clang-18 libunwind-dev libclang-18-dev lld-18 cmake pkg-config libgc-dev libssl-dev zlib1g-dev libffi-dev libcjson-dev
echo "/usr/lib/llvm-18/bin" >> $GITHUB_PATH
cd compiler
go install -v ./cmd/...
export LLGO_ROOT=$GITHUB_WORKSPACE/llgo
sudo apt-get install -y python3 python3-pip llvm-19-dev libuv1-dev clang-19 libunwind-dev libclang-19-dev lld-19 cmake pkg-config libgc-dev libssl-dev zlib1g-dev libffi-dev libcjson-dev
echo "/usr/lib/llvm-19/bin" >> $GITHUB_PATH
bash ./install.sh
echo $PWD
export LLGO_ROOT=$PWD
echo "LLGO_ROOT=$LLGO_ROOT" >> $GITHUB_ENV
- name: Setup LLCppg
working-directory: .llcppg
run: |
echo "Using LLGO_ROOT: $LLGO_ROOT"
echo $PWD
cd $PWD
go get github.com/goplus/lib/c
go mod tidy -e
llgo install ./_xtool/llcppsymg
llgo install ./_xtool/llcppsigfetch
go install github.com/goplus/llcppg/cmd/llcppcfg@${{matrix.llcppg}}
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.pc
*.pc
*.work
.DS_Store
2 changes: 1 addition & 1 deletion bzip2/_demo/compress/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"unsafe"

"github.com/goplus/llgo/c"
"github.com/goplus/lib/c"
"github.com/goplus/llpkg/bzip2"
)

Expand Down
2 changes: 1 addition & 1 deletion bzip2/_demo/decompress/decompress.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"unsafe"

"github.com/goplus/llgo/c"
"github.com/goplus/lib/c"
"github.com/goplus/llpkg/bzip2"
)

Expand Down
3 changes: 2 additions & 1 deletion bzip2/bzlib.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package bzip2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

const RUN = 0
Expand Down
2 changes: 1 addition & 1 deletion bzip2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/goplus/llpkg/bzip2

go 1.20

require github.com/goplus/llgo v0.10.0
require github.com/goplus/lib v0.2.0
4 changes: 2 additions & 2 deletions bzip2/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/goplus/llgo v0.10.0 h1:s3U3cnO3cploF1xCCJleAb16NQFAmHxdUmdrNhRH3hY=
github.com/goplus/llgo v0.10.0/go.mod h1:YfOHsT/g3lc9b4GclLj812YzdSsJr0kd3CCB830TqHE=
github.com/goplus/lib v0.2.0 h1:AjqkN1XK5H23wZMMlpaUYAMCDAdSBQ2NMFrLtSh7W4g=
github.com/goplus/lib v0.2.0/go.mod h1:SgJv3oPqLLHCu0gcL46ejOP3x7/2ry2Jtxu7ta32kp0=
2 changes: 1 addition & 1 deletion bzip3/_demo/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/goplus/llgo/c"
"github.com/goplus/lib/c"
zip "github.com/goplus/llpkg/bzip3"
)

Expand Down
2 changes: 1 addition & 1 deletion bzip3/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/goplus/llpkg/bzip3

go 1.20

require github.com/goplus/llgo v0.10.0
require github.com/goplus/lib v0.2.0
4 changes: 2 additions & 2 deletions bzip3/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/goplus/llgo v0.10.0 h1:s3U3cnO3cploF1xCCJleAb16NQFAmHxdUmdrNhRH3hY=
github.com/goplus/llgo v0.10.0/go.mod h1:YfOHsT/g3lc9b4GclLj812YzdSsJr0kd3CCB830TqHE=
github.com/goplus/lib v0.2.0 h1:AjqkN1XK5H23wZMMlpaUYAMCDAdSBQ2NMFrLtSh7W4g=
github.com/goplus/lib v0.2.0/go.mod h1:SgJv3oPqLLHCu0gcL46ejOP3x7/2ry2Jtxu7ta32kp0=
3 changes: 2 additions & 1 deletion bzip3/libbz3.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package bzip3

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

const OK = 0
Expand Down
2 changes: 1 addition & 1 deletion cargs/_demo/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

C "github.com/goplus/llgo/c"
C "github.com/goplus/lib/c"
"github.com/goplus/llpkg/cargs"
)

Expand Down
3 changes: 2 additions & 1 deletion cargs/cargs.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cargs

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

/**
Expand Down
2 changes: 1 addition & 1 deletion cjson/_demo/hello/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/goplus/llpkg/cjson"

"github.com/goplus/llgo/c"
"github.com/goplus/lib/c"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion cjson/cJSON.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cjson

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

const VERSION_MAJOR = 1
Expand Down
3 changes: 2 additions & 1 deletion cjson/cJSON_Utils.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cjson

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

/* Implement RFC6901 (https://tools.ietf.org/html/rfc6901) JSON Pointer spec. */
Expand Down
3 changes: 2 additions & 1 deletion libxml2/HTMLparser.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type HtmlParserCtxt ParserCtxt
Expand Down
3 changes: 2 additions & 1 deletion libxml2/HTMLtree.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

// llgo:link (*Char).HtmlNewDoc C.htmlNewDoc
Expand Down
3 changes: 2 additions & 1 deletion libxml2/SAX.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

//go:linkname GetPublicId C.getPublicId
Expand Down
3 changes: 2 additions & 1 deletion libxml2/SAX2.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

//go:linkname SAX2GetPublicId C.xmlSAX2GetPublicId
Expand Down
2 changes: 1 addition & 1 deletion libxml2/_demo/hello/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/goplus/llpkg/libxml2"

"github.com/goplus/llgo/c"
"github.com/goplus/lib/c"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion libxml2/c14n.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type C14NMode c.Int
Expand Down
3 changes: 2 additions & 1 deletion libxml2/catalog.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type CatalogPrefer c.Int
Expand Down
3 changes: 2 additions & 1 deletion libxml2/chvalid.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

type X_xmlChSRange struct {
Expand Down
3 changes: 2 additions & 1 deletion libxml2/debugXML.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

/*
Expand Down
3 changes: 2 additions & 1 deletion libxml2/dict.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

type Dict X_xmlDict
Expand Down
3 changes: 2 additions & 1 deletion libxml2/encoding.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type CharEncError c.Int
Expand Down
3 changes: 2 additions & 1 deletion libxml2/entities.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

type EntityType c.Int
Expand Down
3 changes: 2 additions & 1 deletion libxml2/hash.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type X_xmlHashTable struct {
Expand Down
3 changes: 2 additions & 1 deletion libxml2/list.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type X_xmlLink struct {
Expand Down
3 changes: 2 additions & 1 deletion libxml2/nanoftp.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

// llgo:type C
Expand Down
3 changes: 2 additions & 1 deletion libxml2/nanohttp.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

//go:linkname NanoHTTPInit C.xmlNanoHTTPInit
Expand Down
3 changes: 2 additions & 1 deletion libxml2/parser.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

const DEFAULT_VERSION = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion libxml2/parserInternals.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

const MAX_TEXT_LENGTH = 10000000
Expand Down
3 changes: 2 additions & 1 deletion libxml2/pattern.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
_ "unsafe"

"github.com/goplus/lib/c"
)

type X_xmlPattern struct {
Expand Down
3 changes: 2 additions & 1 deletion libxml2/relaxng.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

type X_xmlRelaxNG struct {
Expand Down
3 changes: 2 additions & 1 deletion libxml2/schemasInternals.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package libxml2

import (
"github.com/goplus/llgo/c"
"unsafe"

"github.com/goplus/lib/c"
)

const SCHEMAS_ANYATTR_SKIP = 1
Expand Down
Loading
Loading