Skip to content
Merged
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
2 changes: 1 addition & 1 deletion c/bdwgc/bdwgc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/bitcast/bitcast.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/c.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/cjson/cjson.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/ctypes_32bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// +build 386 arm mips mipsle

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/ctypes_unix64.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// +build amd64 arm64 ppc64 ppc64le mips64 mips64le s390x riscv64

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/ctypes_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// +build wasip1 js

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/ctypes_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// +build windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
32 changes: 32 additions & 0 deletions c/ldobule_float64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//go:build (windows && !(mingw && (amd64 || 386))) || (darwin && arm64) || arm || mips || mipsle || ((ppc64 || ppc64le) && !linux)

/*
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package c

// LongDouble is identical to double on these targets (8 bytes, IEEE binary64):
// - Windows MSVC ABI (all architectures), and windows/arm64 (MSVC or MinGW)
// - darwin/arm64 and ios/arm64
// - 32-bit ARM, MIPS o32
// - non-Linux ppc64 (AIX, FreeBSD, OpenBSD: 64-bit long double)
//
// Build with -tags mingw to select the MinGW x86 layout on windows/amd64
// and windows/386 instead.
type LongDouble float64

// LongDoubleSize is sizeof(long double) in bytes on this target.
const LongDoubleSize = 8
2 changes: 1 addition & 1 deletion c/libuv/async.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/llama2/llama2.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/math/cmplx/complex.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/math/math.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/math/rand/rand.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/math/rand/rand_default.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build !windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package rand

Expand Down
2 changes: 1 addition & 1 deletion c/math/rand/rand_windows.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package rand

Expand Down
2 changes: 1 addition & 1 deletion c/math/rand/rand_windows_llgo_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build llgo && windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package rand_test

Expand Down
2 changes: 1 addition & 1 deletion c/net/addrinfo_windows.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package net

Expand Down
2 changes: 1 addition & 1 deletion c/net/functions_windows.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package net

Expand Down
2 changes: 1 addition & 1 deletion c/net/net.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/net/net_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build windows

/*
* Copyright (c) 2026 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2026 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/net/net_windows_llgo_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build llgo && windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package net_test

Expand Down
2 changes: 1 addition & 1 deletion c/net/net_windows_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package net

Expand Down
2 changes: 1 addition & 1 deletion c/openssl/bio.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/bn.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/err.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/md5.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/openssl.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/pem.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/rand.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/rsa.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/sha1.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/sha256.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/openssl/sha512.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/os/flags_default.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !windows

/*
* Copyright (c) 2026 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2026 The XGo Authors (xgo.dev). All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion c/os/functions_default.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !windows

/*
* Copyright (c) 2026 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2026 The XGo Authors (xgo.dev). All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion c/os/os.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/os/os_darwin.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/os/os_nonwasm.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !wasm && !windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/os/os_other.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !darwin && !windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/os/os_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build windows

/*
* Copyright (c) 2026 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2026 The XGo Authors (xgo.dev). All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion c/os/os_windows_llgo_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build llgo && windows

// Copyright (c) 2026 The GoPlus Authors. Licensed under the Apache License 2.0.
// Copyright (c) 2026 The XGo Authors. Licensed under the Apache License 2.0.

package os_test

Expand Down
2 changes: 1 addition & 1 deletion c/os/stat_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build windows

/*
* Copyright (c) 2026 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2026 The XGo Authors (xgo.dev). All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down
2 changes: 1 addition & 1 deletion c/pthread/pthread.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/pthread/pthread_gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// +build !nogc,!windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/pthread/pthread_nogc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// +build nogc,!windows

/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion c/pthread/sync/_sema.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
* Copyright (c) 2024 The XGo Authors (xgo.dev). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading
Loading