2006-06-05 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gstrfuncs.c: Revert accidental commit.
* glib/gmain.c (get_dispatch): Don't leak the
dispatch struct. (#321886)
2006-06-05 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gstrfuncs.c: Revert accidental commit.
* glib/gmain.c (get_dispatch): Don't leak the
dispatch struct. (#321886)
#include "config.h"
-#define __G_STRFUNCS_C__
#define _GNU_SOURCE /* For stpcpy */
#include <stdarg.h>
else
new_str = NULL;
- g_mem_mark_type (new_str, G_MEM_TYPE_STRING, 0);
return new_str;
}
else
new_str = NULL;
- g_mem_mark_type (new_str, G_MEM_TYPE_STRING, 0);
return new_str;
}
g_vasprintf (&string, format, args);
- g_mem_mark_type (string, G_MEM_TYPE_STRING, 0);
return string;
}
decimal_point[1] != 0)
{
p = nptr;
-
/* Skip leading space */
while (g_ascii_isspace (*p))
p++;
result = g_strndup (str, len);
for (s = result; *s; s++)
*s = g_ascii_tolower (*s);
-
- g_mem_mark_type (result, G_MEM_TYPE_STRING, 0);
+
return result;
}
for (s = result; *s; s++)
*s = g_ascii_toupper (*s);
- g_mem_mark_type (result, G_MEM_TYPE_STRING, 0);
return result;
}