Skip to content

Commit 1edd0eb

Browse files
committed
Update Clang.jl and re-run generator script for applying bugfixes
1 parent c3477ee commit 1edd0eb

15 files changed

+185
-17
lines changed

gen/Manifest.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = "0.4.1"
1616

1717
[[Clang]]
1818
deps = ["CEnum", "Clang_jll", "Downloads", "Pkg", "TOML"]
19-
git-tree-sha1 = "40fdcc784487848cd0b842c29c1b8df9d3dc0bf3"
19+
git-tree-sha1 = "98cf157de9ad10fd4e874573b77cee25bfc4bfa7"
2020
repo-rev = "master"
2121
repo-url = "https://github.com/JuliaInterop/Clang.jl.git"
2222
uuid = "40e3b903-d033-50b4-a0cc-940c62c95e31"
@@ -88,9 +88,9 @@ uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
8888

8989
[[Preferences]]
9090
deps = ["TOML"]
91-
git-tree-sha1 = "ea79e4c9077208cd3bc5d29631a26bc0cff78902"
91+
git-tree-sha1 = "00cfd92944ca9c760982747e9a1d0d5d86ab1e5a"
9292
uuid = "21216c6a-2e73-6563-6e65-726566657250"
93-
version = "1.2.1"
93+
version = "1.2.2"
9494

9595
[[Printf]]
9696
deps = ["Unicode"]

lib/aarch64-apple-darwin20.jl

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
mutable struct fd_set
22
fds_bits::NTuple{32, Int32}
3+
fd_set() = new()
34
end
45

56
const sa_family_t = UInt8
@@ -157,6 +158,7 @@ mutable struct curl_sockaddr
157158
protocol::Cint
158159
addrlen::Cuint
159160
addr::sockaddr
161+
curl_sockaddr() = new()
160162
end
161163

162164
# typedef curl_socket_t ( * curl_opensocket_callback ) ( void * clientp , curlsocktype purpose , struct curl_sockaddr * address )
@@ -382,6 +384,7 @@ mutable struct curl_khkey
382384
key::Ptr{Cchar}
383385
len::Csize_t
384386
keytype::curl_khtype
387+
curl_khkey() = new()
385388
end
386389

387390
@enum curl_khstat::UInt32 begin
@@ -887,6 +890,7 @@ end
887890
mutable struct curl_forms
888891
option::CURLformoption
889892
value::Ptr{Cchar}
893+
curl_forms() = new()
890894
end
891895

892896
@enum CURLFORMcode::UInt32 begin
@@ -955,6 +959,7 @@ end
955959
mutable struct curl_ssl_backend
956960
id::curl_sslbackend
957961
name::Ptr{Cchar}
962+
curl_ssl_backend() = new()
958963
end
959964

960965
@enum CURLsslset::UInt32 begin
@@ -983,11 +988,13 @@ end
983988
mutable struct curl_certinfo
984989
num_of_certs::Cint
985990
certinfo::Ptr{Ptr{curl_slist}}
991+
curl_certinfo() = new()
986992
end
987993

988994
mutable struct curl_tlssessioninfo
989995
backend::curl_sslbackend
990996
internals::Ptr{Cvoid}
997+
curl_tlssessioninfo() = new()
991998
end
992999

9931000
@enum CURLINFO::UInt32 begin
@@ -1159,6 +1166,7 @@ mutable struct curl_version_info_data
11591166
capath::Ptr{Cchar}
11601167
zstd_ver_num::Cuint
11611168
zstd_version::Ptr{Cchar}
1169+
curl_version_info_data() = new()
11621170
end
11631171

11641172
function curl_version_info(arg1)
@@ -1181,6 +1189,7 @@ mutable struct curl_blob
11811189
data::Ptr{Cvoid}
11821190
len::Csize_t
11831191
flags::Cuint
1192+
curl_blob() = new()
11841193
end
11851194

11861195
function curl_easy_init()
@@ -1265,6 +1274,7 @@ mutable struct curl_waitfd
12651274
fd::curl_socket_t
12661275
events::Cshort
12671276
revents::Cshort
1277+
curl_waitfd() = new()
12681278
end
12691279

12701280
function curl_multi_init()
@@ -1443,6 +1453,7 @@ mutable struct curl_easyoption
14431453
id::CURLoption
14441454
type::curl_easytype
14451455
flags::Cuint
1456+
curl_easyoption() = new()
14461457
end
14471458

14481459
function curl_easy_option_by_name(name)
@@ -1484,6 +1495,7 @@ mutable struct __JL_Ctag_40
14841495
user::Ptr{Cchar}
14851496
group::Ptr{Cchar}
14861497
target::Ptr{Cchar}
1498+
__JL_Ctag_40() = new()
14871499
end
14881500

14891501
function Base.getproperty(x::Ptr{__JL_Ctag_40}, f::Symbol)
@@ -1918,7 +1930,7 @@ const CURLINFO_SOCKET = 0x00500000
19181930

19191931
const CURLINFO_OFF_T = 0x00600000
19201932

1921-
const CURLINFO_MASK = Float32(0x0000ffff)
1933+
const CURLINFO_MASK = 0x000fffff
19221934

19231935
const CURLINFO_TYPEMASK = 0x00f00000
19241936

lib/aarch64-linux-gnu.jl

+13-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const __fd_mask = Clong
22

33
mutable struct fd_set
44
__fds_bits::NTuple{16, __fd_mask}
5+
fd_set() = new()
56
end
67

78
const sa_family_t = Cushort
@@ -158,6 +159,7 @@ mutable struct curl_sockaddr
158159
protocol::Cint
159160
addrlen::Cuint
160161
addr::sockaddr
162+
curl_sockaddr() = new()
161163
end
162164

163165
# typedef curl_socket_t ( * curl_opensocket_callback ) ( void * clientp , curlsocktype purpose , struct curl_sockaddr * address )
@@ -383,6 +385,7 @@ mutable struct curl_khkey
383385
key::Ptr{Cchar}
384386
len::Csize_t
385387
keytype::curl_khtype
388+
curl_khkey() = new()
386389
end
387390

388391
@enum curl_khstat::UInt32 begin
@@ -888,6 +891,7 @@ end
888891
mutable struct curl_forms
889892
option::CURLformoption
890893
value::Ptr{Cchar}
894+
curl_forms() = new()
891895
end
892896

893897
@enum CURLFORMcode::UInt32 begin
@@ -956,6 +960,7 @@ end
956960
mutable struct curl_ssl_backend
957961
id::curl_sslbackend
958962
name::Ptr{Cchar}
963+
curl_ssl_backend() = new()
959964
end
960965

961966
@enum CURLsslset::UInt32 begin
@@ -984,11 +989,13 @@ end
984989
mutable struct curl_certinfo
985990
num_of_certs::Cint
986991
certinfo::Ptr{Ptr{curl_slist}}
992+
curl_certinfo() = new()
987993
end
988994

989995
mutable struct curl_tlssessioninfo
990996
backend::curl_sslbackend
991997
internals::Ptr{Cvoid}
998+
curl_tlssessioninfo() = new()
992999
end
9931000

9941001
@enum CURLINFO::UInt32 begin
@@ -1160,6 +1167,7 @@ mutable struct curl_version_info_data
11601167
capath::Ptr{Cchar}
11611168
zstd_ver_num::Cuint
11621169
zstd_version::Ptr{Cchar}
1170+
curl_version_info_data() = new()
11631171
end
11641172

11651173
function curl_version_info(arg1)
@@ -1182,6 +1190,7 @@ mutable struct curl_blob
11821190
data::Ptr{Cvoid}
11831191
len::Csize_t
11841192
flags::Cuint
1193+
curl_blob() = new()
11851194
end
11861195

11871196
function curl_easy_init()
@@ -1266,6 +1275,7 @@ mutable struct curl_waitfd
12661275
fd::curl_socket_t
12671276
events::Cshort
12681277
revents::Cshort
1278+
curl_waitfd() = new()
12691279
end
12701280

12711281
function curl_multi_init()
@@ -1444,6 +1454,7 @@ mutable struct curl_easyoption
14441454
id::CURLoption
14451455
type::curl_easytype
14461456
flags::Cuint
1457+
curl_easyoption() = new()
14471458
end
14481459

14491460
function curl_easy_option_by_name(name)
@@ -1485,6 +1496,7 @@ mutable struct __JL_Ctag_55
14851496
user::Ptr{Cchar}
14861497
group::Ptr{Cchar}
14871498
target::Ptr{Cchar}
1499+
__JL_Ctag_55() = new()
14881500
end
14891501

14901502
function Base.getproperty(x::Ptr{__JL_Ctag_55}, f::Symbol)
@@ -1919,7 +1931,7 @@ const CURLINFO_SOCKET = 0x00500000
19191931

19201932
const CURLINFO_OFF_T = 0x00600000
19211933

1922-
const CURLINFO_MASK = Float32(0x0000ffff)
1934+
const CURLINFO_MASK = 0x000fffff
19231935

19241936
const CURLINFO_TYPEMASK = 0x00f00000
19251937

lib/aarch64-linux-musl.jl

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
mutable struct fd_set
22
fds_bits::NTuple{16, Culong}
3+
fd_set() = new()
34
end
45

56
const sa_family_t = Cushort
@@ -152,6 +153,7 @@ mutable struct curl_sockaddr
152153
protocol::Cint
153154
addrlen::Cuint
154155
addr::sockaddr
156+
curl_sockaddr() = new()
155157
end
156158

157159
# typedef curl_socket_t ( * curl_opensocket_callback ) ( void * clientp , curlsocktype purpose , struct curl_sockaddr * address )
@@ -377,6 +379,7 @@ mutable struct curl_khkey
377379
key::Ptr{Cchar}
378380
len::Csize_t
379381
keytype::curl_khtype
382+
curl_khkey() = new()
380383
end
381384

382385
@enum curl_khstat::UInt32 begin
@@ -882,6 +885,7 @@ end
882885
mutable struct curl_forms
883886
option::CURLformoption
884887
value::Ptr{Cchar}
888+
curl_forms() = new()
885889
end
886890

887891
@enum CURLFORMcode::UInt32 begin
@@ -950,6 +954,7 @@ end
950954
mutable struct curl_ssl_backend
951955
id::curl_sslbackend
952956
name::Ptr{Cchar}
957+
curl_ssl_backend() = new()
953958
end
954959

955960
@enum CURLsslset::UInt32 begin
@@ -978,11 +983,13 @@ end
978983
mutable struct curl_certinfo
979984
num_of_certs::Cint
980985
certinfo::Ptr{Ptr{curl_slist}}
986+
curl_certinfo() = new()
981987
end
982988

983989
mutable struct curl_tlssessioninfo
984990
backend::curl_sslbackend
985991
internals::Ptr{Cvoid}
992+
curl_tlssessioninfo() = new()
986993
end
987994

988995
@enum CURLINFO::UInt32 begin
@@ -1154,6 +1161,7 @@ mutable struct curl_version_info_data
11541161
capath::Ptr{Cchar}
11551162
zstd_ver_num::Cuint
11561163
zstd_version::Ptr{Cchar}
1164+
curl_version_info_data() = new()
11571165
end
11581166

11591167
function curl_version_info(arg1)
@@ -1176,6 +1184,7 @@ mutable struct curl_blob
11761184
data::Ptr{Cvoid}
11771185
len::Csize_t
11781186
flags::Cuint
1187+
curl_blob() = new()
11791188
end
11801189

11811190
function curl_easy_init()
@@ -1260,6 +1269,7 @@ mutable struct curl_waitfd
12601269
fd::curl_socket_t
12611270
events::Cshort
12621271
revents::Cshort
1272+
curl_waitfd() = new()
12631273
end
12641274

12651275
function curl_multi_init()
@@ -1438,6 +1448,7 @@ mutable struct curl_easyoption
14381448
id::CURLoption
14391449
type::curl_easytype
14401450
flags::Cuint
1451+
curl_easyoption() = new()
14411452
end
14421453

14431454
function curl_easy_option_by_name(name)
@@ -1479,6 +1490,7 @@ mutable struct __JL_Ctag_48
14791490
user::Ptr{Cchar}
14801491
group::Ptr{Cchar}
14811492
target::Ptr{Cchar}
1493+
__JL_Ctag_48() = new()
14821494
end
14831495

14841496
function Base.getproperty(x::Ptr{__JL_Ctag_48}, f::Symbol)
@@ -1913,7 +1925,7 @@ const CURLINFO_SOCKET = 0x00500000
19131925

19141926
const CURLINFO_OFF_T = 0x00600000
19151927

1916-
const CURLINFO_MASK = Float32(0x0000ffff)
1928+
const CURLINFO_MASK = 0x000fffff
19171929

19181930
const CURLINFO_TYPEMASK = 0x00f00000
19191931

0 commit comments

Comments
 (0)