@revizly/sharp-libvips-dev 1.0.27 → 1.0.29

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.
Files changed (101) hide show
  1. package/include/archive.h +2 -2
  2. package/include/archive_entry.h +1 -1
  3. package/include/expat.h +1 -1
  4. package/include/expat_config.h +3 -3
  5. package/include/expat_external.h +1 -1
  6. package/include/freetype2/freetype/config/ftconfig.h +1 -1
  7. package/include/freetype2/freetype/config/ftheader.h +1 -1
  8. package/include/freetype2/freetype/config/ftoption.h +8 -2
  9. package/include/freetype2/freetype/config/ftstdlib.h +1 -1
  10. package/include/freetype2/freetype/config/integer-types.h +1 -1
  11. package/include/freetype2/freetype/config/mac-support.h +3 -1
  12. package/include/freetype2/freetype/config/public-macros.h +1 -1
  13. package/include/freetype2/freetype/freetype.h +9 -18
  14. package/include/freetype2/freetype/ftadvanc.h +1 -1
  15. package/include/freetype2/freetype/ftbbox.h +1 -1
  16. package/include/freetype2/freetype/ftbdf.h +10 -4
  17. package/include/freetype2/freetype/ftbitmap.h +1 -1
  18. package/include/freetype2/freetype/ftbzip2.h +1 -1
  19. package/include/freetype2/freetype/ftcache.h +1 -1
  20. package/include/freetype2/freetype/ftcid.h +1 -1
  21. package/include/freetype2/freetype/ftcolor.h +1 -1
  22. package/include/freetype2/freetype/ftdriver.h +1 -1
  23. package/include/freetype2/freetype/fterrdef.h +1 -1
  24. package/include/freetype2/freetype/fterrors.h +1 -1
  25. package/include/freetype2/freetype/ftfntfmt.h +1 -1
  26. package/include/freetype2/freetype/ftgasp.h +1 -1
  27. package/include/freetype2/freetype/ftglyph.h +1 -1
  28. package/include/freetype2/freetype/ftgxval.h +1 -1
  29. package/include/freetype2/freetype/ftgzip.h +1 -1
  30. package/include/freetype2/freetype/ftimage.h +2 -2
  31. package/include/freetype2/freetype/ftincrem.h +1 -1
  32. package/include/freetype2/freetype/ftlcdfil.h +3 -9
  33. package/include/freetype2/freetype/ftlist.h +1 -1
  34. package/include/freetype2/freetype/ftlogging.h +1 -1
  35. package/include/freetype2/freetype/ftlzw.h +1 -1
  36. package/include/freetype2/freetype/ftmac.h +1 -1
  37. package/include/freetype2/freetype/ftmm.h +1 -1
  38. package/include/freetype2/freetype/ftmodapi.h +1 -1
  39. package/include/freetype2/freetype/ftmoderr.h +1 -1
  40. package/include/freetype2/freetype/ftotval.h +1 -1
  41. package/include/freetype2/freetype/ftoutln.h +1 -1
  42. package/include/freetype2/freetype/ftparams.h +3 -6
  43. package/include/freetype2/freetype/ftpfr.h +1 -1
  44. package/include/freetype2/freetype/ftrender.h +1 -1
  45. package/include/freetype2/freetype/ftsizes.h +1 -1
  46. package/include/freetype2/freetype/ftsnames.h +1 -1
  47. package/include/freetype2/freetype/ftstroke.h +1 -1
  48. package/include/freetype2/freetype/ftsynth.h +1 -1
  49. package/include/freetype2/freetype/ftsystem.h +1 -1
  50. package/include/freetype2/freetype/fttrigon.h +1 -1
  51. package/include/freetype2/freetype/fttypes.h +1 -1
  52. package/include/freetype2/freetype/ftwinfnt.h +1 -1
  53. package/include/freetype2/freetype/otsvg.h +1 -1
  54. package/include/freetype2/freetype/t1tables.h +3 -3
  55. package/include/freetype2/freetype/ttnameid.h +2 -2
  56. package/include/freetype2/freetype/tttables.h +1 -1
  57. package/include/freetype2/freetype/tttags.h +1 -1
  58. package/include/freetype2/ft2build.h +1 -1
  59. package/include/glib-2.0/gio/gfileinfo.h +5 -0
  60. package/include/glib-2.0/gio/gio-autocleanups.h +0 -1
  61. package/include/glib-2.0/gio/gio.h +2 -0
  62. package/include/glib-2.0/gio/gioenums.h +21 -0
  63. package/include/glib-2.0/gio/gioenumtypes.h +2 -0
  64. package/include/glib-2.0/gio/giptosmessage.h +46 -0
  65. package/include/glib-2.0/gio/gipv6tclassmessage.h +46 -0
  66. package/include/glib-2.0/gio/gsocketcontrolmessage.h +2 -0
  67. package/include/glib-2.0/glib/gatomic.h +26 -2
  68. package/include/glib-2.0/glib/gmain.h +4 -0
  69. package/include/glib-2.0/glib/gmarkup.h +7 -0
  70. package/include/glib-2.0/glib/gslice.h +12 -4
  71. package/include/glib-2.0/glib/gtestutils.h +2 -0
  72. package/include/glib-2.0/glib/gtimer.h +1 -0
  73. package/include/harfbuzz/hb-buffer.h +11 -3
  74. package/include/harfbuzz/hb-cplusplus.hh +31 -27
  75. package/include/harfbuzz/hb-features.h +21 -0
  76. package/include/harfbuzz/hb-ot-color.h +14 -0
  77. package/include/harfbuzz/hb-ot-shape.h +15 -0
  78. package/include/harfbuzz/hb-paint.h +19 -18
  79. package/include/harfbuzz/hb-version.h +4 -4
  80. package/include/libde265/de265-version.h +3 -3
  81. package/include/libde265/de265.h +41 -40
  82. package/include/libpng16/png.h +7 -7
  83. package/include/libpng16/pngconf.h +1 -1
  84. package/include/libpng16/pnglibconf.h +1 -1
  85. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  86. package/include/libxml2/libxml/catalog.h +2 -0
  87. package/include/libxml2/libxml/relaxng.h +4 -0
  88. package/include/libxml2/libxml/xmlversion.h +4 -4
  89. package/include/pango-1.0/pango/pango-features.h +2 -2
  90. package/include/pango-1.0/pango/pango-script.h +2 -0
  91. package/include/png.h +7 -7
  92. package/include/pngconf.h +1 -1
  93. package/include/pnglibconf.h +1 -1
  94. package/include/vips/colour.h +2 -2
  95. package/include/vips/memory.h +1 -1
  96. package/include/vips/version.h +4 -4
  97. package/package.json +1 -1
  98. package/versions.json +13 -13
  99. package/include/harfbuzz/hb-subset-serialize.h +0 -83
  100. package/include/harfbuzz/hb-subset.h +0 -297
  101. package/include/libde265/en265.h +0 -218
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This is _not_ used to retrieve glyph names!
9
9
  *
10
- * Copyright (C) 1996-2025 by
10
+ * Copyright (C) 1996-2026 by
11
11
  * David Turner, Robert Wilhelm, and Werner Lemberg.
12
12
  *
13
13
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * FreeType path stroker (specification).
6
6
  *
7
- * Copyright (C) 2002-2025 by
7
+ * Copyright (C) 2002-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -5,7 +5,7 @@
5
5
  * FreeType synthesizing code for emboldening and slanting
6
6
  * (specification).
7
7
  *
8
- * Copyright (C) 2000-2025 by
8
+ * Copyright (C) 2000-2026 by
9
9
  * David Turner, Robert Wilhelm, and Werner Lemberg.
10
10
  *
11
11
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * FreeType low-level system interface definition (specification).
6
6
  *
7
- * Copyright (C) 1996-2025 by
7
+ * Copyright (C) 1996-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * FreeType trigonometric functions (specification).
6
6
  *
7
- * Copyright (C) 2001-2025 by
7
+ * Copyright (C) 2001-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * FreeType simple types definitions (specification only).
6
6
  *
7
- * Copyright (C) 1996-2025 by
7
+ * Copyright (C) 1996-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * FreeType API for accessing Windows fnt-specific data.
6
6
  *
7
- * Copyright (C) 2003-2025 by
7
+ * Copyright (C) 2003-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Interface for OT-SVG support related things (specification).
6
6
  *
7
- * Copyright (C) 2022-2025 by
7
+ * Copyright (C) 2022-2026 by
8
8
  * David Turner, Robert Wilhelm, Werner Lemberg, and Moazin Khatti.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -5,7 +5,7 @@
5
5
  * Basic Type 1/Type 2 tables definitions and interface (specification
6
6
  * only).
7
7
  *
8
- * Copyright (C) 1996-2025 by
8
+ * Copyright (C) 1996-2026 by
9
9
  * David Turner, Robert Wilhelm, and Werner Lemberg.
10
10
  *
11
11
  * This file is part of the FreeType project, and may only be used,
@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
92
92
  FT_String* full_name;
93
93
  FT_String* family_name;
94
94
  FT_String* weight;
95
- FT_Long italic_angle;
95
+ FT_Fixed italic_angle;
96
96
  FT_Bool is_fixed_pitch;
97
97
  FT_Short underline_position;
98
98
  FT_UShort underline_thickness;
@@ -645,7 +645,7 @@ FT_BEGIN_HEADER
645
645
  PS_DICT_UNDERLINE_POSITION, /* FT_Short */
646
646
  PS_DICT_UNDERLINE_THICKNESS, /* FT_UShort */
647
647
  PS_DICT_FS_TYPE, /* FT_UShort */
648
- PS_DICT_ITALIC_ANGLE, /* FT_Long */
648
+ PS_DICT_ITALIC_ANGLE, /* FT_Fixed */
649
649
 
650
650
  PS_DICT_MAX = PS_DICT_ITALIC_ANGLE
651
651
 
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * TrueType name ID definitions (specification only).
6
6
  *
7
- * Copyright (C) 1996-2025 by
7
+ * Copyright (C) 1996-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -169,7 +169,7 @@ FT_BEGIN_HEADER
169
169
  #define TT_MAC_ID_LAOTIAN 22
170
170
  #define TT_MAC_ID_GEORGIAN 23
171
171
  #define TT_MAC_ID_ARMENIAN 24
172
- #define TT_MAC_ID_MALDIVIAN 25
172
+ #define TT_MAC_ID_MALDIVIAN 25 /* TrueType version 1.66 */
173
173
  #define TT_MAC_ID_SIMPLIFIED_CHINESE 25
174
174
  #define TT_MAC_ID_TIBETAN 26
175
175
  #define TT_MAC_ID_MONGOLIAN 27
@@ -5,7 +5,7 @@
5
5
  * Basic SFNT/TrueType tables definitions and interface
6
6
  * (specification only).
7
7
  *
8
- * Copyright (C) 1996-2025 by
8
+ * Copyright (C) 1996-2026 by
9
9
  * David Turner, Robert Wilhelm, and Werner Lemberg.
10
10
  *
11
11
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Tags for TrueType and OpenType tables (specification only).
6
6
  *
7
- * Copyright (C) 1996-2025 by
7
+ * Copyright (C) 1996-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * FreeType 2 build and setup macros.
6
6
  *
7
- * Copyright (C) 1996-2025 by
7
+ * Copyright (C) 1996-2026 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -67,6 +67,11 @@ typedef struct _GFileInfoClass GFileInfoClass;
67
67
  *
68
68
  * A key in the "standard" namespace for checking if a file is a backup file.
69
69
  *
70
+ * The exact semantics of what constitutes a backup file are backend-specific.
71
+ * For local files, a file is considered a backup if its name ends with `~`
72
+ * and it is a regular file. This follows the POSIX convention used by text
73
+ * editors such as Emacs.
74
+ *
70
75
  * Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
71
76
  **/
72
77
  #define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup" /* boolean */
@@ -129,7 +129,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketAddress, g_object_unref)
129
129
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketClient, g_object_unref)
130
130
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketConnectable, g_object_unref)
131
131
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketConnection, g_object_unref)
132
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketControlMessage, g_object_unref)
133
132
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocket, g_object_unref)
134
133
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketListener, g_object_unref)
135
134
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketService, g_object_unref)
@@ -102,6 +102,8 @@
102
102
  #include <gio/giomodule.h>
103
103
  #include <gio/gioscheduler.h>
104
104
  #include <gio/giostream.h>
105
+ #include <gio/giptosmessage.h>
106
+ #include <gio/gipv6tclassmessage.h>
105
107
  #include <gio/glistmodel.h>
106
108
  #include <gio/gliststore.h>
107
109
  #include <gio/gloadableicon.h>
@@ -2167,6 +2167,27 @@ typedef enum {
2167
2167
  G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL = 255
2168
2168
  } GMemoryMonitorWarningLevel;
2169
2169
 
2170
+ /**
2171
+ * GEcnCodePoint:
2172
+ * @G_ECN_NO_ECN: Not ECN-capable transport
2173
+ * @G_ECN_ECT_1: ECN Capable Transport(1)
2174
+ * @G_ECN_ECT_0: ECN Capable Transport(0)
2175
+ * @G_ECN_ECT_CE: Congestion Experienced
2176
+ *
2177
+ * Possible values of Explicit Congestion Notification code points.
2178
+ *
2179
+ * These appear in `TOS` (IPv4) or `TCLASS` (IPv6) packet headers and
2180
+ * are described in [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
2181
+ *
2182
+ * Since: 2.88
2183
+ */
2184
+ typedef enum {
2185
+ G_ECN_NO_ECN = 0x0,
2186
+ G_ECN_ECT_1 = 0x1,
2187
+ G_ECN_ECT_0 = 0x2,
2188
+ G_ECN_ECT_CE = 0x3
2189
+ } GEcnCodePoint;
2190
+
2170
2191
  G_END_DECLS
2171
2192
 
2172
2193
  #endif /* __GIO_ENUMS_H__ */
@@ -191,6 +191,8 @@ GIO_AVAILABLE_IN_ALL GType g_pollable_return_get_type (void) G_GNUC_CONST;
191
191
  #define G_TYPE_POLLABLE_RETURN (g_pollable_return_get_type ())
192
192
  GIO_AVAILABLE_IN_ALL GType g_memory_monitor_warning_level_get_type (void) G_GNUC_CONST;
193
193
  #define G_TYPE_MEMORY_MONITOR_WARNING_LEVEL (g_memory_monitor_warning_level_get_type ())
194
+ GIO_AVAILABLE_IN_ALL GType g_ecn_code_point_get_type (void) G_GNUC_CONST;
195
+ #define G_TYPE_ECN_CODE_POINT (g_ecn_code_point_get_type ())
194
196
 
195
197
  /* enumerations from "gresolver.h" */
196
198
  GIO_AVAILABLE_IN_ALL GType g_resolver_name_lookup_flags_get_type (void) G_GNUC_CONST;
@@ -0,0 +1,46 @@
1
+ /* GIO - GLib Input, Output and Streaming Library
2
+ *
3
+ * Copyright © 2025 Collabora Ltd.
4
+ *
5
+ * SPDX-License-Identifier: LGPL-2.1-or-later
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2.1 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General
18
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19
+ *
20
+ * Authors: Jakub Adam <jakub.adam@collabora.com>
21
+ */
22
+
23
+ #ifndef __G_IP_TOS_MESSAGE_H__
24
+ #define __G_IP_TOS_MESSAGE_H__
25
+
26
+ #include <gio/gsocketcontrolmessage.h>
27
+
28
+ G_BEGIN_DECLS
29
+
30
+ #define G_TYPE_IP_TOS_MESSAGE (g_ip_tos_message_get_type ())
31
+
32
+ GIO_AVAILABLE_IN_2_88
33
+ G_DECLARE_FINAL_TYPE (GIPTosMessage, g_ip_tos_message, G, IP_TOS_MESSAGE, GSocketControlMessage)
34
+
35
+ GIO_AVAILABLE_IN_2_88
36
+ GSocketControlMessage *g_ip_tos_message_new (guint8 dscp, GEcnCodePoint ecn);
37
+
38
+ GIO_AVAILABLE_IN_2_88
39
+ guint8 g_ip_tos_message_get_dscp (GIPTosMessage *message);
40
+
41
+ GIO_AVAILABLE_IN_2_88
42
+ GEcnCodePoint g_ip_tos_message_get_ecn (GIPTosMessage *message);
43
+
44
+ G_END_DECLS
45
+
46
+ #endif /* __G_IP_TOS_MESSAGE_H__ */
@@ -0,0 +1,46 @@
1
+ /* GIO - GLib Input, Output and Streaming Library
2
+ *
3
+ * Copyright © 2025 Collabora Ltd.
4
+ *
5
+ * SPDX-License-Identifier: LGPL-2.1-or-later
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2.1 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General
18
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19
+ *
20
+ * Authors: Jakub Adam <jakub.adam@collabora.com>
21
+ */
22
+
23
+ #ifndef __G_IPV6_TCLASS_MESSAGE_H__
24
+ #define __G_IPV6_TCLASS_MESSAGE_H__
25
+
26
+ #include <gio/gsocketcontrolmessage.h>
27
+
28
+ G_BEGIN_DECLS
29
+
30
+ #define G_TYPE_IPV6_TCLASS_MESSAGE (g_ipv6_tclass_message_get_type ())
31
+
32
+ GIO_AVAILABLE_IN_2_88
33
+ G_DECLARE_FINAL_TYPE (GIPv6TclassMessage, g_ipv6_tclass_message, G, IPV6_TCLASS_MESSAGE, GSocketControlMessage)
34
+
35
+ GIO_AVAILABLE_IN_2_88
36
+ GSocketControlMessage *g_ipv6_tclass_message_new (guint8 dscp, GEcnCodePoint ecn);
37
+
38
+ GIO_AVAILABLE_IN_2_88
39
+ guint8 g_ipv6_tclass_message_get_dscp (GIPv6TclassMessage *message);
40
+
41
+ GIO_AVAILABLE_IN_2_88
42
+ GEcnCodePoint g_ipv6_tclass_message_get_ecn (GIPv6TclassMessage *message);
43
+
44
+ G_END_DECLS
45
+
46
+ #endif /* __G_IPV6_TCLASS_MESSAGE_H__ */
@@ -49,6 +49,8 @@ G_BEGIN_DECLS
49
49
  typedef struct _GSocketControlMessagePrivate GSocketControlMessagePrivate;
50
50
  typedef struct _GSocketControlMessageClass GSocketControlMessageClass;
51
51
 
52
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (GSocketControlMessage, g_object_unref)
53
+
52
54
  /**
53
55
  * GSocketControlMessageClass:
54
56
  * @get_size: gets the size of the message.
@@ -350,6 +350,14 @@ G_END_DECLS
350
350
  __asm__ __volatile__ ("" : : : "memory"); \
351
351
  gaig_result; \
352
352
  }))
353
+ #if defined(_GLIB_GCC_HAVE_SYNC_SWAP)
354
+ #define g_atomic_int_set(atomic, newval) \
355
+ (G_GNUC_EXTENSION ({ \
356
+ G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
357
+ (void) (0 ? *(atomic) ^ (newval) : 1); \
358
+ (void) __sync_swap ((atomic), (newval)); \
359
+ }))
360
+ #else /* !_GLIB_GCC_HAVE_SYNC_SWAP */
353
361
  #define g_atomic_int_set(atomic, newval) \
354
362
  (G_GNUC_EXTENSION ({ \
355
363
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
@@ -357,7 +365,10 @@ G_END_DECLS
357
365
  __sync_synchronize (); \
358
366
  __asm__ __volatile__ ("" : : : "memory"); \
359
367
  *(atomic) = (newval); \
368
+ __asm__ __volatile__ ("" : : : "memory"); \
369
+ __sync_synchronize (); \
360
370
  }))
371
+ #endif /* !_GLIB_GCC_HAVE_SYNC_SWAP */
361
372
  #define g_atomic_pointer_get(atomic) \
362
373
  (G_GNUC_EXTENSION ({ \
363
374
  gpointer gapg_result; \
@@ -367,6 +378,14 @@ G_END_DECLS
367
378
  __asm__ __volatile__ ("" : : : "memory"); \
368
379
  gapg_result; \
369
380
  }))
381
+ #if defined(_GLIB_GCC_HAVE_SYNC_SWAP)
382
+ #define g_atomic_pointer_set(atomic, newval) \
383
+ (G_GNUC_EXTENSION ({ \
384
+ G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
385
+ (void) (0 ? (gpointer) *(atomic) : NULL); \
386
+ (void) __sync_swap ((atomic), (newval)); \
387
+ }))
388
+ #else /* ! _GLIB_GCC_HAVE_SYNC_SWAP */
370
389
  #if defined(glib_typeof)
371
390
  #define g_atomic_pointer_set(atomic, newval) \
372
391
  (G_GNUC_EXTENSION ({ \
@@ -375,8 +394,10 @@ G_END_DECLS
375
394
  __sync_synchronize (); \
376
395
  __asm__ __volatile__ ("" : : : "memory"); \
377
396
  *(atomic) = (glib_typeof (*(atomic))) (guintptr) (newval); \
397
+ __asm__ __volatile__ ("" : : : "memory"); \
398
+ __sync_synchronize (); \
378
399
  }))
379
- #else /* if !(defined(glib_typeof) */
400
+ #else /* ! glib_typeof */
380
401
  #define g_atomic_pointer_set(atomic, newval) \
381
402
  (G_GNUC_EXTENSION ({ \
382
403
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
@@ -384,8 +405,11 @@ G_END_DECLS
384
405
  __sync_synchronize (); \
385
406
  __asm__ __volatile__ ("" : : : "memory"); \
386
407
  *(atomic) = (gpointer) (guintptr) (newval); \
408
+ __asm__ __volatile__ ("" : : : "memory"); \
409
+ __sync_synchronize (); \
387
410
  }))
388
- #endif /* if defined(glib_typeof) */
411
+ #endif /* ! glib_typeof */
412
+ #endif /* ! _GLIB_GCC_HAVE_SYNC_SWAP */
389
413
 
390
414
  #define g_atomic_int_inc(atomic) \
391
415
  (G_GNUC_EXTENSION ({ \
@@ -28,6 +28,8 @@
28
28
  #include <glib/gslist.h>
29
29
  #include <glib/gthread.h>
30
30
 
31
+ #include <stdint.h>
32
+
31
33
  G_BEGIN_DECLS
32
34
 
33
35
  typedef enum /*< flags >*/
@@ -830,6 +832,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
830
832
 
831
833
  GLIB_AVAILABLE_IN_ALL
832
834
  gint64 g_get_monotonic_time (void);
835
+ GLIB_AVAILABLE_IN_2_88
836
+ uint64_t g_get_monotonic_time_ns (void);
833
837
  GLIB_AVAILABLE_IN_ALL
834
838
  gint64 g_get_real_time (void);
835
839
 
@@ -229,6 +229,13 @@ void g_markup_parse_context_get_position (GMarkupParseContext *c
229
229
  gint *char_number);
230
230
  GLIB_AVAILABLE_IN_2_88
231
231
  gsize g_markup_parse_context_get_offset (GMarkupParseContext *context);
232
+
233
+ GLIB_AVAILABLE_IN_2_88
234
+ void g_markup_parse_context_get_tag_start (GMarkupParseContext *context,
235
+ gsize *line_number,
236
+ gsize *char_number,
237
+ gsize *offset);
238
+
232
239
  GLIB_AVAILABLE_IN_ALL
233
240
  gpointer g_markup_parse_context_get_user_data (GMarkupParseContext *context);
234
241
 
@@ -45,21 +45,29 @@ GLIB_AVAILABLE_IN_ALL
45
45
  void g_slice_free_chain_with_offset (gsize block_size,
46
46
  gpointer mem_chain,
47
47
  gsize next_offset);
48
- #define g_slice_new(type) ((type*) g_slice_alloc (sizeof (type)))
48
+
49
+ #ifndef __GI_SCANNER__
50
+ /* Private helper to give the allocation size for a struct — we want to
51
+ * guarantee non-empty allocations, so it returns a minimum of 1B. This is
52
+ * necessary because some compilers do allow empty (zero size) structs. */
53
+ #define g_slice_alloc_size(type) (sizeof (type) > 0 ? sizeof (type) : 1)
54
+ #endif
55
+
56
+ #define g_slice_new(type) ((type*) g_slice_alloc (g_slice_alloc_size (type)))
49
57
 
50
58
  /* Allow the compiler to inline memset(). Since the size is a constant, this
51
59
  * can significantly improve performance. */
52
60
  #if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
53
61
  # define g_slice_new0(type) \
54
62
  (type *) (G_GNUC_EXTENSION ({ \
55
- gsize __s = sizeof (type); \
63
+ gsize __s = g_slice_alloc_size (type); \
56
64
  gpointer __p; \
57
65
  __p = g_slice_alloc (__s); \
58
66
  memset (__p, 0, __s); \
59
67
  __p; \
60
68
  }))
61
69
  #else
62
- # define g_slice_new0(type) ((type*) g_slice_alloc0 (sizeof (type)))
70
+ # define g_slice_new0(type) ((type*) g_slice_alloc0 (g_slice_alloc_size (type)))
63
71
  #endif
64
72
 
65
73
  /* MemoryBlockType *
@@ -76,7 +84,7 @@ void g_slice_free_chain_with_offset (gsize block_size,
76
84
 
77
85
  /* we go through extra hoops to ensure type safety */
78
86
  #define g_slice_dup(type, mem) \
79
- (1 ? (type*) g_slice_copy (sizeof (type), (mem)) \
87
+ (1 ? (type*) g_slice_copy (g_slice_alloc_size (type), (mem)) \
80
88
  : ((void) ((type*) 0 == (mem)), (type*) 0))
81
89
  #define g_slice_free(type, mem) \
82
90
  G_STMT_START { \
@@ -556,6 +556,8 @@ void g_test_trap_subprocess_with_envp (const char *test_path,
556
556
 
557
557
  GLIB_AVAILABLE_IN_ALL
558
558
  gboolean g_test_trap_has_passed (void);
559
+ GLIB_AVAILABLE_IN_2_88
560
+ gboolean g_test_trap_has_skipped (void);
559
561
  GLIB_AVAILABLE_IN_ALL
560
562
  gboolean g_test_trap_reached_timeout (void);
561
563
  #define g_test_trap_assert_passed() g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 0, 0)
@@ -42,6 +42,7 @@ G_BEGIN_DECLS
42
42
  typedef struct _GTimer GTimer;
43
43
 
44
44
  #define G_USEC_PER_SEC 1000000
45
+ #define G_NSEC_PER_SEC G_GUINT64_CONSTANT(1000000000) GLIB_AVAILABLE_MACRO_IN_2_88
45
46
 
46
47
  GLIB_AVAILABLE_IN_ALL
47
48
  GTimer* g_timer_new (void);
@@ -495,7 +495,7 @@ typedef enum {
495
495
  (1u << HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES))))
496
496
 
497
497
  /**
498
- * HB_BUFFER_CLUSTER_LEVEL_IS_CHARACTERS
498
+ * HB_BUFFER_CLUSTER_LEVEL_IS_CHARACTERS:
499
499
  * @level: #hb_buffer_cluster_level_t to test
500
500
  *
501
501
  * Tests whether a cluster level does not group cluster values by graphemes.
@@ -505,7 +505,7 @@ typedef enum {
505
505
  */
506
506
  #define HB_BUFFER_CLUSTER_LEVEL_IS_CHARACTERS(level) \
507
507
  ((bool) ((1u << (unsigned) (level)) & \
508
- ((1u << HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARCATERS) | \
508
+ ((1u << HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS) | \
509
509
  (1u << HB_BUFFER_CLUSTER_LEVEL_CHARACTERS))))
510
510
 
511
511
  HB_EXTERN void
@@ -672,7 +672,12 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
672
672
  * @HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS: serialize glyph extents.
673
673
  * @HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS: serialize glyph flags. Since: 1.5.0
674
674
  * @HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES: do not serialize glyph advances,
675
- * glyph offsets will reflect absolute glyph positions. Since: 1.8.0
675
+ * glyph offsets will reflect absolute glyph positions. Since: 1.8.0.
676
+ * Note: when this flag is used with a partial range of the buffer (i.e.
677
+ * @start is not 0), calculating the absolute positions has a cost
678
+ * proportional to @start. If the buffer is serialized in many small
679
+ * chunks, this can lead to quadratic behavior. It is recommended to
680
+ * use a larger @buf_size to minimize this cost.
676
681
  * @HB_BUFFER_SERIALIZE_FLAG_DEFINED: All currently defined flags. Since: 4.4.0
677
682
  *
678
683
  * Flags that control what glyph information are serialized in hb_buffer_serialize_glyphs().
@@ -865,6 +870,9 @@ hb_buffer_set_message_func (hb_buffer_t *buffer,
865
870
  hb_buffer_message_func_t func,
866
871
  void *user_data, hb_destroy_func_t destroy);
867
872
 
873
+ HB_EXTERN void
874
+ hb_buffer_changed (hb_buffer_t *buffer);
875
+
868
876
 
869
877
  HB_END_DECLS
870
878
 
@@ -138,52 +138,56 @@ struct vtable_t
138
138
  static constexpr auto get_user_data = _get_user_data;
139
139
  };
140
140
 
141
- #define HB_DEFINE_VTABLE(name) \
141
+ #define HB_DEFINE_VTABLE(name, empty) \
142
142
  template<> \
143
143
  struct vtable<hb_##name##_t> \
144
144
  : vtable_t<hb_##name##_t, \
145
- &hb_##name##_get_empty, \
145
+ empty, \
146
146
  &hb_##name##_reference, \
147
147
  &hb_##name##_destroy, \
148
148
  &hb_##name##_set_user_data, \
149
149
  &hb_##name##_get_user_data> {}
150
150
 
151
- HB_DEFINE_VTABLE (buffer);
152
- HB_DEFINE_VTABLE (blob);
153
- HB_DEFINE_VTABLE (face);
154
- HB_DEFINE_VTABLE (font);
155
- HB_DEFINE_VTABLE (font_funcs);
156
- HB_DEFINE_VTABLE (map);
157
- HB_DEFINE_VTABLE (set);
158
- HB_DEFINE_VTABLE (shape_plan);
159
- HB_DEFINE_VTABLE (unicode_funcs);
160
- HB_DEFINE_VTABLE (draw_funcs);
161
- HB_DEFINE_VTABLE (paint_funcs);
162
-
163
- #undef HB_DEFINE_VTABLE
151
+ HB_DEFINE_VTABLE (buffer, &hb_buffer_get_empty);
152
+ HB_DEFINE_VTABLE (blob, &hb_blob_get_empty);
153
+ HB_DEFINE_VTABLE (face, &hb_face_get_empty);
154
+ HB_DEFINE_VTABLE (font, &hb_font_get_empty);
155
+ HB_DEFINE_VTABLE (font_funcs, &hb_font_funcs_get_empty);
156
+ HB_DEFINE_VTABLE (map, &hb_map_get_empty);
157
+ HB_DEFINE_VTABLE (set, &hb_set_get_empty);
158
+ HB_DEFINE_VTABLE (shape_plan, &hb_shape_plan_get_empty);
159
+ HB_DEFINE_VTABLE (unicode_funcs, &hb_unicode_funcs_get_empty);
160
+ HB_DEFINE_VTABLE (draw_funcs, &hb_draw_funcs_get_empty);
161
+ HB_DEFINE_VTABLE (paint_funcs, &hb_paint_funcs_get_empty);
164
162
 
165
163
 
166
164
  #ifdef HB_SUBSET_H
167
165
 
168
- #define HB_DEFINE_VTABLE(name) \
169
- template<> \
170
- struct vtable<hb_##name##_t> \
171
- : vtable_t<hb_##name##_t, \
172
- nullptr, \
173
- &hb_##name##_reference, \
174
- &hb_##name##_destroy, \
175
- &hb_##name##_set_user_data, \
176
- &hb_##name##_get_user_data> {}
166
+ HB_DEFINE_VTABLE (subset_input, nullptr);
167
+ HB_DEFINE_VTABLE (subset_plan, nullptr);
177
168
 
169
+ #endif
178
170
 
179
- HB_DEFINE_VTABLE (subset_input);
180
- HB_DEFINE_VTABLE (subset_plan);
181
171
 
182
- #undef HB_DEFINE_VTABLE
172
+ #ifdef HB_RASTER_H
173
+
174
+ HB_DEFINE_VTABLE (raster_image, nullptr);
175
+ HB_DEFINE_VTABLE (raster_draw, nullptr);
176
+ HB_DEFINE_VTABLE (raster_paint, nullptr);
183
177
 
184
178
  #endif
185
179
 
186
180
 
181
+ #ifdef HB_VECTOR_H
182
+
183
+ HB_DEFINE_VTABLE (vector_draw, nullptr);
184
+ HB_DEFINE_VTABLE (vector_paint, nullptr);
185
+
186
+ #endif
187
+
188
+ #undef HB_DEFINE_VTABLE
189
+
190
+
187
191
  } // namespace hb
188
192
 
189
193
  /* Workaround for GCC < 7, see:
@@ -99,6 +99,20 @@ HB_BEGIN_DECLS
99
99
  */
100
100
  #undef HB_HAS_ICU
101
101
 
102
+ /**
103
+ * HB_HAS_RASTER:
104
+ *
105
+ * Defined if Harfbuzz has been built with the raster library.
106
+ */
107
+ #undef HB_HAS_RASTER
108
+
109
+ /**
110
+ * HB_HAS_SUBSET:
111
+ *
112
+ * Defined if Harfbuzz has been built with the subset library.
113
+ */
114
+ #undef HB_HAS_SUBSET
115
+
102
116
  /**
103
117
  * HB_HAS_UNISCRIBE:
104
118
  *
@@ -106,6 +120,13 @@ HB_BEGIN_DECLS
106
120
  */
107
121
  #undef HB_HAS_UNISCRIBE
108
122
 
123
+ /**
124
+ * HB_HAS_VECTOR:
125
+ *
126
+ * Defined if Harfbuzz has been built with the vector library.
127
+ */
128
+ #undef HB_HAS_VECTOR
129
+
109
130
  /**
110
131
  * HB_HAS_WASM:
111
132
  *