+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
+Sat Jul 31 17:52:03 PDT 1999 Manish Singh <yosh@gimp.org>
+
+ * glib.h
+ * gstrfuncs.c: the #define for g_strescape interfered with the
+ compilation of the function, so just remove the function and
+ note that it's deprecated in the header
+
1999-08-01 Tor Lillqvist <tml@iki.fi>
* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
const gchar *source,
const gchar *exceptions);
-/* deprecated function */
-gchar* g_strescape (gchar *string);
-
-/* Define a macro for it */
-#define g_strescape(src) g_strecpy (g_malloc (strlen (src)*4+1), src, NULL)
+/* deprecated function (used to be a real function) */
+#define g_strescape(src) g_strecpy (g_new (char, strlen (src)*4+1), (src), NULL)
gpointer g_memdup (gconstpointer mem,
guint byte_size);
const gchar *source,
const gchar *exceptions);
-/* deprecated function */
-gchar* g_strescape (gchar *string);
-
-/* Define a macro for it */
-#define g_strescape(src) g_strecpy (g_malloc (strlen (src)*4+1), src, NULL)
+/* deprecated function (used to be a real function) */
+#define g_strescape(src) g_strecpy (g_new (char, strlen (src)*4+1), (src), NULL)
gpointer g_memdup (gconstpointer mem,
guint byte_size);
if ((*p < ' ') || (*p >= 0177))
{
*q++ = '\\';
- *q++ = '0' + (((*p) >> 6)&07);
- *q++ = '0' + (((*p) >> 3)&07);
- *q++ = '0' + ((*p)&07);
+ *q++ = '0' + (((*p) >> 6) & 07);
+ *q++ = '0' + (((*p) >> 3) & 07);
+ *q++ = '0' + ((*p) & 07);
}
else
*q++ = *p;
return dest;
}
-gchar*
-g_strescape (gchar *string)
-{
- gchar *q;
- gchar *escaped;
- guint escapes_needed = 0;
- gchar *p = string;
-
- g_message ("g_strescape() is deprecated");
-
- g_return_val_if_fail (string != NULL, NULL);
-
- while (*p != '\000')
- {
- escapes_needed += (*p == '\\' || *p == '"');
- p++;
- }
-
- if (!escapes_needed)
- return g_strdup (string);
-
- escaped = g_new (gchar, strlen (string) + escapes_needed + 1);
-
- p = string;
- q = escaped;
-
- while (*p != '\000')
- {
- if (*p == '\\' || *p == '"')
- *q++ = '\\';
- *q++ = *p++;
- }
- *q = '\000';
-
- return escaped;
-}
-
/* blame Elliot for these next five routines */
gchar*
g_strchug (gchar *string)
if ((*p < ' ') || (*p >= 0177))
{
*q++ = '\\';
- *q++ = '0' + (((*p) >> 6)&07);
- *q++ = '0' + (((*p) >> 3)&07);
- *q++ = '0' + ((*p)&07);
+ *q++ = '0' + (((*p) >> 6) & 07);
+ *q++ = '0' + (((*p) >> 3) & 07);
+ *q++ = '0' + ((*p) & 07);
}
else
*q++ = *p;
return dest;
}
-gchar*
-g_strescape (gchar *string)
-{
- gchar *q;
- gchar *escaped;
- guint escapes_needed = 0;
- gchar *p = string;
-
- g_message ("g_strescape() is deprecated");
-
- g_return_val_if_fail (string != NULL, NULL);
-
- while (*p != '\000')
- {
- escapes_needed += (*p == '\\' || *p == '"');
- p++;
- }
-
- if (!escapes_needed)
- return g_strdup (string);
-
- escaped = g_new (gchar, strlen (string) + escapes_needed + 1);
-
- p = string;
- q = escaped;
-
- while (*p != '\000')
- {
- if (*p == '\\' || *p == '"')
- *q++ = '\\';
- *q++ = *p++;
- }
- *q = '\000';
-
- return escaped;
-}
-
/* blame Elliot for these next five routines */
gchar*
g_strchug (gchar *string)