2004-12-03 22:17:46 +03:00
|
|
|
#ifndef MC_GLIBCOMPAT_H
|
|
|
|
#define MC_GLIBCOMPAT_H
|
2003-09-23 00:21:48 +04:00
|
|
|
|
2009-10-21 23:18:03 +04:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
2021-05-16 11:21:40 +03:00
|
|
|
#ifndef G_OPTION_ENTRY_NULL
|
|
|
|
#define G_OPTION_ENTRY_NULL \
|
|
|
|
{ NULL, '\0', 0, 0, NULL, NULL, NULL }
|
|
|
|
#endif /* G_OPTION_ENTRY_NULL */
|
|
|
|
|
2009-10-21 23:18:03 +04:00
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
2003-11-20 23:25:33 +03:00
|
|
|
|
2024-03-31 19:40:09 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 54, 0)
|
|
|
|
gboolean g_ptr_array_find_with_equal_func (GPtrArray * haystack, gconstpointer needle,
|
|
|
|
GEqualFunc equal_func, guint * index_);
|
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 54, 0) */
|
|
|
|
|
2020-01-24 21:21:35 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 63, 3)
|
2019-12-01 14:59:35 +03:00
|
|
|
void g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy);
|
|
|
|
void g_clear_list (GList ** list_ptr, GDestroyNotify destroy);
|
2020-01-24 21:21:35 +03:00
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */
|
2019-12-01 14:59:35 +03:00
|
|
|
|
2019-01-13 13:20:04 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 60, 0)
|
|
|
|
void g_queue_clear_full (GQueue * queue, GDestroyNotify free_func);
|
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */
|
|
|
|
|
2023-12-23 16:54:53 +03:00
|
|
|
#if ! GLIB_CHECK_VERSION (2, 77, 0)
|
|
|
|
GString *g_string_new_take (char *init);
|
|
|
|
#endif /* ! GLIB_CHECK_VERSION (2, 77, 0) */
|
|
|
|
|
2020-11-16 19:33:26 +03:00
|
|
|
/* There is no such API in GLib2 */
|
|
|
|
GString *mc_g_string_copy (GString * dest, const GString * src);
|
|
|
|
|
2021-02-28 18:31:30 +03:00
|
|
|
/* There is no such API in GLib2 */
|
|
|
|
GString *mc_g_string_dup (const GString * s);
|
|
|
|
|
2024-04-21 11:37:39 +03:00
|
|
|
/* There is no such API in GLib2 */
|
|
|
|
GString *mc_g_string_append_c_len (GString * s, gchar c, guint len);
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2003-09-23 00:21:48 +04:00
|
|
|
|
2009-10-21 23:18:03 +04:00
|
|
|
#endif /* MC_GLIBCOMPAT_H */
|