IRIX patch for Glib-1.042



1. C++ comments now allowed in C source files.
2. C89 doesn't allow for non-static member initialization.

-- 
albert chin (china thewrittenword com)

-- snip snip
--- Glib.xs.orig        Thu Jun  3 08:19:49 2004
+++ Glib.xs     Thu Jun  3 08:19:59 2004
@@ -358,7 +358,7 @@
        GError * error = NULL;
     PPCODE:
        /* support multiple call syntaxes. */
-       //uri = items < 2 ? SvGChar (ST (0)) : SvGChar (ST (1));
+       /*uri = items < 2 ? SvGChar (ST (0)) : SvGChar (ST (1));*/
        uri = items < 2 ? SvPVutf8_nolen (ST (0)) : SvPVutf8_nolen (ST (1));
        filename = g_filename_from_uri (uri,
                                        GIMME_V == G_ARRAY ? &hostname : NULL, 
@@ -381,7 +381,7 @@
        char * hostname = NULL;
        GError * error = NULL;
     CODE:
-       // FIXME FIXME this is broken somehow
+       /* FIXME FIXME this is broken somehow */
        if (items == 2) {
                filename = SvPV_nolen (ST (0));
                hostname = SvOK (ST (1)) ? SvPV_nolen (ST (1)) : NULL;
--- GLog.xs.orig        Thu Jun  3 08:21:14 2004
+++ GLog.xs     Thu Jun  3 13:25:03 2004
@@ -189,12 +189,11 @@
 g_log_set_handler (class, gchar_ornull * log_domain, SV * log_levels, SV * log_func, SV * user_data=NULL)
     PREINIT:
        GPerlCallback * callback;
-       GType param_types[] = {
-               G_TYPE_STRING,
-               g_log_level_flags_get_type (),
-               G_TYPE_STRING
-       };
+       GType param_types[3];
     CODE:
+       param_types[0] = G_TYPE_STRING;
+       param_types[1] = g_log_level_flags_get_type ();
+       param_types[2] = G_TYPE_STRING;
        callback = gperl_callback_new (log_func, user_data,
                                       3, param_types, G_TYPE_NONE);
        RETVAL = g_log_set_handler (log_domain,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]