40 #define G_DIR_SEPARATOR '\\'
41 #define G_DIR_SEPARATOR_S "\\"
42 #define G_SEARCHPATH_SEPARATOR ';'
43 #define G_SEARCHPATH_SEPARATOR_S ";"
49 #define G_DIR_SEPARATOR '/'
50 #define G_DIR_SEPARATOR_S "/"
51 #define G_SEARCHPATH_SEPARATOR ':'
52 #define G_SEARCHPATH_SEPARATOR_S ":"
59 #if !defined (G_VA_COPY)
60 # if defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) || defined (_WIN32))
61 # define G_VA_COPY(ap1, ap2) (*(ap1) = *(ap2))
62 # elif defined (G_VA_COPY_AS_ARRAY)
63 # define G_VA_COPY(ap1, ap2) g_memmove ((ap1), (ap2), sizeof (va_list))
65 # define G_VA_COPY(ap1, ap2) ((ap1) = (ap2))
80 #ifdef G_IMPLEMENT_INLINES
81 # define G_INLINE_FUNC extern
85 # define G_CAN_INLINE 1
87 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
89 # define inline __inline__
90 #elif !defined (G_HAVE_INLINE)
92 # if defined (G_HAVE___INLINE__)
93 # define inline __inline__
94 # elif defined (G_HAVE___INLINE)
95 # define inline __inline
98 # ifndef G_INLINE_FUNC
103 #ifndef G_INLINE_FUNC
104 # if defined (__GNUC__) && (__OPTIMIZE__)
105 # define G_INLINE_FUNC extern inline
106 # elif defined (G_CAN_INLINE) && !defined (__GNUC__)
107 # define G_INLINE_FUNC static inline
109 # define G_INLINE_FUNC extern
152 #ifndef G_DISABLE_DEPRECATED
159 #define g_dirname g_path_get_dirname
186 # define ATEXIT(proc) g_ATEXIT(proc)
188 # define G_NATIVE_ATEXIT
225 #if defined (G_CAN_INLINE) || defined (__G_UTILS_C__)
233 if (mask & (1 << (
gulong) nth_bit))
236 while (nth_bit < 32);
248 if (mask & (1 << (
gulong) nth_bit))
273 data->
next = *stack_p;
284 *stack_p = data->
next;
308 for (data = *stack_p;
data; data = data->
next)
325 #define GLIB_CHECK_VERSION(major,minor,micro) \
326 (GLIB_MAJOR_VERSION > (major) || \
327 (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \
328 (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && \
329 GLIB_MICRO_VERSION >= (micro)))
G_CONST_RETURN gchar * g_get_user_name(void)
gint gint g_vsnprintf(gchar *string, gulong n, gchar const *format, va_list args)
int n_bits(rsa_NUMBER *, int)
G_INLINE_FUNC gpointer g_trash_stack_pop(GTrashStack **stack_p)
G_INLINE_FUNC gpointer g_trash_stack_peek(GTrashStack **stack_p)
gchar * g_get_current_dir(void)
gboolean g_path_is_absolute(const gchar *file_name)
void g_atexit(GVoidFunc func)
gchar * g_path_get_dirname(const gchar *file_name)
G_BEGIN_DECLS typedef char gchar
G_CONST_RETURN gchar * g_get_tmp_dir(void)
G_CONST_RETURN gchar * g_get_home_dir(void)
G_CONST_RETURN gchar * g_get_real_name(void)
G_CONST_RETURN gchar * g_basename(const gchar *file_name)
GLIB_VAR const guint glib_minor_version
G_CONST_RETURN gchar * g_path_skip_root(const gchar *file_name)
G_INLINE_FUNC guint g_trash_stack_height(GTrashStack **stack_p)
gchar * g_get_prgname(void)
GLIB_VAR const guint glib_interface_age
gchar * g_path_get_basename(const gchar *file_name)
void g_set_prgname(const gchar *prgname)
GLIB_VAR const guint glib_major_version
G_INLINE_FUNC void g_trash_stack_push(GTrashStack **stack_p, gpointer data_p)
gchar * g_find_program_in_path(const gchar *program)
g_find_program_in_path: : a program name
double func(double *x, double *p)
gint g_snprintf(gchar *string, gulong n, gchar const *format,...) G_GNUC_PRINTF(3
G_INLINE_FUNC gint g_bit_nth_lsf(gulong mask, gint nth_bit)
void g_nullify_pointer(gpointer *nullify_location)
g_nullify_pointer: : the memory address of the pointer.
typedef void((*Func_t)())
G_INLINE_FUNC guint g_bit_storage(gulong number)
GLIB_VAR const guint glib_binary_age
G_INLINE_FUNC gint g_bit_nth_msf(gulong mask, gint nth_bit)
guint g_parse_debug_string(const gchar *string, const GDebugKey *keys, guint nkeys)
#define G_GNUC_PRINTF(format_idx, arg_idx)
GLIB_VAR const guint glib_micro_version
G_CONST_RETURN gchar * g_getenv(const gchar *variable)