@revizly/sharp-libvips-dev 1.0.61 → 1.0.63

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 (144) 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/util.h +15 -1
  143. package/package.json +1 -1
  144. 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,6 +35,8 @@
35
35
  #error "Only <glib.h> can be included directly."
36
36
  #endif
37
37
 
38
+ #include <errno.h>
39
+
38
40
  /* We include stddef.h to get the system's definition of NULL
39
41
  */
40
42
  #include <stddef.h>
@@ -753,19 +755,19 @@
753
755
  #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
754
756
  _Pragma ("warning (push)") \
755
757
  _Pragma ("warning (disable:1478)")
756
- #define G_GNUC_END_IGNORE_DEPRECATIONS \
758
+ #define G_GNUC_END_IGNORE_DEPRECATIONS \
757
759
  _Pragma ("warning (pop)")
758
760
  #elif G_GNUC_CHECK_VERSION(4, 6)
759
- #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
760
- _Pragma ("GCC diagnostic push") \
761
+ #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
762
+ _Pragma ("GCC diagnostic push") \
761
763
  _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
762
- #define G_GNUC_END_IGNORE_DEPRECATIONS \
764
+ #define G_GNUC_END_IGNORE_DEPRECATIONS \
763
765
  _Pragma ("GCC diagnostic pop")
764
766
  #elif defined (_MSC_VER) && (_MSC_VER >= 1500) && !defined (__clang__)
765
- #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
767
+ #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
766
768
  __pragma (warning (push)) \
767
769
  __pragma (warning (disable : 4996))
768
- #define G_GNUC_END_IGNORE_DEPRECATIONS \
770
+ #define G_GNUC_END_IGNORE_DEPRECATIONS \
769
771
  __pragma (warning (pop))
770
772
  #elif defined (__clang__)
771
773
  #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
@@ -896,8 +898,8 @@
896
898
  #define G_ANALYZER_NORETURN
897
899
  #endif
898
900
 
899
- #define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
900
- #define G_STRINGIFY_ARG(contents) #contents
901
+ #define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
902
+ #define G_STRINGIFY_ARG(contents) #contents
901
903
 
902
904
  #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
903
905
  #define G_PASTE(identifier1,identifier2) G_PASTE_ARGS (identifier1, identifier2)
@@ -923,9 +925,9 @@
923
925
 
924
926
  /* Provide a string identifying the current code position */
925
927
  #if defined (__GNUC__) && (__GNUC__ < 3) && !defined (G_CXX_STD_VERSION)
926
- #define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__) ":" __PRETTY_FUNCTION__ "()"
928
+ #define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__) ":" __PRETTY_FUNCTION__ "()"
927
929
  #else
928
- #define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__)
930
+ #define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__)
929
931
  #endif
930
932
 
931
933
  /* Provide a string identifying the current function, non-concatenatable */
@@ -963,24 +965,24 @@
963
965
  # endif /* G_CXX_STD_CHECK_VERSION (11) */
964
966
  #endif
965
967
 
966
- #ifndef FALSE
967
- #define FALSE (0)
968
+ #ifndef FALSE
969
+ #define FALSE (0)
968
970
  #endif
969
971
 
970
- #ifndef TRUE
971
- #define TRUE (!FALSE)
972
+ #ifndef TRUE
973
+ #define TRUE (!FALSE)
972
974
  #endif
973
975
 
974
- #undef MAX
976
+ #undef MAX
975
977
  #define MAX(a, b) (((a) > (b)) ? (a) : (b))
976
978
 
977
- #undef MIN
979
+ #undef MIN
978
980
  #define MIN(a, b) (((a) < (b)) ? (a) : (b))
979
981
 
980
- #undef ABS
981
- #define ABS(a) (((a) < 0) ? -(a) : (a))
982
+ #undef ABS
983
+ #define ABS(a) (((a) < 0) ? -(a) : (a))
982
984
 
983
- #undef CLAMP
985
+ #undef CLAMP
984
986
  #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
985
987
 
986
988
  #define G_APPROX_VALUE(a, b, epsilon) \
@@ -990,12 +992,12 @@
990
992
  * as such; using this with a dynamically allocated array will give
991
993
  * incorrect results.
992
994
  */
993
- #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
995
+ #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0]))
994
996
 
995
997
  /* Macros by analogy to GINT_TO_POINTER, GPOINTER_TO_INT
996
998
  */
997
- #define GPOINTER_TO_SIZE(p) ((gsize) (p))
998
- #define GSIZE_TO_POINTER(s) ((gpointer) (guintptr) (gsize) (s))
999
+ #define GPOINTER_TO_SIZE(p) ((gsize) (p))
1000
+ #define GSIZE_TO_POINTER(s) ((gpointer) (guintptr) (gsize) (s))
999
1001
 
1000
1002
  /* Provide convenience macros for handling structure
1001
1003
  * fields through their offsets.
@@ -1005,7 +1007,7 @@
1005
1007
  #define G_STRUCT_OFFSET(struct_type, member) \
1006
1008
  ((glong) offsetof (struct_type, member))
1007
1009
  #else
1008
- #define G_STRUCT_OFFSET(struct_type, member) \
1010
+ #define G_STRUCT_OFFSET(struct_type, member) \
1009
1011
  ((glong) ((guint8*) &((struct_type*) 0)->member))
1010
1012
  #endif
1011
1013
 
@@ -1372,7 +1374,7 @@
1372
1374
 
1373
1375
  #ifndef __GI_SCANNER__
1374
1376
 
1375
- #if g_macro__has_attribute(cleanup)
1377
+ #if g_macro__has_attribute(cleanup) && !defined (G_DISABLE_CLEANUP)
1376
1378
 
1377
1379
  /* these macros are private; note that gstdio.h also uses _GLIB_CLEANUP */
1378
1380
  #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
@@ -1428,7 +1430,7 @@
1428
1430
  #define g_auto(TypeName) _GLIB_CLEANUP(_GLIB_AUTO_FUNC_NAME(TypeName)) TypeName
1429
1431
  #define g_autofree _GLIB_CLEANUP(g_autoptr_cleanup_generic_gfree)
1430
1432
 
1431
- #else /* not GNU C */
1433
+ #else /* cleanup is unavailable or disabled */
1432
1434
  /* this (dummy) macro is private */
1433
1435
  #define _GLIB_DEFINE_AUTOPTR_CHAINUP(ModuleObjName, ParentName)
1434
1436
 
@@ -1438,7 +1440,7 @@
1438
1440
  #define G_DEFINE_AUTO_CLEANUP_FREE_FUNC(TypeName, func, none)
1439
1441
 
1440
1442
  /* no declaration of g_auto() or g_autoptr() here */
1441
- #endif /* __GNUC__ */
1443
+ #endif /* cleanup is unavailable or disabled */
1442
1444
 
1443
1445
  #else
1444
1446
 
@@ -1466,4 +1468,59 @@
1466
1468
  GLIB_AVAILABLE_MACRO_IN_2_64 \
1467
1469
  sizeof (((struct_type *) 0)->member)
1468
1470
 
1471
+ /**
1472
+ * G_SAVE_ERRNO:
1473
+ * @var: A variable name, traditionally `errsv`
1474
+ *
1475
+ * Helper to save and restore `errno`.
1476
+ *
1477
+ * This macro declares a variable named @var,
1478
+ * and initializes it from `errno`.
1479
+ * When control flow leaves the enclosing scope,
1480
+ * the saved value is stored back into `errno`.
1481
+ * This is convenient to use when handling an error using functions that
1482
+ * could overwrite ("clobber") the value of `errno`,
1483
+ * such as anything that might allocate memory:
1484
+ *
1485
+ * |[
1486
+ * if (g_unlink (path) < 0)
1487
+ * {
1488
+ * G_SAVE_ERRNO (errsv);
1489
+ * g_autofree char *details = get_more_details ();
1490
+ *
1491
+ * g_info ("could not delete %s (%s): %s",
1492
+ * path, details, g_strerror (errsv));
1493
+ * }
1494
+ *
1495
+ * // now errno is as set by g_unlink(), even if get_more_details()
1496
+ * // or g_info() temporarily changed it
1497
+ * ]|
1498
+ *
1499
+ * This feature is only supported on GCC and clang. This macro is not
1500
+ * defined on other compilers and should not be used in programs that
1501
+ * are intended to be portable to those compilers.
1502
+ *
1503
+ * Since: 2.92
1504
+ */
1505
+
1506
+ /* G_SAVE_ERRNO should be defined on the same compilers where g_auto is.
1507
+ * This avoids duplicating the feature-detection here. */
1508
+ #ifdef g_auto
1509
+
1510
+ #ifndef __GTK_DOC_IGNORE__
1511
+ static inline void
1512
+ _g_saved_errno_restore (int *errsv_p)
1513
+ {
1514
+ errno = *errsv_p;
1515
+ }
1516
+ typedef int _g_saved_errno;
1517
+ G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (_g_saved_errno, _g_saved_errno_restore)
1518
+ #endif
1519
+
1520
+ #define G_SAVE_ERRNO(var) \
1521
+ GLIB_AVAILABLE_MACRO_IN_2_92 \
1522
+ g_auto(_g_saved_errno) G_GNUC_UNUSED var = errno
1523
+
1524
+ #endif /* defined(g_auto) */
1525
+
1469
1526
  #endif /* __G_MACROS_H__ */
@@ -34,12 +34,12 @@ G_BEGIN_DECLS
34
34
 
35
35
  typedef enum /*< flags >*/
36
36
  {
37
- G_IO_IN GLIB_SYSDEF_POLLIN,
38
- G_IO_OUT GLIB_SYSDEF_POLLOUT,
39
- G_IO_PRI GLIB_SYSDEF_POLLPRI,
40
- G_IO_ERR GLIB_SYSDEF_POLLERR,
41
- G_IO_HUP GLIB_SYSDEF_POLLHUP,
42
- G_IO_NVAL GLIB_SYSDEF_POLLNVAL
37
+ G_IO_IN GLIB_SYSDEF_POLLIN,
38
+ G_IO_OUT GLIB_SYSDEF_POLLOUT,
39
+ G_IO_PRI GLIB_SYSDEF_POLLPRI,
40
+ G_IO_ERR GLIB_SYSDEF_POLLERR,
41
+ G_IO_HUP GLIB_SYSDEF_POLLHUP,
42
+ G_IO_NVAL GLIB_SYSDEF_POLLNVAL
43
43
  } GIOCondition;
44
44
 
45
45
  /**
@@ -795,17 +795,17 @@ void g_source_set_callback_indirect (GSource *source,
795
795
 
796
796
  GLIB_AVAILABLE_IN_ALL
797
797
  void g_source_add_poll (GSource *source,
798
- GPollFD *fd);
798
+ GPollFD *fd);
799
799
  GLIB_AVAILABLE_IN_ALL
800
800
  void g_source_remove_poll (GSource *source,
801
- GPollFD *fd);
801
+ GPollFD *fd);
802
802
 
803
803
  GLIB_AVAILABLE_IN_ALL
804
804
  void g_source_add_child_source (GSource *source,
805
- GSource *child_source);
805
+ GSource *child_source);
806
806
  GLIB_AVAILABLE_IN_ALL
807
807
  void g_source_remove_child_source (GSource *source,
808
- GSource *child_source);
808
+ GSource *child_source);
809
809
 
810
810
  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
811
811
  GLIB_DEPRECATED_IN_2_28_FOR(g_source_get_time)
@@ -35,12 +35,12 @@ typedef struct _GMappedFile GMappedFile;
35
35
 
36
36
  GLIB_AVAILABLE_IN_ALL
37
37
  GMappedFile *g_mapped_file_new (const gchar *filename,
38
- gboolean writable,
39
- GError **error);
38
+ gboolean writable,
39
+ GError **error);
40
40
  GLIB_AVAILABLE_IN_ALL
41
41
  GMappedFile *g_mapped_file_new_from_fd (gint fd,
42
- gboolean writable,
43
- GError **error);
42
+ gboolean writable,
43
+ GError **error);
44
44
  GLIB_AVAILABLE_IN_ALL
45
45
  gsize g_mapped_file_get_length (GMappedFile *file);
46
46
  GLIB_AVAILABLE_IN_ALL
@@ -262,10 +262,10 @@ gchar* g_markup_escape_text (const gchar *text,
262
262
 
263
263
  GLIB_AVAILABLE_IN_ALL
264
264
  gchar *g_markup_printf_escaped (const char *format,
265
- ...) G_GNUC_PRINTF (1, 2);
265
+ ...) G_GNUC_PRINTF (1, 2);
266
266
  GLIB_AVAILABLE_IN_ALL
267
267
  gchar *g_markup_vprintf_escaped (const char *format,
268
- va_list args) G_GNUC_PRINTF(1, 0);
268
+ va_list args) G_GNUC_PRINTF(1, 0);
269
269
 
270
270
  typedef enum
271
271
  {
@@ -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
@@ -61,17 +61,17 @@ typedef struct _GMemVTable GMemVTable;
61
61
  * Indicates the number of bytes to which memory will be aligned on the
62
62
  * current platform.
63
63
  */
64
- # define G_MEM_ALIGN GLIB_SIZEOF_VOID_P
65
- #else /* GLIB_SIZEOF_VOID_P <= GLIB_SIZEOF_LONG */
66
- # define G_MEM_ALIGN GLIB_SIZEOF_LONG
67
- #endif /* GLIB_SIZEOF_VOID_P <= GLIB_SIZEOF_LONG */
64
+ # define G_MEM_ALIGN GLIB_SIZEOF_VOID_P
65
+ #else /* GLIB_SIZEOF_VOID_P <= GLIB_SIZEOF_LONG */
66
+ # define G_MEM_ALIGN GLIB_SIZEOF_LONG
67
+ #endif /* GLIB_SIZEOF_VOID_P <= GLIB_SIZEOF_LONG */
68
68
 
69
69
 
70
70
  /* Memory allocation functions
71
71
  */
72
72
 
73
73
  GLIB_AVAILABLE_IN_ALL
74
- void (g_free) (gpointer mem);
74
+ void (g_free) (gpointer mem);
75
75
  GLIB_AVAILABLE_IN_2_76
76
76
  void g_free_sized (gpointer mem,
77
77
  size_t size);
@@ -81,40 +81,40 @@ void g_clear_pointer (gpointer *pp,
81
81
  GDestroyNotify destroy);
82
82
 
83
83
  GLIB_AVAILABLE_IN_ALL
84
- gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
84
+ gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
85
85
  GLIB_AVAILABLE_IN_ALL
86
- gpointer g_malloc0 (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
86
+ gpointer g_malloc0 (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
87
87
  GLIB_AVAILABLE_IN_ALL
88
- gpointer g_realloc (gpointer mem,
89
- gsize n_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE(2);
88
+ gpointer g_realloc (gpointer mem,
89
+ gsize n_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE(2);
90
90
  GLIB_AVAILABLE_IN_ALL
91
- gpointer g_try_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
91
+ gpointer g_try_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
92
92
  GLIB_AVAILABLE_IN_ALL
93
- gpointer g_try_malloc0 (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
93
+ gpointer g_try_malloc0 (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
94
94
  GLIB_AVAILABLE_IN_ALL
95
- gpointer g_try_realloc (gpointer mem,
96
- gsize n_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE(2);
95
+ gpointer g_try_realloc (gpointer mem,
96
+ gsize n_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE(2);
97
97
 
98
98
  GLIB_AVAILABLE_IN_ALL
99
- gpointer g_malloc_n (gsize n_blocks,
100
- gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
99
+ gpointer g_malloc_n (gsize n_blocks,
100
+ gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
101
101
  GLIB_AVAILABLE_IN_ALL
102
- gpointer g_malloc0_n (gsize n_blocks,
103
- gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
102
+ gpointer g_malloc0_n (gsize n_blocks,
103
+ gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
104
104
  GLIB_AVAILABLE_IN_ALL
105
- gpointer g_realloc_n (gpointer mem,
106
- gsize n_blocks,
107
- gsize n_block_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE2(2,3);
105
+ gpointer g_realloc_n (gpointer mem,
106
+ gsize n_blocks,
107
+ gsize n_block_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE2(2,3);
108
108
  GLIB_AVAILABLE_IN_ALL
109
- gpointer g_try_malloc_n (gsize n_blocks,
110
- gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
109
+ gpointer g_try_malloc_n (gsize n_blocks,
110
+ gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
111
111
  GLIB_AVAILABLE_IN_ALL
112
- gpointer g_try_malloc0_n (gsize n_blocks,
113
- gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
112
+ gpointer g_try_malloc0_n (gsize n_blocks,
113
+ gsize n_block_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE2(1,2);
114
114
  GLIB_AVAILABLE_IN_ALL
115
- gpointer g_try_realloc_n (gpointer mem,
116
- gsize n_blocks,
117
- gsize n_block_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE2(2,3);
115
+ gpointer g_try_realloc_n (gpointer mem,
116
+ gsize n_blocks,
117
+ gsize n_block_bytes) G_GNUC_WARN_UNUSED_RESULT G_GNUC_ALLOC_SIZE2(2,3);
118
118
 
119
119
  GLIB_AVAILABLE_IN_2_72
120
120
  gpointer g_aligned_alloc (gsize n_blocks,
@@ -156,8 +156,8 @@ void g_aligned_free_sized (gpointer mem,
156
156
  \
157
157
  _pp.in = (char *) (pp); \
158
158
  _p = *_pp.out; \
159
- if (_p) \
160
- { \
159
+ if (_p) \
160
+ { \
161
161
  *_pp.out = NULL; \
162
162
  _destroy (_p); \
163
163
  } \
@@ -260,33 +260,33 @@ g_steal_pointer (gpointer pp)
260
260
  */
261
261
  #if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
262
262
  # define _G_NEW(struct_type, n_structs, func) \
263
- (struct_type *) (G_GNUC_EXTENSION ({ \
264
- gsize _n = (gsize) (n_structs); \
265
- gsize _s = sizeof (struct_type); \
266
- gpointer _p; \
267
- if (_s == 1) \
268
- _p = g_##func (_n); \
269
- else if (__builtin_constant_p (_n) && \
270
- (_s == 0 || _n <= G_MAXSIZE / _s)) \
271
- _p = g_##func (_n * _s); \
272
- else \
273
- _p = g_##func##_n (_n, _s); \
274
- _p; \
275
- }))
263
+ (struct_type *) (G_GNUC_EXTENSION ({ \
264
+ gsize _n = (gsize) (n_structs); \
265
+ gsize _s = sizeof (struct_type); \
266
+ gpointer _p; \
267
+ if (_s == 1) \
268
+ _p = g_##func (_n); \
269
+ else if (__builtin_constant_p (_n) && \
270
+ (_s == 0 || _n <= G_MAXSIZE / _s)) \
271
+ _p = g_##func (_n * _s); \
272
+ else \
273
+ _p = g_##func##_n (_n, _s); \
274
+ _p; \
275
+ }))
276
276
  # define _G_RENEW(struct_type, mem, n_structs, func) \
277
- (struct_type *) (G_GNUC_EXTENSION ({ \
278
- gsize _n = (gsize) (n_structs); \
279
- gsize _s = sizeof (struct_type); \
280
- gpointer _p = (gpointer) (mem); \
281
- if (_s == 1) \
282
- _p = g_##func (_p, _n); \
283
- else if (__builtin_constant_p (_n) && \
284
- (_s == 0 || _n <= G_MAXSIZE / _s)) \
285
- _p = g_##func (_p, _n * _s); \
286
- else \
287
- _p = g_##func##_n (_p, _n, _s); \
288
- _p; \
289
- }))
277
+ (struct_type *) (G_GNUC_EXTENSION ({ \
278
+ gsize _n = (gsize) (n_structs); \
279
+ gsize _s = sizeof (struct_type); \
280
+ gpointer _p = (gpointer) (mem); \
281
+ if (_s == 1) \
282
+ _p = g_##func (_p, _n); \
283
+ else if (__builtin_constant_p (_n) && \
284
+ (_s == 0 || _n <= G_MAXSIZE / _s)) \
285
+ _p = g_##func (_p, _n * _s); \
286
+ else \
287
+ _p = g_##func##_n (_p, _n, _s); \
288
+ _p; \
289
+ }))
290
290
 
291
291
  #else
292
292
 
@@ -315,7 +315,7 @@ g_steal_pointer (gpointer pp)
315
315
  *
316
316
  * Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
317
317
  */
318
- #define g_new(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc)
318
+ #define g_new(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc)
319
319
  /**
320
320
  * g_new0:
321
321
  * @struct_type: the type of the elements to allocate.
@@ -332,7 +332,7 @@ g_steal_pointer (gpointer pp)
332
332
  *
333
333
  * Returns: a pointer to the allocated memory, cast to a pointer to @struct_type.
334
334
  */
335
- #define g_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc0)
335
+ #define g_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, malloc0)
336
336
  /**
337
337
  * g_renew:
338
338
  * @struct_type: the type of the elements to allocate
@@ -346,7 +346,7 @@ g_steal_pointer (gpointer pp)
346
346
  *
347
347
  * Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type
348
348
  */
349
- #define g_renew(struct_type, mem, n_structs) _G_RENEW (struct_type, mem, n_structs, realloc)
349
+ #define g_renew(struct_type, mem, n_structs) _G_RENEW (struct_type, mem, n_structs, realloc)
350
350
  /**
351
351
  * g_try_new:
352
352
  * @struct_type: the type of the elements to allocate
@@ -360,7 +360,7 @@ g_steal_pointer (gpointer pp)
360
360
  * Since: 2.8
361
361
  * Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
362
362
  */
363
- #define g_try_new(struct_type, n_structs) _G_NEW (struct_type, n_structs, try_malloc)
363
+ #define g_try_new(struct_type, n_structs) _G_NEW (struct_type, n_structs, try_malloc)
364
364
  /**
365
365
  * g_try_new0:
366
366
  * @struct_type: the type of the elements to allocate
@@ -375,7 +375,7 @@ g_steal_pointer (gpointer pp)
375
375
  * Since: 2.8
376
376
  * Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
377
377
  */
378
- #define g_try_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, try_malloc0)
378
+ #define g_try_new0(struct_type, n_structs) _G_NEW (struct_type, n_structs, try_malloc0)
379
379
  /**
380
380
  * g_try_renew:
381
381
  * @struct_type: the type of the elements to allocate
@@ -391,7 +391,7 @@ g_steal_pointer (gpointer pp)
391
391
  * Since: 2.8
392
392
  * Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type
393
393
  */
394
- #define g_try_renew(struct_type, mem, n_structs) _G_RENEW (struct_type, mem, n_structs, try_realloc)
394
+ #define g_try_renew(struct_type, mem, n_structs) _G_RENEW (struct_type, mem, n_structs, try_realloc)
395
395
 
396
396
 
397
397
  /* Memory allocation virtualization for debugging purposes
@@ -401,17 +401,17 @@ g_steal_pointer (gpointer pp)
401
401
  struct _GMemVTable {
402
402
  gpointer (*malloc) (gsize n_bytes);
403
403
  gpointer (*realloc) (gpointer mem,
404
- gsize n_bytes);
404
+ gsize n_bytes);
405
405
  void (*free) (gpointer mem);
406
406
  /* optional; set to NULL if not used ! */
407
407
  gpointer (*calloc) (gsize n_blocks,
408
- gsize n_block_bytes);
408
+ gsize n_block_bytes);
409
409
  gpointer (*try_malloc) (gsize n_bytes);
410
410
  gpointer (*try_realloc) (gpointer mem,
411
- gsize n_bytes);
411
+ gsize n_bytes);
412
412
  };
413
413
  GLIB_DEPRECATED_IN_2_46
414
- void g_mem_set_vtable (GMemVTable *vtable);
414
+ void g_mem_set_vtable (GMemVTable *vtable);
415
415
  GLIB_DEPRECATED_IN_2_46
416
416
  gboolean g_mem_is_system_malloc (void);
417
417
 
@@ -419,9 +419,9 @@ GLIB_VAR gboolean g_mem_gc_friendly;
419
419
 
420
420
  /* Memory profiler and checker, has to be enabled via g_mem_set_vtable()
421
421
  */
422
- GLIB_VAR GMemVTable *glib_mem_profiler_table;
422
+ GLIB_VAR GMemVTable *glib_mem_profiler_table;
423
423
  GLIB_DEPRECATED_IN_2_46
424
- void g_mem_profile (void);
424
+ void g_mem_profile (void);
425
425
 
426
426
  G_END_DECLS
427
427
 
@@ -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
@@ -43,8 +43,8 @@ G_BEGIN_DECLS
43
43
  /* calculate a string size, guaranteed to fit format + args.
44
44
  */
45
45
  GLIB_AVAILABLE_IN_ALL
46
- gsize g_printf_string_upper_bound (const gchar* format,
47
- va_list args) G_GNUC_PRINTF(1, 0);
46
+ gsize g_printf_string_upper_bound (const gchar* format,
47
+ va_list args) G_GNUC_PRINTF(1, 0);
48
48
 
49
49
  /* Log level shift offset for user defined
50
50
  * log levels (0-7 are used by GLib).
@@ -101,7 +101,7 @@ void g_log_default_handler (const gchar *log_domain,
101
101
  gpointer unused_data);
102
102
  GLIB_AVAILABLE_IN_ALL
103
103
  GLogFunc g_log_set_default_handler (GLogFunc log_func,
104
- gpointer user_data);
104
+ gpointer user_data);
105
105
  GLIB_AVAILABLE_IN_ALL
106
106
  void g_log (const gchar *log_domain,
107
107
  GLogLevelFlags log_level,
@@ -287,16 +287,16 @@ void g_log_set_debug_enabled (gboolean enabled);
287
287
  g_get_monotonic_time (), G_STRLOC)
288
288
 
289
289
  /* internal */
290
- void _g_log_fallback_handler (const gchar *log_domain,
291
- GLogLevelFlags log_level,
292
- const gchar *message,
293
- gpointer unused_data);
290
+ void _g_log_fallback_handler (const gchar *log_domain,
291
+ GLogLevelFlags log_level,
292
+ const gchar *message,
293
+ gpointer unused_data);
294
294
 
295
295
  /* Internal functions, used to implement the following macros */
296
296
  GLIB_AVAILABLE_IN_ALL
297
297
  void g_return_if_fail_warning (const char *log_domain,
298
- const char *pretty_function,
299
- const char *expression) G_ANALYZER_NORETURN;
298
+ const char *pretty_function,
299
+ const char *expression) G_ANALYZER_NORETURN;
300
300
  GLIB_AVAILABLE_IN_ALL
301
301
  void g_warn_message (const char *domain,
302
302
  const char *file,
@@ -306,10 +306,10 @@ void g_warn_message (const char *domain,
306
306
  G_NORETURN
307
307
  GLIB_DEPRECATED
308
308
  void g_assert_warning (const char *log_domain,
309
- const char *file,
310
- const int line,
311
- const char *pretty_function,
312
- const char *expression);
309
+ const char *file,
310
+ const int line,
311
+ const char *pretty_function,
312
+ const char *expression);
313
313
 
314
314
  GLIB_AVAILABLE_IN_2_56
315
315
  void g_log_structured_standard (const gchar *log_domain,