@revizly/sharp-libvips-dev 1.0.61 → 1.0.64

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 (145) hide show
  1. package/cplusplus/VError.cpp +28 -0
  2. package/include/expat.h +13 -6
  3. package/include/expat_config.h +3 -3
  4. package/include/ffi.h +3 -3
  5. package/include/gio-unix-2.0/gio/gdesktopappinfo.h +40 -23
  6. package/include/gio-unix-2.0/gio/gunixmounts.h +3 -3
  7. package/include/glib-2.0/gio/gasyncinitable.h +32 -32
  8. package/include/glib-2.0/gio/gasyncresult.h +4 -4
  9. package/include/glib-2.0/gio/gbufferedinputstream.h +28 -28
  10. package/include/glib-2.0/gio/gbufferedoutputstream.h +3 -3
  11. package/include/glib-2.0/gio/gcancellable.h +6 -6
  12. package/include/glib-2.0/gio/gcharsetconverter.h +3 -3
  13. package/include/glib-2.0/gio/gconverter.h +16 -16
  14. package/include/glib-2.0/gio/gdatainputstream.h +3 -3
  15. package/include/glib-2.0/gio/gdataoutputstream.h +25 -25
  16. package/include/glib-2.0/gio/gfile.h +369 -369
  17. package/include/glib-2.0/gio/gfileattribute.h +4 -4
  18. package/include/glib-2.0/gio/gfileenumerator.h +18 -18
  19. package/include/glib-2.0/gio/gfileinfo.h +63 -63
  20. package/include/glib-2.0/gio/gfileinputstream.h +11 -11
  21. package/include/glib-2.0/gio/gfileiostream.h +11 -11
  22. package/include/glib-2.0/gio/gfilemonitor.h +1 -1
  23. package/include/glib-2.0/gio/gfileoutputstream.h +8 -8
  24. package/include/glib-2.0/gio/gicon.h +1 -1
  25. package/include/glib-2.0/gio/ginetaddress.h +1 -1
  26. package/include/glib-2.0/gio/ginetaddressmask.h +5 -5
  27. package/include/glib-2.0/gio/ginitable.h +16 -16
  28. package/include/glib-2.0/gio/ginputstream.h +47 -47
  29. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  30. package/include/glib-2.0/gio/gioenums.h +3 -1
  31. package/include/glib-2.0/gio/giomodule.h +5 -5
  32. package/include/glib-2.0/gio/gioscheduler.h +10 -10
  33. package/include/glib-2.0/gio/giostream.h +16 -16
  34. package/include/glib-2.0/gio/giotypes.h +13 -12
  35. package/include/glib-2.0/gio/gloadableicon.h +13 -13
  36. package/include/glib-2.0/gio/gmemoryinputstream.h +1 -1
  37. package/include/glib-2.0/gio/gmountoperation.h +14 -14
  38. package/include/glib-2.0/gio/gnetworkaddress.h +5 -5
  39. package/include/glib-2.0/gio/gnetworkmonitor.h +10 -10
  40. package/include/glib-2.0/gio/gnetworkservice.h +2 -2
  41. package/include/glib-2.0/gio/goutputstream.h +76 -76
  42. package/include/glib-2.0/gio/gpollableinputstream.h +9 -9
  43. package/include/glib-2.0/gio/gpollableoutputstream.h +18 -18
  44. package/include/glib-2.0/gio/gpollableutils.h +18 -18
  45. package/include/glib-2.0/gio/gproxy.h +25 -25
  46. package/include/glib-2.0/gio/gproxyaddress.h +6 -6
  47. package/include/glib-2.0/gio/gproxyresolver.h +25 -25
  48. package/include/glib-2.0/gio/gresource.h +26 -26
  49. package/include/glib-2.0/gio/gseekable.h +16 -16
  50. package/include/glib-2.0/gio/gsimpleasyncresult.h +40 -40
  51. package/include/glib-2.0/gio/gsocket.h +103 -103
  52. package/include/glib-2.0/gio/gsocketaddress.h +2 -2
  53. package/include/glib-2.0/gio/gsocketaddressenumerator.h +14 -14
  54. package/include/glib-2.0/gio/gsocketclient.h +25 -25
  55. package/include/glib-2.0/gio/gsocketconnection.h +16 -16
  56. package/include/glib-2.0/gio/gsocketcontrolmessage.h +8 -8
  57. package/include/glib-2.0/gio/gsocketlistener.h +15 -15
  58. package/include/glib-2.0/gio/gsocketservice.h +1 -1
  59. package/include/glib-2.0/gio/gsrvtarget.h +3 -3
  60. package/include/glib-2.0/gio/gtcpconnection.h +1 -1
  61. package/include/glib-2.0/gio/gtcpwrapperconnection.h +1 -1
  62. package/include/glib-2.0/gio/gtlsbackend.h +1 -1
  63. package/include/glib-2.0/gio/gtlscertificate.h +10 -10
  64. package/include/glib-2.0/gio/gtlsclientconnection.h +5 -5
  65. package/include/glib-2.0/gio/gtlsconnection.h +23 -23
  66. package/include/glib-2.0/gio/gtlsserverconnection.h +2 -2
  67. package/include/glib-2.0/gio/gvfs.h +14 -14
  68. package/include/glib-2.0/gio/gvolume.h +8 -8
  69. package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
  70. package/include/glib-2.0/gio/gzlibcompressor.h +1 -1
  71. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  72. package/include/glib-2.0/glib/deprecated/gmain.h +1 -1
  73. package/include/glib-2.0/glib/deprecated/grel.h +1 -1
  74. package/include/glib-2.0/glib/deprecated/gthread.h +1 -1
  75. package/include/glib-2.0/glib/galloca.h +2 -2
  76. package/include/glib-2.0/glib/garray.h +56 -56
  77. package/include/glib-2.0/glib/gbookmarkfile.h +93 -93
  78. package/include/glib-2.0/glib/gconvert.h +43 -43
  79. package/include/glib-2.0/glib/gdataset.h +14 -14
  80. package/include/glib-2.0/glib/gdate.h +17 -17
  81. package/include/glib-2.0/glib/gdir.h +2 -2
  82. package/include/glib-2.0/glib/gerror.h +1 -1
  83. package/include/glib-2.0/glib/ghook.h +103 -103
  84. package/include/glib-2.0/glib/giochannel.h +90 -90
  85. package/include/glib-2.0/glib/gkeyfile.h +112 -111
  86. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  87. package/include/glib-2.0/glib/glist.h +37 -37
  88. package/include/glib-2.0/glib/gmacros.h +84 -27
  89. package/include/glib-2.0/glib/gmain.h +10 -10
  90. package/include/glib-2.0/glib/gmappedfile.h +4 -4
  91. package/include/glib-2.0/glib/gmarkup.h +2 -2
  92. package/include/glib-2.0/glib/gmem.h +68 -68
  93. package/include/glib-2.0/glib/gmessages.h +14 -14
  94. package/include/glib-2.0/glib/gnode.h +76 -76
  95. package/include/glib-2.0/glib/goption.h +45 -45
  96. package/include/glib-2.0/glib/gpattern.h +6 -6
  97. package/include/glib-2.0/glib/gpoll.h +6 -6
  98. package/include/glib-2.0/glib/gprimes.h +2 -2
  99. package/include/glib-2.0/glib/gprintf.h +10 -10
  100. package/include/glib-2.0/glib/gqsort.h +5 -5
  101. package/include/glib-2.0/glib/gquark.h +9 -5
  102. package/include/glib-2.0/glib/gqueue.h +1 -1
  103. package/include/glib-2.0/glib/grand.h +12 -12
  104. package/include/glib-2.0/glib/gscanner.h +138 -138
  105. package/include/glib-2.0/glib/gslice.h +15 -15
  106. package/include/glib-2.0/glib/gslist.h +34 -34
  107. package/include/glib-2.0/glib/gspawn.h +1 -1
  108. package/include/glib-2.0/glib/gstdio.h +16 -10
  109. package/include/glib-2.0/glib/gstrfuncs.h +63 -63
  110. package/include/glib-2.0/glib/gtestutils.h +2 -2
  111. package/include/glib-2.0/glib/gtimer.h +9 -9
  112. package/include/glib-2.0/glib/gtree.h +3 -3
  113. package/include/glib-2.0/glib/gtypes.h +166 -166
  114. package/include/glib-2.0/glib/gutils.h +35 -33
  115. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  116. package/include/glib-2.0/glib-object.h +1 -1
  117. package/include/glib-2.0/glib.h +1 -1
  118. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  119. package/include/glib-2.0/gmodule.h +12 -12
  120. package/include/glib-2.0/gobject/gclosure.h +82 -82
  121. package/include/glib-2.0/gobject/genums.h +43 -43
  122. package/include/glib-2.0/gobject/gmarshal.h +2 -2
  123. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  124. package/include/glib-2.0/gobject/gobject.h +97 -97
  125. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +12 -12
  126. package/include/glib-2.0/gobject/gparam.h +96 -96
  127. package/include/glib-2.0/gobject/gparamspecs.h +157 -157
  128. package/include/glib-2.0/gobject/gsignal.h +189 -189
  129. package/include/glib-2.0/gobject/gsourceclosure.h +1 -1
  130. package/include/glib-2.0/gobject/gtype.h +139 -139
  131. package/include/glib-2.0/gobject/gtypemodule.h +5 -5
  132. package/include/glib-2.0/gobject/gtypeplugin.h +32 -32
  133. package/include/glib-2.0/gobject/gvalue.h +34 -34
  134. package/include/glib-2.0/gobject/gvaluearray.h +21 -21
  135. package/include/glib-2.0/gobject/gvaluecollector.h +117 -117
  136. package/include/glib-2.0/gobject/gvaluetypes.h +74 -74
  137. package/include/harfbuzz/hb-font.h +22 -0
  138. package/include/harfbuzz/hb-ot-layout.h +11 -0
  139. package/include/harfbuzz/hb-version.h +2 -2
  140. package/include/libimagequant.h +4 -0
  141. package/include/vips/VError8.h +3 -4
  142. package/include/vips/VImage8.h +12 -0
  143. package/include/vips/util.h +15 -1
  144. package/package.json +1 -1
  145. package/versions.json +5 -5
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * This library is distributed in the hope that it will be useful,
12
12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
14
  * Lesser General Public License for more details.
15
15
  *
16
16
  * You should have received a copy of the GNU Lesser General Public
@@ -35,7 +35,7 @@
35
35
 
36
36
  G_BEGIN_DECLS
37
37
 
38
- typedef struct _GNode GNode;
38
+ typedef struct _GNode GNode;
39
39
 
40
40
  /* Tree traverse flags */
41
41
  typedef enum
@@ -57,20 +57,20 @@ typedef enum
57
57
  G_LEVEL_ORDER
58
58
  } GTraverseType;
59
59
 
60
- typedef gboolean (*GNodeTraverseFunc) (GNode *node,
61
- gpointer data);
62
- typedef void (*GNodeForeachFunc) (GNode *node,
63
- gpointer data);
60
+ typedef gboolean (*GNodeTraverseFunc) (GNode *node,
61
+ gpointer data);
62
+ typedef void (*GNodeForeachFunc) (GNode *node,
63
+ gpointer data);
64
64
 
65
65
  /* N-way tree implementation
66
66
  */
67
67
  struct _GNode
68
68
  {
69
69
  gpointer data;
70
- GNode *next;
71
- GNode *prev;
72
- GNode *parent;
73
- GNode *children;
70
+ GNode *next;
71
+ GNode *prev;
72
+ GNode *parent;
73
+ GNode *children;
74
74
  };
75
75
 
76
76
  /**
@@ -82,9 +82,9 @@ struct _GNode
82
82
  * Returns: %TRUE if the #GNode is the root of a tree
83
83
  * (i.e. it has no parent or siblings)
84
84
  */
85
- #define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \
86
- ((GNode*) (node))->prev == NULL && \
87
- ((GNode*) (node))->next == NULL)
85
+ #define G_NODE_IS_ROOT(node) (((GNode*) (node))->parent == NULL && \
86
+ ((GNode*) (node))->prev == NULL && \
87
+ ((GNode*) (node))->next == NULL)
88
88
 
89
89
  /**
90
90
  * G_NODE_IS_LEAF:
@@ -95,50 +95,50 @@ struct _GNode
95
95
  * Returns: %TRUE if the #GNode is a leaf node
96
96
  * (i.e. it has no children)
97
97
  */
98
- #define G_NODE_IS_LEAF(node) (((GNode*) (node))->children == NULL)
98
+ #define G_NODE_IS_LEAF(node) (((GNode*) (node))->children == NULL)
99
99
 
100
100
  GLIB_AVAILABLE_IN_ALL
101
- GNode* g_node_new (gpointer data);
101
+ GNode* g_node_new (gpointer data);
102
102
  GLIB_AVAILABLE_IN_ALL
103
- void g_node_destroy (GNode *root);
103
+ void g_node_destroy (GNode *root);
104
104
  GLIB_AVAILABLE_IN_ALL
105
- void g_node_unlink (GNode *node);
105
+ void g_node_unlink (GNode *node);
106
106
  GLIB_AVAILABLE_IN_ALL
107
107
  GNode* g_node_copy_deep (GNode *node,
108
- GCopyFunc copy_func,
109
- gpointer data);
108
+ GCopyFunc copy_func,
109
+ gpointer data);
110
110
  GLIB_AVAILABLE_IN_ALL
111
111
  GNode* g_node_copy (GNode *node);
112
112
  GLIB_AVAILABLE_IN_ALL
113
- GNode* g_node_insert (GNode *parent,
114
- gint position,
115
- GNode *node);
113
+ GNode* g_node_insert (GNode *parent,
114
+ gint position,
115
+ GNode *node);
116
116
  GLIB_AVAILABLE_IN_ALL
117
- GNode* g_node_insert_before (GNode *parent,
118
- GNode *sibling,
119
- GNode *node);
117
+ GNode* g_node_insert_before (GNode *parent,
118
+ GNode *sibling,
119
+ GNode *node);
120
120
  GLIB_AVAILABLE_IN_ALL
121
121
  GNode* g_node_insert_after (GNode *parent,
122
- GNode *sibling,
123
- GNode *node);
122
+ GNode *sibling,
123
+ GNode *node);
124
124
  GLIB_AVAILABLE_IN_ALL
125
- GNode* g_node_prepend (GNode *parent,
126
- GNode *node);
125
+ GNode* g_node_prepend (GNode *parent,
126
+ GNode *node);
127
127
  GLIB_AVAILABLE_IN_ALL
128
- guint g_node_n_nodes (GNode *root,
129
- GTraverseFlags flags);
128
+ guint g_node_n_nodes (GNode *root,
129
+ GTraverseFlags flags);
130
130
  GLIB_AVAILABLE_IN_ALL
131
- GNode* g_node_get_root (GNode *node);
131
+ GNode* g_node_get_root (GNode *node);
132
132
  GLIB_AVAILABLE_IN_ALL
133
- gboolean g_node_is_ancestor (GNode *node,
134
- GNode *descendant);
133
+ gboolean g_node_is_ancestor (GNode *node,
134
+ GNode *descendant);
135
135
  GLIB_AVAILABLE_IN_ALL
136
- guint g_node_depth (GNode *node);
136
+ guint g_node_depth (GNode *node);
137
137
  GLIB_AVAILABLE_IN_ALL
138
- GNode* g_node_find (GNode *root,
139
- GTraverseType order,
140
- GTraverseFlags flags,
141
- gpointer data);
138
+ GNode* g_node_find (GNode *root,
139
+ GTraverseType order,
140
+ GTraverseFlags flags,
141
+ gpointer data);
142
142
 
143
143
  /* convenience macros */
144
144
  /**
@@ -150,7 +150,7 @@ GNode* g_node_find (GNode *root,
150
150
  *
151
151
  * Returns: the inserted #GNode
152
152
  */
153
- #define g_node_append(parent, node) \
153
+ #define g_node_append(parent, node) \
154
154
  g_node_insert_before ((parent), NULL, (node))
155
155
 
156
156
  /**
@@ -164,7 +164,7 @@ GNode* g_node_find (GNode *root,
164
164
  *
165
165
  * Returns: the new #GNode
166
166
  */
167
- #define g_node_insert_data(parent, position, data) \
167
+ #define g_node_insert_data(parent, position, data) \
168
168
  g_node_insert ((parent), (position), g_node_new (data))
169
169
 
170
170
  /**
@@ -178,7 +178,7 @@ GNode* g_node_find (GNode *root,
178
178
  * Returns: the new #GNode
179
179
  */
180
180
 
181
- #define g_node_insert_data_after(parent, sibling, data) \
181
+ #define g_node_insert_data_after(parent, sibling, data) \
182
182
  g_node_insert_after ((parent), (sibling), g_node_new (data))
183
183
  /**
184
184
  * g_node_insert_data_before:
@@ -190,7 +190,7 @@ GNode* g_node_find (GNode *root,
190
190
  *
191
191
  * Returns: the new #GNode
192
192
  */
193
- #define g_node_insert_data_before(parent, sibling, data) \
193
+ #define g_node_insert_data_before(parent, sibling, data) \
194
194
  g_node_insert_before ((parent), (sibling), g_node_new (data))
195
195
 
196
196
  /**
@@ -202,7 +202,7 @@ GNode* g_node_find (GNode *root,
202
202
  *
203
203
  * Returns: the new #GNode
204
204
  */
205
- #define g_node_prepend_data(parent, data) \
205
+ #define g_node_prepend_data(parent, data) \
206
206
  g_node_prepend ((parent), g_node_new (data))
207
207
 
208
208
  /**
@@ -214,7 +214,7 @@ GNode* g_node_find (GNode *root,
214
214
  *
215
215
  * Returns: the new #GNode
216
216
  */
217
- #define g_node_append_data(parent, data) \
217
+ #define g_node_append_data(parent, data) \
218
218
  g_node_insert_before ((parent), NULL, g_node_new (data))
219
219
 
220
220
  /* traversal function, assumes that 'node' is root
@@ -223,12 +223,12 @@ GNode* g_node_find (GNode *root,
223
223
  * low level traversal functions, optimized for speed.
224
224
  */
225
225
  GLIB_AVAILABLE_IN_ALL
226
- void g_node_traverse (GNode *root,
227
- GTraverseType order,
228
- GTraverseFlags flags,
229
- gint max_depth,
230
- GNodeTraverseFunc func,
231
- gpointer data);
226
+ void g_node_traverse (GNode *root,
227
+ GTraverseType order,
228
+ GTraverseFlags flags,
229
+ gint max_depth,
230
+ GNodeTraverseFunc func,
231
+ gpointer data);
232
232
 
233
233
  /* return the maximum tree height starting with 'node', this is an expensive
234
234
  * operation, since we need to visit all nodes. this could be shortened by
@@ -236,37 +236,37 @@ void g_node_traverse (GNode *root,
236
236
  * often needed, and would make g_node_insert() more time consuming.
237
237
  */
238
238
  GLIB_AVAILABLE_IN_ALL
239
- guint g_node_max_height (GNode *root);
239
+ guint g_node_max_height (GNode *root);
240
240
 
241
241
  GLIB_AVAILABLE_IN_ALL
242
- void g_node_children_foreach (GNode *node,
243
- GTraverseFlags flags,
244
- GNodeForeachFunc func,
245
- gpointer data);
242
+ void g_node_children_foreach (GNode *node,
243
+ GTraverseFlags flags,
244
+ GNodeForeachFunc func,
245
+ gpointer data);
246
246
  GLIB_AVAILABLE_IN_ALL
247
- void g_node_reverse_children (GNode *node);
247
+ void g_node_reverse_children (GNode *node);
248
248
  GLIB_AVAILABLE_IN_ALL
249
- guint g_node_n_children (GNode *node);
249
+ guint g_node_n_children (GNode *node);
250
250
  GLIB_AVAILABLE_IN_ALL
251
- GNode* g_node_nth_child (GNode *node,
252
- guint n);
251
+ GNode* g_node_nth_child (GNode *node,
252
+ guint n);
253
253
  GLIB_AVAILABLE_IN_ALL
254
- GNode* g_node_last_child (GNode *node);
254
+ GNode* g_node_last_child (GNode *node);
255
255
  GLIB_AVAILABLE_IN_ALL
256
- GNode* g_node_find_child (GNode *node,
257
- GTraverseFlags flags,
258
- gpointer data);
256
+ GNode* g_node_find_child (GNode *node,
257
+ GTraverseFlags flags,
258
+ gpointer data);
259
259
  GLIB_AVAILABLE_IN_ALL
260
- gint g_node_child_position (GNode *node,
261
- GNode *child);
260
+ gint g_node_child_position (GNode *node,
261
+ GNode *child);
262
262
  GLIB_AVAILABLE_IN_ALL
263
- gint g_node_child_index (GNode *node,
264
- gpointer data);
263
+ gint g_node_child_index (GNode *node,
264
+ gpointer data);
265
265
 
266
266
  GLIB_AVAILABLE_IN_ALL
267
- GNode* g_node_first_sibling (GNode *node);
267
+ GNode* g_node_first_sibling (GNode *node);
268
268
  GLIB_AVAILABLE_IN_ALL
269
- GNode* g_node_last_sibling (GNode *node);
269
+ GNode* g_node_last_sibling (GNode *node);
270
270
 
271
271
  /**
272
272
  * g_node_prev_sibling:
@@ -277,8 +277,8 @@ GNode* g_node_last_sibling (GNode *node);
277
277
  * Returns: the previous sibling of @node, or %NULL if @node is the first
278
278
  * node or %NULL
279
279
  */
280
- #define g_node_prev_sibling(node) ((node) ? \
281
- ((GNode*) (node))->prev : NULL)
280
+ #define g_node_prev_sibling(node) ((node) ? \
281
+ ((GNode*) (node))->prev : NULL)
282
282
 
283
283
  /**
284
284
  * g_node_next_sibling:
@@ -289,8 +289,8 @@ GNode* g_node_last_sibling (GNode *node);
289
289
  * Returns: the next sibling of @node, or %NULL if @node is the last node
290
290
  * or %NULL
291
291
  */
292
- #define g_node_next_sibling(node) ((node) ? \
293
- ((GNode*) (node))->next : NULL)
292
+ #define g_node_next_sibling(node) ((node) ? \
293
+ ((GNode*) (node))->next : NULL)
294
294
 
295
295
  /**
296
296
  * g_node_first_child:
@@ -301,8 +301,8 @@ GNode* g_node_last_sibling (GNode *node);
301
301
  * Returns: the first child of @node, or %NULL if @node is %NULL
302
302
  * or has no children
303
303
  */
304
- #define g_node_first_child(node) ((node) ? \
305
- ((GNode*) (node))->children : NULL)
304
+ #define g_node_first_child(node) ((node) ? \
305
+ ((GNode*) (node))->children : NULL)
306
306
 
307
307
  G_END_DECLS
308
308
 
@@ -103,13 +103,13 @@ typedef struct _GOptionEntry GOptionEntry;
103
103
  typedef enum
104
104
  {
105
105
  G_OPTION_FLAG_NONE = 0,
106
- G_OPTION_FLAG_HIDDEN = 1 << 0,
107
- G_OPTION_FLAG_IN_MAIN = 1 << 1,
108
- G_OPTION_FLAG_REVERSE = 1 << 2,
109
- G_OPTION_FLAG_NO_ARG = 1 << 3,
110
- G_OPTION_FLAG_FILENAME = 1 << 4,
106
+ G_OPTION_FLAG_HIDDEN = 1 << 0,
107
+ G_OPTION_FLAG_IN_MAIN = 1 << 1,
108
+ G_OPTION_FLAG_REVERSE = 1 << 2,
109
+ G_OPTION_FLAG_NO_ARG = 1 << 3,
110
+ G_OPTION_FLAG_FILENAME = 1 << 4,
111
111
  G_OPTION_FLAG_OPTIONAL_ARG = 1 << 5,
112
- G_OPTION_FLAG_NOALIAS = 1 << 6,
112
+ G_OPTION_FLAG_NOALIAS = 1 << 6,
113
113
  G_OPTION_FLAG_DEPRECATED GLIB_AVAILABLE_ENUMERATOR_IN_2_84 = 1 << 7
114
114
  } G_GNUC_FLAG_ENUM GOptionFlags;
115
115
 
@@ -170,9 +170,9 @@ typedef enum
170
170
  * occurred, in which case @error should be set with g_set_error()
171
171
  */
172
172
  typedef gboolean (*GOptionArgFunc) (const gchar *option_name,
173
- const gchar *value,
174
- gpointer data,
175
- GError **error);
173
+ const gchar *value,
174
+ gpointer data,
175
+ GError **error);
176
176
 
177
177
  /**
178
178
  * GOptionParseFunc:
@@ -188,9 +188,9 @@ typedef gboolean (*GOptionArgFunc) (const gchar *option_name,
188
188
  * occurred, in which case @error should be set with g_set_error()
189
189
  */
190
190
  typedef gboolean (*GOptionParseFunc) (GOptionContext *context,
191
- GOptionGroup *group,
192
- gpointer data,
193
- GError **error);
191
+ GOptionGroup *group,
192
+ gpointer data,
193
+ GError **error);
194
194
 
195
195
  /**
196
196
  * GOptionErrorFunc:
@@ -203,9 +203,9 @@ typedef gboolean (*GOptionParseFunc) (GOptionContext *context,
203
203
  * The type of function to be used as callback when a parse error occurs.
204
204
  */
205
205
  typedef void (*GOptionErrorFunc) (GOptionContext *context,
206
- GOptionGroup *group,
207
- gpointer data,
208
- GError **error);
206
+ GOptionGroup *group,
207
+ gpointer data,
208
+ GError **error);
209
209
 
210
210
  /**
211
211
  * G_OPTION_ERROR:
@@ -344,13 +344,13 @@ const gchar * g_option_context_get_description (GOptionContext *context);
344
344
  GLIB_AVAILABLE_IN_ALL
345
345
  void g_option_context_free (GOptionContext *context);
346
346
  GLIB_AVAILABLE_IN_ALL
347
- void g_option_context_set_help_enabled (GOptionContext *context,
348
- gboolean help_enabled);
347
+ void g_option_context_set_help_enabled (GOptionContext *context,
348
+ gboolean help_enabled);
349
349
  GLIB_AVAILABLE_IN_ALL
350
- gboolean g_option_context_get_help_enabled (GOptionContext *context);
350
+ gboolean g_option_context_get_help_enabled (GOptionContext *context);
351
351
  GLIB_AVAILABLE_IN_ALL
352
- void g_option_context_set_ignore_unknown_options (GOptionContext *context,
353
- gboolean ignore_unknown);
352
+ void g_option_context_set_ignore_unknown_options (GOptionContext *context,
353
+ gboolean ignore_unknown);
354
354
  GLIB_AVAILABLE_IN_ALL
355
355
  gboolean g_option_context_get_ignore_unknown_options (GOptionContext *context);
356
356
 
@@ -362,32 +362,32 @@ gboolean g_option_context_get_strict_posix (GOptionContext *con
362
362
 
363
363
  GLIB_AVAILABLE_IN_ALL
364
364
  void g_option_context_add_main_entries (GOptionContext *context,
365
- const GOptionEntry *entries,
366
- const gchar *translation_domain);
365
+ const GOptionEntry *entries,
366
+ const gchar *translation_domain);
367
367
  GLIB_AVAILABLE_IN_ALL
368
368
  gboolean g_option_context_parse (GOptionContext *context,
369
- gint *argc,
370
- gchar ***argv,
371
- GError **error);
369
+ gint *argc,
370
+ gchar ***argv,
371
+ GError **error);
372
372
  GLIB_AVAILABLE_IN_2_40
373
373
  gboolean g_option_context_parse_strv (GOptionContext *context,
374
374
  gchar ***arguments,
375
375
  GError **error);
376
376
  GLIB_AVAILABLE_IN_ALL
377
377
  void g_option_context_set_translate_func (GOptionContext *context,
378
- GTranslateFunc func,
379
- gpointer data,
380
- GDestroyNotify destroy_notify);
378
+ GTranslateFunc func,
379
+ gpointer data,
380
+ GDestroyNotify destroy_notify);
381
381
  GLIB_AVAILABLE_IN_ALL
382
382
  void g_option_context_set_translation_domain (GOptionContext *context,
383
- const gchar *domain);
383
+ const gchar *domain);
384
384
 
385
385
  GLIB_AVAILABLE_IN_ALL
386
386
  void g_option_context_add_group (GOptionContext *context,
387
- GOptionGroup *group);
387
+ GOptionGroup *group);
388
388
  GLIB_AVAILABLE_IN_ALL
389
389
  void g_option_context_set_main_group (GOptionContext *context,
390
- GOptionGroup *group);
390
+ GOptionGroup *group);
391
391
  GLIB_AVAILABLE_IN_ALL
392
392
  GOptionGroup *g_option_context_get_main_group (GOptionContext *context);
393
393
  GLIB_AVAILABLE_IN_ALL
@@ -397,17 +397,17 @@ gchar *g_option_context_get_help (GOptionContext *context,
397
397
 
398
398
  GLIB_AVAILABLE_IN_ALL
399
399
  GOptionGroup *g_option_group_new (const gchar *name,
400
- const gchar *description,
401
- const gchar *help_description,
402
- gpointer user_data,
403
- GDestroyNotify destroy);
400
+ const gchar *description,
401
+ const gchar *help_description,
402
+ gpointer user_data,
403
+ GDestroyNotify destroy);
404
404
  GLIB_AVAILABLE_IN_ALL
405
- void g_option_group_set_parse_hooks (GOptionGroup *group,
406
- GOptionParseFunc pre_parse_func,
407
- GOptionParseFunc post_parse_func);
405
+ void g_option_group_set_parse_hooks (GOptionGroup *group,
406
+ GOptionParseFunc pre_parse_func,
407
+ GOptionParseFunc post_parse_func);
408
408
  GLIB_AVAILABLE_IN_ALL
409
- void g_option_group_set_error_hook (GOptionGroup *group,
410
- GOptionErrorFunc error_func);
409
+ void g_option_group_set_error_hook (GOptionGroup *group,
410
+ GOptionErrorFunc error_func);
411
411
  GLIB_DEPRECATED_IN_2_44
412
412
  void g_option_group_free (GOptionGroup *group);
413
413
  GLIB_AVAILABLE_IN_2_44
@@ -416,15 +416,15 @@ GLIB_AVAILABLE_IN_2_44
416
416
  void g_option_group_unref (GOptionGroup *group);
417
417
  GLIB_AVAILABLE_IN_ALL
418
418
  void g_option_group_add_entries (GOptionGroup *group,
419
- const GOptionEntry *entries);
419
+ const GOptionEntry *entries);
420
420
  GLIB_AVAILABLE_IN_ALL
421
421
  void g_option_group_set_translate_func (GOptionGroup *group,
422
- GTranslateFunc func,
423
- gpointer data,
424
- GDestroyNotify destroy_notify);
422
+ GTranslateFunc func,
423
+ gpointer data,
424
+ GDestroyNotify destroy_notify);
425
425
  GLIB_AVAILABLE_IN_ALL
426
426
  void g_option_group_set_translation_domain (GOptionGroup *group,
427
- const gchar *domain);
427
+ const gchar *domain);
428
428
 
429
429
  G_END_DECLS
430
430
 
@@ -39,7 +39,7 @@ GLIB_AVAILABLE_IN_2_70
39
39
  GPatternSpec *g_pattern_spec_copy (GPatternSpec *pspec);
40
40
  GLIB_AVAILABLE_IN_ALL
41
41
  gboolean g_pattern_spec_equal (GPatternSpec *pspec1,
42
- GPatternSpec *pspec2);
42
+ GPatternSpec *pspec2);
43
43
  GLIB_AVAILABLE_IN_2_70
44
44
  gboolean g_pattern_spec_match (GPatternSpec *pspec,
45
45
  gsize string_length,
@@ -50,15 +50,15 @@ gboolean g_pattern_spec_match_string (GPatternSpec *pspec,
50
50
  const gchar *string);
51
51
  GLIB_DEPRECATED_IN_2_70_FOR (g_pattern_spec_match)
52
52
  gboolean g_pattern_match (GPatternSpec *pspec,
53
- guint string_length,
54
- const gchar *string,
55
- const gchar *string_reversed);
53
+ guint string_length,
54
+ const gchar *string,
55
+ const gchar *string_reversed);
56
56
  GLIB_DEPRECATED_IN_2_70_FOR (g_pattern_spec_match_string)
57
57
  gboolean g_pattern_match_string (GPatternSpec *pspec,
58
- const gchar *string);
58
+ const gchar *string);
59
59
  GLIB_AVAILABLE_IN_ALL
60
60
  gboolean g_pattern_match_simple (const gchar *pattern,
61
- const gchar *string);
61
+ const gchar *string);
62
62
 
63
63
  G_END_DECLS
64
64
 
@@ -94,13 +94,13 @@ struct _GPollFD
94
94
  {
95
95
  #if defined (G_OS_WIN32) && GLIB_SIZEOF_VOID_P == 8
96
96
  #ifndef __GTK_DOC_IGNORE__
97
- gint64 fd;
97
+ gint64 fd;
98
98
  #endif
99
99
  #else
100
- gint fd;
100
+ gint fd;
101
101
  #endif
102
- gushort events;
103
- gushort revents;
102
+ gushort events;
103
+ gushort revents;
104
104
  };
105
105
 
106
106
  /**
@@ -114,8 +114,8 @@ struct _GPollFD
114
114
  GLIB_AVAILABLE_IN_ALL
115
115
  gint
116
116
  g_poll (GPollFD *fds,
117
- guint nfds,
118
- gint timeout);
117
+ guint nfds,
118
+ gint timeout);
119
119
 
120
120
  G_END_DECLS
121
121
 
@@ -40,12 +40,12 @@ G_BEGIN_DECLS
40
40
 
41
41
  /* This function returns prime numbers spaced by approximately 1.5-2.0
42
42
  * and is for use in resizing data structures which prefer
43
- * prime-valued sizes. The closest spaced prime function returns the
43
+ * prime-valued sizes. The closest spaced prime function returns the
44
44
  * next largest prime, or the highest it knows about which is about
45
45
  * MAXINT/4.
46
46
  */
47
47
  GLIB_AVAILABLE_IN_ALL
48
- guint g_spaced_primes_closest (guint num) G_GNUC_CONST;
48
+ guint g_spaced_primes_closest (guint num) G_GNUC_CONST;
49
49
 
50
50
  G_END_DECLS
51
51
 
@@ -31,28 +31,28 @@ gint g_printf (gchar const *format,
31
31
  ...) G_GNUC_PRINTF (1, 2);
32
32
  GLIB_AVAILABLE_IN_ALL
33
33
  gint g_fprintf (FILE *file,
34
- gchar const *format,
35
- ...) G_GNUC_PRINTF (2, 3);
34
+ gchar const *format,
35
+ ...) G_GNUC_PRINTF (2, 3);
36
36
  GLIB_AVAILABLE_IN_ALL
37
37
  gint g_sprintf (gchar *string,
38
- gchar const *format,
39
- ...) G_GNUC_PRINTF (2, 3);
38
+ gchar const *format,
39
+ ...) G_GNUC_PRINTF (2, 3);
40
40
 
41
41
  GLIB_AVAILABLE_IN_ALL
42
42
  gint g_vprintf (gchar const *format,
43
43
  va_list args) G_GNUC_PRINTF(1, 0);
44
44
  GLIB_AVAILABLE_IN_ALL
45
45
  gint g_vfprintf (FILE *file,
46
- gchar const *format,
47
- va_list args) G_GNUC_PRINTF(2, 0);
46
+ gchar const *format,
47
+ va_list args) G_GNUC_PRINTF(2, 0);
48
48
  GLIB_AVAILABLE_IN_ALL
49
49
  gint g_vsprintf (gchar *string,
50
- gchar const *format,
51
- va_list args) G_GNUC_PRINTF(2, 0);
50
+ gchar const *format,
51
+ va_list args) G_GNUC_PRINTF(2, 0);
52
52
  GLIB_AVAILABLE_IN_ALL
53
53
  gint g_vasprintf (gchar **string,
54
- gchar const *format,
55
- va_list args) G_GNUC_PRINTF(2, 0);
54
+ gchar const *format,
55
+ va_list args) G_GNUC_PRINTF(2, 0);
56
56
 
57
57
  G_END_DECLS
58
58
 
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * This library is distributed in the hope that it will be useful,
12
12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
14
  * Lesser General Public License for more details.
15
15
  *
16
16
  * You should have received a copy of the GNU Lesser General Public
@@ -37,10 +37,10 @@ G_BEGIN_DECLS
37
37
 
38
38
  GLIB_DEPRECATED_IN_2_82_FOR(g_sort_array)
39
39
  void g_qsort_with_data (gconstpointer pbase,
40
- gint total_elems,
41
- gsize size,
42
- GCompareDataFunc compare_func,
43
- gpointer user_data);
40
+ gint total_elems,
41
+ gsize size,
42
+ GCompareDataFunc compare_func,
43
+ gpointer user_data);
44
44
 
45
45
  GLIB_AVAILABLE_IN_2_82
46
46
  void g_sort_array (const void *array,
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * This library is distributed in the hope that it will be useful,
12
12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
14
  * Lesser General Public License for more details.
15
15
  *
16
16
  * You should have received a copy of the GNU Lesser General Public
@@ -52,12 +52,16 @@ const gchar * g_quark_to_string (GQuark quark) G_GNUC_PUR
52
52
  GQuark \
53
53
  q_n##_quark (void) \
54
54
  { \
55
- static GQuark q; \
55
+ static int q; \
56
+ int ql = g_atomic_int_get (&q); \
56
57
  \
57
- if G_UNLIKELY (q == 0) \
58
- q = g_quark_from_static_string (#QN); \
58
+ if G_UNLIKELY (ql == 0) \
59
+ { \
60
+ ql = (int) g_quark_from_static_string (#QN); \
61
+ g_atomic_int_set (&q, ql); \
62
+ } \
59
63
  \
60
- return q; \
64
+ return (GQuark) ql; \
61
65
  }
62
66
 
63
67
  GLIB_AVAILABLE_IN_ALL
@@ -77,7 +77,7 @@ GLIB_AVAILABLE_IN_ALL
77
77
  void g_queue_free (GQueue *queue);
78
78
  GLIB_AVAILABLE_IN_ALL
79
79
  void g_queue_free_full (GQueue *queue,
80
- GDestroyNotify free_func);
80
+ GDestroyNotify free_func);
81
81
  GLIB_AVAILABLE_IN_ALL
82
82
  void g_queue_init (GQueue *queue);
83
83
  GLIB_AVAILABLE_IN_ALL