@img/sharp-libvips-dev-wasm32 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/expat.h +21 -10
- package/include/expat_config.h +11 -5
- package/include/ffi.h +12 -25
- package/include/glib-2.0/gio/gapplication.h +6 -0
- package/include/glib-2.0/gio/giotypes.h +0 -1
- package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
- package/include/glib-2.0/glib/gbitlock.h +31 -0
- package/include/glib-2.0/glib/gmessages.h +8 -0
- package/include/glib-2.0/glib/gslice.h +2 -0
- package/include/glib-2.0/glib/gstrfuncs.h +24 -18
- package/include/glib-2.0/glib/gthread.h +191 -3
- package/include/glib-2.0/glib-unix.h +7 -1
- package/include/glib-2.0/gobject/genums.h +6 -6
- package/include/glib-2.0/gobject/glib-types.h +11 -0
- package/include/glib-2.0/gobject/gsignal.h +16 -6
- package/include/hwy/aligned_allocator.h +171 -6
- package/include/hwy/base.h +1765 -543
- package/include/hwy/cache_control.h +24 -6
- package/include/hwy/detect_compiler_arch.h +23 -2
- package/include/hwy/detect_targets.h +56 -13
- package/include/hwy/foreach_target.h +24 -0
- package/include/hwy/highway.h +20 -3
- package/include/hwy/ops/arm_neon-inl.h +1086 -667
- package/include/hwy/ops/arm_sve-inl.h +1091 -235
- package/include/hwy/ops/emu128-inl.h +271 -196
- package/include/hwy/ops/generic_ops-inl.h +2270 -399
- package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
- package/include/hwy/ops/rvv-inl.h +1043 -311
- package/include/hwy/ops/scalar-inl.h +189 -159
- package/include/hwy/ops/set_macros-inl.h +66 -6
- package/include/hwy/ops/shared-inl.h +175 -56
- package/include/hwy/ops/wasm_128-inl.h +153 -136
- package/include/hwy/ops/x86_128-inl.h +1647 -646
- package/include/hwy/ops/x86_256-inl.h +1003 -370
- package/include/hwy/ops/x86_512-inl.h +948 -353
- package/include/hwy/per_target.h +4 -0
- package/include/hwy/profiler.h +648 -0
- package/include/hwy/robust_statistics.h +2 -2
- package/include/hwy/targets.h +18 -11
- package/include/hwy/timer.h +11 -0
- package/include/resvg.h +15 -3
- package/include/vips/connection.h +9 -3
- package/include/vips/util.h +0 -9
- package/include/vips/version.h +4 -4
- package/include/zconf.h +3 -0
- package/include/zlib.h +3 -3
- package/lib/glib-2.0/include/glibconfig.h +2 -1
- package/lib/libaom.a +0 -0
- package/lib/libcgif.a +0 -0
- package/lib/libexif.a +0 -0
- package/lib/libexpat.a +0 -0
- package/lib/libexpat.la +3 -3
- package/lib/libffi.a +0 -0
- package/lib/libffi.la +2 -2
- package/lib/libgio-2.0.a +0 -0
- package/lib/libglib-2.0.a +0 -0
- package/lib/libgmodule-2.0.a +0 -0
- package/lib/libgobject-2.0.a +0 -0
- package/lib/libgthread-2.0.a +0 -0
- package/lib/libheif.a +0 -0
- package/lib/libhwy.a +0 -0
- package/lib/libimagequant.a +0 -0
- package/lib/libjpeg.a +0 -0
- package/lib/liblcms2.a +0 -0
- package/lib/libresvg.a +0 -0
- package/lib/libsharpyuv.a +0 -0
- package/lib/libspng.a +0 -0
- package/lib/libtiff.a +0 -0
- package/lib/libvips-cpp.a +0 -0
- package/lib/libvips.a +0 -0
- package/lib/libwebp.a +0 -0
- package/lib/libwebpdemux.a +0 -0
- package/lib/libwebpmux.a +0 -0
- package/lib/libz.a +0 -0
- package/lib/pkgconfig/aom.pc +2 -2
- package/lib/pkgconfig/expat.pc +2 -1
- package/lib/pkgconfig/gio-2.0.pc +1 -1
- package/lib/pkgconfig/glib-2.0.pc +1 -1
- package/lib/pkgconfig/gmodule-2.0.pc +1 -1
- package/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
- package/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- package/lib/pkgconfig/gobject-2.0.pc +1 -1
- package/lib/pkgconfig/gthread-2.0.pc +1 -1
- package/lib/pkgconfig/libffi.pc +1 -1
- package/lib/pkgconfig/libhwy.pc +1 -1
- package/lib/pkgconfig/vips-cpp.pc +1 -1
- package/lib/pkgconfig/vips.pc +1 -1
- package/package.json +1 -1
- package/versions.json +9 -9
package/include/expat.h
CHANGED
|
@@ -11,11 +11,14 @@
|
|
|
11
11
|
Copyright (c) 2000-2005 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
|
|
12
12
|
Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
|
|
13
13
|
Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net>
|
|
14
|
-
Copyright (c) 2016-
|
|
14
|
+
Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
|
|
15
15
|
Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
|
|
16
16
|
Copyright (c) 2016 Thomas Beutlich <tc@tbeu.de>
|
|
17
17
|
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
|
|
18
18
|
Copyright (c) 2022 Thijs Schreijer <thijs@thijsschreijer.nl>
|
|
19
|
+
Copyright (c) 2023 Hanno Böck <hanno@gentoo.org>
|
|
20
|
+
Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
|
|
21
|
+
Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
|
|
19
22
|
Licensed under the MIT license:
|
|
20
23
|
|
|
21
24
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -269,7 +272,7 @@ XML_ParserCreate_MM(const XML_Char *encoding,
|
|
|
269
272
|
const XML_Memory_Handling_Suite *memsuite,
|
|
270
273
|
const XML_Char *namespaceSeparator);
|
|
271
274
|
|
|
272
|
-
/* Prepare a parser object to be
|
|
275
|
+
/* Prepare a parser object to be reused. This is particularly
|
|
273
276
|
valuable when memory allocation overhead is disproportionately high,
|
|
274
277
|
such as when a large number of small documnents need to be parsed.
|
|
275
278
|
All handlers are cleared from the parser, except for the
|
|
@@ -951,7 +954,7 @@ XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser);
|
|
|
951
954
|
XMLPARSEAPI(int)
|
|
952
955
|
XML_GetCurrentByteCount(XML_Parser parser);
|
|
953
956
|
|
|
954
|
-
/* If XML_CONTEXT_BYTES is
|
|
957
|
+
/* If XML_CONTEXT_BYTES is >=1, returns the input buffer, sets
|
|
955
958
|
the integer pointed to by offset to the offset within this buffer
|
|
956
959
|
of the current parse position, and sets the integer pointed to by size
|
|
957
960
|
to the size of this buffer (the number of input bytes). Otherwise
|
|
@@ -1025,7 +1028,9 @@ enum XML_FeatureEnum {
|
|
|
1025
1028
|
XML_FEATURE_ATTR_INFO,
|
|
1026
1029
|
/* Added in Expat 2.4.0. */
|
|
1027
1030
|
XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
|
|
1028
|
-
XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT
|
|
1031
|
+
XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT,
|
|
1032
|
+
/* Added in Expat 2.6.0. */
|
|
1033
|
+
XML_FEATURE_GE
|
|
1029
1034
|
/* Additional features must be added to the end of this enum. */
|
|
1030
1035
|
};
|
|
1031
1036
|
|
|
@@ -1038,24 +1043,30 @@ typedef struct {
|
|
|
1038
1043
|
XMLPARSEAPI(const XML_Feature *)
|
|
1039
1044
|
XML_GetFeatureList(void);
|
|
1040
1045
|
|
|
1041
|
-
#
|
|
1042
|
-
/* Added in Expat 2.4.0
|
|
1046
|
+
#if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
|
|
1047
|
+
/* Added in Expat 2.4.0 for XML_DTD defined and
|
|
1048
|
+
* added in Expat 2.6.0 for XML_GE == 1. */
|
|
1043
1049
|
XMLPARSEAPI(XML_Bool)
|
|
1044
1050
|
XML_SetBillionLaughsAttackProtectionMaximumAmplification(
|
|
1045
1051
|
XML_Parser parser, float maximumAmplificationFactor);
|
|
1046
1052
|
|
|
1047
|
-
/* Added in Expat 2.4.0
|
|
1053
|
+
/* Added in Expat 2.4.0 for XML_DTD defined and
|
|
1054
|
+
* added in Expat 2.6.0 for XML_GE == 1. */
|
|
1048
1055
|
XMLPARSEAPI(XML_Bool)
|
|
1049
1056
|
XML_SetBillionLaughsAttackProtectionActivationThreshold(
|
|
1050
1057
|
XML_Parser parser, unsigned long long activationThresholdBytes);
|
|
1051
1058
|
#endif
|
|
1052
1059
|
|
|
1060
|
+
/* Added in Expat 2.6.0. */
|
|
1061
|
+
XMLPARSEAPI(XML_Bool)
|
|
1062
|
+
XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
|
|
1063
|
+
|
|
1053
1064
|
/* Expat follows the semantic versioning convention.
|
|
1054
|
-
See
|
|
1065
|
+
See https://semver.org
|
|
1055
1066
|
*/
|
|
1056
1067
|
#define XML_MAJOR_VERSION 2
|
|
1057
|
-
#define XML_MINOR_VERSION
|
|
1058
|
-
#define XML_MICRO_VERSION
|
|
1068
|
+
#define XML_MINOR_VERSION 6
|
|
1069
|
+
#define XML_MICRO_VERSION 2
|
|
1059
1070
|
|
|
1060
1071
|
#ifdef __cplusplus
|
|
1061
1072
|
}
|
package/include/expat_config.h
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
/* Define to 1 if you have the `arc4random_buf' function. */
|
|
17
17
|
/* #undef HAVE_ARC4RANDOM_BUF */
|
|
18
18
|
|
|
19
|
+
/* define if the compiler supports basic C++11 syntax */
|
|
20
|
+
/* #undef HAVE_CXX11 */
|
|
21
|
+
|
|
19
22
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
20
23
|
#define HAVE_DLFCN_H 1
|
|
21
24
|
|
|
@@ -74,13 +77,13 @@
|
|
|
74
77
|
#define PACKAGE "expat"
|
|
75
78
|
|
|
76
79
|
/* Define to the address where bug reports for this package should be sent. */
|
|
77
|
-
#define PACKAGE_BUGREPORT "
|
|
80
|
+
#define PACKAGE_BUGREPORT "https://github.com/libexpat/libexpat/issues"
|
|
78
81
|
|
|
79
82
|
/* Define to the full name of this package. */
|
|
80
83
|
#define PACKAGE_NAME "expat"
|
|
81
84
|
|
|
82
85
|
/* Define to the full name and version of this package. */
|
|
83
|
-
#define PACKAGE_STRING "expat 2.
|
|
86
|
+
#define PACKAGE_STRING "expat 2.6.2"
|
|
84
87
|
|
|
85
88
|
/* Define to the one symbol short name of this package. */
|
|
86
89
|
#define PACKAGE_TARNAME "expat"
|
|
@@ -89,7 +92,7 @@
|
|
|
89
92
|
#define PACKAGE_URL ""
|
|
90
93
|
|
|
91
94
|
/* Define to the version of this package. */
|
|
92
|
-
#define PACKAGE_VERSION "2.
|
|
95
|
+
#define PACKAGE_VERSION "2.6.2"
|
|
93
96
|
|
|
94
97
|
/* Define to 1 if all of the C90 standard headers exist (not just the ones
|
|
95
98
|
required in a freestanding environment). This macro is provided for
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
#define STDC_HEADERS 1
|
|
98
101
|
|
|
99
102
|
/* Version number of package */
|
|
100
|
-
#define VERSION "2.
|
|
103
|
+
#define VERSION "2.6.2"
|
|
101
104
|
|
|
102
105
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
103
106
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
|
@@ -116,7 +119,7 @@
|
|
|
116
119
|
/* #undef XML_ATTR_INFO */
|
|
117
120
|
|
|
118
121
|
/* Define to specify how much context to retain around the current parse
|
|
119
|
-
point. */
|
|
122
|
+
point, 0 to disable. */
|
|
120
123
|
#define XML_CONTEXT_BYTES 1024
|
|
121
124
|
|
|
122
125
|
/* Define to include code reading entropy from `/dev/urandom'. */
|
|
@@ -125,6 +128,9 @@
|
|
|
125
128
|
/* Define to make parameter entity parsing functionality available. */
|
|
126
129
|
#define XML_DTD 1
|
|
127
130
|
|
|
131
|
+
/* Define as 1/0 to enable/disable support for general entities. */
|
|
132
|
+
#define XML_GE 1
|
|
133
|
+
|
|
128
134
|
/* Define to make XML Namespaces functionality available. */
|
|
129
135
|
#define XML_NS 1
|
|
130
136
|
|
package/include/ffi.h
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* -----------------------------------------------------------------*-C-*-
|
|
2
|
-
libffi 3.4.
|
|
3
|
-
- Copyright (c) 2011, 2014, 2019, 2021, 2022 Anthony Green
|
|
2
|
+
libffi 3.4.6
|
|
3
|
+
- Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024 Anthony Green
|
|
4
4
|
- Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person
|
|
@@ -140,13 +140,11 @@ typedef struct _ffi_type
|
|
|
140
140
|
when using the static version of the library.
|
|
141
141
|
Besides, as a workaround, they can define FFI_BUILDING if they
|
|
142
142
|
*know* they are going to link with the static library. */
|
|
143
|
-
#if defined _MSC_VER
|
|
143
|
+
#if defined _MSC_VER && !defined(FFI_STATIC_BUILD)
|
|
144
144
|
# if defined FFI_BUILDING_DLL /* Building libffi.DLL with msvcc.sh */
|
|
145
145
|
# define FFI_API __declspec(dllexport)
|
|
146
|
-
#
|
|
146
|
+
# else /* Importing libffi.DLL */
|
|
147
147
|
# define FFI_API __declspec(dllimport)
|
|
148
|
-
# else /* Building/linking static library */
|
|
149
|
-
# define FFI_API
|
|
150
148
|
# endif
|
|
151
149
|
#else
|
|
152
150
|
# define FFI_API
|
|
@@ -222,21 +220,12 @@ FFI_EXTERN ffi_type ffi_type_sint64;
|
|
|
222
220
|
FFI_EXTERN ffi_type ffi_type_float;
|
|
223
221
|
FFI_EXTERN ffi_type ffi_type_double;
|
|
224
222
|
FFI_EXTERN ffi_type ffi_type_pointer;
|
|
225
|
-
|
|
226
|
-
#if 1
|
|
227
223
|
FFI_EXTERN ffi_type ffi_type_longdouble;
|
|
228
|
-
#else
|
|
229
|
-
#define ffi_type_longdouble ffi_type_double
|
|
230
|
-
#endif
|
|
231
224
|
|
|
232
225
|
#ifdef FFI_TARGET_HAS_COMPLEX_TYPE
|
|
233
226
|
FFI_EXTERN ffi_type ffi_type_complex_float;
|
|
234
227
|
FFI_EXTERN ffi_type ffi_type_complex_double;
|
|
235
|
-
#if 1
|
|
236
228
|
FFI_EXTERN ffi_type ffi_type_complex_longdouble;
|
|
237
|
-
#else
|
|
238
|
-
#define ffi_type_complex_longdouble ffi_type_complex_double
|
|
239
|
-
#endif
|
|
240
229
|
#endif
|
|
241
230
|
#endif /* LIBFFI_HIDE_BASIC_TYPES */
|
|
242
231
|
|
|
@@ -363,14 +352,6 @@ typedef struct {
|
|
|
363
352
|
FFI_API void *ffi_closure_alloc (size_t size, void **code);
|
|
364
353
|
FFI_API void ffi_closure_free (void *);
|
|
365
354
|
|
|
366
|
-
#if defined(PA_LINUX) || defined(PA_HPUX)
|
|
367
|
-
#define FFI_CLOSURE_PTR(X) ((void *)((unsigned int)(X) | 2))
|
|
368
|
-
#define FFI_RESTORE_PTR(X) ((void *)((unsigned int)(X) & ~3))
|
|
369
|
-
#else
|
|
370
|
-
#define FFI_CLOSURE_PTR(X) (X)
|
|
371
|
-
#define FFI_RESTORE_PTR(X) (X)
|
|
372
|
-
#endif
|
|
373
|
-
|
|
374
355
|
FFI_API ffi_status
|
|
375
356
|
ffi_prep_closure (ffi_closure*,
|
|
376
357
|
ffi_cif *,
|
|
@@ -474,7 +455,7 @@ ffi_prep_java_raw_closure_loc (ffi_java_raw_closure*,
|
|
|
474
455
|
|
|
475
456
|
#endif /* FFI_CLOSURES */
|
|
476
457
|
|
|
477
|
-
#
|
|
458
|
+
#ifdef FFI_GO_CLOSURES
|
|
478
459
|
|
|
479
460
|
typedef struct {
|
|
480
461
|
void *tramp;
|
|
@@ -517,8 +498,14 @@ FFI_API
|
|
|
517
498
|
ffi_status ffi_get_struct_offsets (ffi_abi abi, ffi_type *struct_type,
|
|
518
499
|
size_t *offsets);
|
|
519
500
|
|
|
520
|
-
/*
|
|
501
|
+
/* Convert between closure and function pointers. */
|
|
502
|
+
#if defined(PA_LINUX) || defined(PA_HPUX)
|
|
503
|
+
#define FFI_FN(f) ((void (*)(void))((unsigned int)(f) | 2))
|
|
504
|
+
#define FFI_CL(f) ((void *)((unsigned int)(f) & ~3))
|
|
505
|
+
#else
|
|
521
506
|
#define FFI_FN(f) ((void (*)(void))f)
|
|
507
|
+
#define FFI_CL(f) ((void *)(f))
|
|
508
|
+
#endif
|
|
522
509
|
|
|
523
510
|
/* ---- Definitions shared with assembly code ---------------------------- */
|
|
524
511
|
|
|
@@ -139,6 +139,12 @@ GIO_AVAILABLE_IN_ALL
|
|
|
139
139
|
void g_application_set_application_id (GApplication *application,
|
|
140
140
|
const gchar *application_id);
|
|
141
141
|
|
|
142
|
+
GIO_AVAILABLE_IN_2_80
|
|
143
|
+
const gchar * g_application_get_version (GApplication *application);
|
|
144
|
+
GIO_AVAILABLE_IN_2_80
|
|
145
|
+
void g_application_set_version (GApplication *application,
|
|
146
|
+
const gchar *version);
|
|
147
|
+
|
|
142
148
|
GIO_AVAILABLE_IN_2_34
|
|
143
149
|
GDBusConnection * g_application_get_dbus_connection (GApplication *application);
|
|
144
150
|
GIO_AVAILABLE_IN_2_34
|
|
@@ -82,7 +82,6 @@ typedef struct _GFileInfo GFileInfo;
|
|
|
82
82
|
typedef struct _GFileAttributeMatcher GFileAttributeMatcher;
|
|
83
83
|
typedef struct _GFileAttributeInfo GFileAttributeInfo;
|
|
84
84
|
typedef struct _GFileAttributeInfoList GFileAttributeInfoList;
|
|
85
|
-
typedef struct _GFileDescriptorBased GFileDescriptorBased;
|
|
86
85
|
typedef struct _GFileInputStream GFileInputStream;
|
|
87
86
|
typedef struct _GFileOutputStream GFileOutputStream;
|
|
88
87
|
typedef struct _GFileIOStream GFileIOStream;
|
|
@@ -135,10 +135,12 @@ void g_thread_foreach (GFunc thread_func,
|
|
|
135
135
|
typedef struct
|
|
136
136
|
{
|
|
137
137
|
GMutex *mutex;
|
|
138
|
-
#ifndef
|
|
138
|
+
#ifndef __GI_SCANNER__
|
|
139
|
+
# ifndef G_OS_WIN32
|
|
139
140
|
/* only for ABI compatibility reasons */
|
|
140
141
|
pthread_mutex_t unused;
|
|
141
|
-
#endif
|
|
142
|
+
# endif /* !G_OS_WIN32 */
|
|
143
|
+
#endif /* !__GI_SCANNER__ */
|
|
142
144
|
} GStaticMutex GLIB_DEPRECATED_TYPE_IN_2_32_FOR(GMutex);
|
|
143
145
|
|
|
144
146
|
#define g_static_mutex_lock(mutex) \
|
|
@@ -162,15 +164,17 @@ struct _GStaticRecMutex
|
|
|
162
164
|
GStaticMutex mutex;
|
|
163
165
|
guint depth;
|
|
164
166
|
|
|
167
|
+
#ifndef __GI_SCANNER__
|
|
165
168
|
/* ABI compat only */
|
|
166
169
|
union {
|
|
167
|
-
#ifdef G_OS_WIN32
|
|
170
|
+
# ifdef G_OS_WIN32
|
|
168
171
|
void *owner;
|
|
169
|
-
#else
|
|
172
|
+
# else
|
|
170
173
|
pthread_t owner;
|
|
171
|
-
#endif
|
|
174
|
+
# endif /* !G_OS_WIN32 */
|
|
172
175
|
gdouble dummy;
|
|
173
176
|
} unused;
|
|
177
|
+
#endif /* !__GI_SCANNER__ */
|
|
174
178
|
} GLIB_DEPRECATED_TYPE_IN_2_32_FOR(GRecMutex);
|
|
175
179
|
|
|
176
180
|
#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT, 0, { 0 } } GLIB_DEPRECATED_MACRO_IN_2_32_FOR(g_rec_mutex_init)
|
|
@@ -44,6 +44,12 @@ void g_bit_unlock (volatile gint *address,
|
|
|
44
44
|
GLIB_AVAILABLE_IN_ALL
|
|
45
45
|
void g_pointer_bit_lock (volatile void *address,
|
|
46
46
|
gint lock_bit);
|
|
47
|
+
|
|
48
|
+
GLIB_AVAILABLE_IN_2_80
|
|
49
|
+
void g_pointer_bit_lock_and_get (gpointer address,
|
|
50
|
+
guint lock_bit,
|
|
51
|
+
guintptr *out_ptr);
|
|
52
|
+
|
|
47
53
|
GLIB_AVAILABLE_IN_ALL
|
|
48
54
|
gboolean g_pointer_bit_trylock (volatile void *address,
|
|
49
55
|
gint lock_bit);
|
|
@@ -51,6 +57,19 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
51
57
|
void g_pointer_bit_unlock (volatile void *address,
|
|
52
58
|
gint lock_bit);
|
|
53
59
|
|
|
60
|
+
GLIB_AVAILABLE_IN_2_80
|
|
61
|
+
gpointer g_pointer_bit_lock_mask_ptr (gpointer ptr,
|
|
62
|
+
guint lock_bit,
|
|
63
|
+
gboolean set,
|
|
64
|
+
guintptr preserve_mask,
|
|
65
|
+
gpointer preserve_ptr);
|
|
66
|
+
|
|
67
|
+
GLIB_AVAILABLE_IN_2_80
|
|
68
|
+
void g_pointer_bit_unlock_and_set (void *address,
|
|
69
|
+
guint lock_bit,
|
|
70
|
+
gpointer ptr,
|
|
71
|
+
guintptr preserve_mask);
|
|
72
|
+
|
|
54
73
|
#ifdef __GNUC__
|
|
55
74
|
|
|
56
75
|
#define g_pointer_bit_lock(address, lock_bit) \
|
|
@@ -59,6 +78,12 @@ void g_pointer_bit_unlock (volatile void *address,
|
|
|
59
78
|
g_pointer_bit_lock ((address), (lock_bit)); \
|
|
60
79
|
}))
|
|
61
80
|
|
|
81
|
+
#define g_pointer_bit_lock_and_get(address, lock_bit, out_ptr) \
|
|
82
|
+
(G_GNUC_EXTENSION ({ \
|
|
83
|
+
G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
|
|
84
|
+
g_pointer_bit_lock_and_get ((address), (lock_bit), (out_ptr)); \
|
|
85
|
+
}))
|
|
86
|
+
|
|
62
87
|
#define g_pointer_bit_trylock(address, lock_bit) \
|
|
63
88
|
(G_GNUC_EXTENSION ({ \
|
|
64
89
|
G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
|
|
@@ -71,6 +96,12 @@ void g_pointer_bit_unlock (volatile void *address,
|
|
|
71
96
|
g_pointer_bit_unlock ((address), (lock_bit)); \
|
|
72
97
|
}))
|
|
73
98
|
|
|
99
|
+
#define g_pointer_bit_unlock_and_set(address, lock_bit, ptr, preserve_mask) \
|
|
100
|
+
(G_GNUC_EXTENSION ({ \
|
|
101
|
+
G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
|
|
102
|
+
g_pointer_bit_unlock_and_set ((address), (lock_bit), (ptr), (preserve_mask)); \
|
|
103
|
+
}))
|
|
104
|
+
|
|
74
105
|
#endif
|
|
75
106
|
|
|
76
107
|
G_END_DECLS
|
|
@@ -229,6 +229,11 @@ gchar *g_log_writer_format_fields (GLogLevelFlags log_level,
|
|
|
229
229
|
gsize n_fields,
|
|
230
230
|
gboolean use_color);
|
|
231
231
|
|
|
232
|
+
GLIB_AVAILABLE_IN_2_80
|
|
233
|
+
GLogWriterOutput g_log_writer_syslog (GLogLevelFlags log_level,
|
|
234
|
+
const GLogField *fields,
|
|
235
|
+
gsize n_fields,
|
|
236
|
+
gpointer user_data);
|
|
232
237
|
GLIB_AVAILABLE_IN_2_50
|
|
233
238
|
GLogWriterOutput g_log_writer_journald (GLogLevelFlags log_level,
|
|
234
239
|
const GLogField *fields,
|
|
@@ -547,6 +552,9 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
|
|
|
547
552
|
*
|
|
548
553
|
* Logs a warning if the expression is not true.
|
|
549
554
|
*
|
|
555
|
+
* Unlike g_return_if_fail(), the expression is always evaluated, even if
|
|
556
|
+
* checks and assertions are disabled.
|
|
557
|
+
*
|
|
550
558
|
* Since: 2.16
|
|
551
559
|
*/
|
|
552
560
|
#define g_warn_if_fail(expr) \
|
|
@@ -107,10 +107,12 @@ gint64 g_slice_get_config (GSliceConfig ckey);
|
|
|
107
107
|
GLIB_DEPRECATED_IN_2_34
|
|
108
108
|
gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
|
|
109
109
|
|
|
110
|
+
#ifndef __GI_SCANNER__
|
|
110
111
|
#ifdef G_ENABLE_DEBUG
|
|
111
112
|
GLIB_AVAILABLE_IN_ALL
|
|
112
113
|
void g_slice_debug_tree_statistics (void);
|
|
113
114
|
#endif
|
|
115
|
+
#endif
|
|
114
116
|
|
|
115
117
|
G_END_DECLS
|
|
116
118
|
|
|
@@ -412,8 +412,8 @@ gboolean g_strv_equal (const gchar * const *strv1,
|
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
414
|
* GNumberParserError:
|
|
415
|
-
* @G_NUMBER_PARSER_ERROR_INVALID:
|
|
416
|
-
* @G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS:
|
|
415
|
+
* @G_NUMBER_PARSER_ERROR_INVALID: string was not a valid number
|
|
416
|
+
* @G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS: string was a number, but out of bounds
|
|
417
417
|
*
|
|
418
418
|
* Error codes returned by functions converting a string to a number.
|
|
419
419
|
*
|
|
@@ -456,28 +456,34 @@ gboolean g_ascii_string_to_unsigned (const gchar *str,
|
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* g_set_str: (skip)
|
|
459
|
-
* @str_pointer: (inout) (not optional) (nullable): a pointer to either
|
|
460
|
-
*
|
|
459
|
+
* @str_pointer: (inout) (not optional) (nullable): a pointer to either
|
|
460
|
+
* a string or `NULL`
|
|
461
|
+
* @new_str: (nullable): a string to assign to @str_pointer
|
|
461
462
|
*
|
|
462
|
-
* Updates a pointer to a string to a copy of @new_str
|
|
463
|
-
*
|
|
463
|
+
* Updates a pointer to a string to a copy of @new_str and returns whether the
|
|
464
|
+
* string was changed.
|
|
464
465
|
*
|
|
465
|
-
* @
|
|
466
|
+
* If @new_str matches the previous string, this function is a no-op. If
|
|
467
|
+
* @new_str is different, a copy of it will be assigned to @str_pointer and
|
|
468
|
+
* the previous string pointed to by @str_pointer will be freed with
|
|
469
|
+
* [func@GLib.free].
|
|
470
|
+
*
|
|
471
|
+
* @str_pointer must not be `NULL`, but can point to a `NULL` value.
|
|
466
472
|
*
|
|
467
473
|
* One convenient usage of this function is in implementing property settings:
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
472
|
-
*
|
|
473
|
-
*
|
|
474
|
+
* ```C
|
|
475
|
+
* void
|
|
476
|
+
* foo_set_bar (Foo *foo,
|
|
477
|
+
* const char *new_bar)
|
|
478
|
+
* {
|
|
479
|
+
* g_return_if_fail (IS_FOO (foo));
|
|
474
480
|
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
481
|
+
* if (g_set_str (&foo->bar, new_bar))
|
|
482
|
+
* g_object_notify (foo, "bar");
|
|
483
|
+
* }
|
|
484
|
+
* ```
|
|
479
485
|
*
|
|
480
|
-
* Returns:
|
|
486
|
+
* Returns: true if the value of @str_pointer changed, false otherwise
|
|
481
487
|
*
|
|
482
488
|
* Since: 2.76
|
|
483
489
|
*/
|