From 9d8b9652702c6a94fe0a9aaec6473dbdae4cc374 Mon Sep 17 00:00:00 2001 From: versat Date: Mon, 1 Apr 2019 15:33:27 +0200 Subject: [PATCH] gtk.cfg: Add / improve g_string_*() function configurations. daca@home reported missing configurations for most of them. --- cfg/gtk.cfg | 144 ++++++++++++++++++++++++++++++++++++++++++++++++- test/cfg/gtk.c | 4 ++ 2 files changed, 146 insertions(+), 2 deletions(-) diff --git a/cfg/gtk.cfg b/cfg/gtk.cfg index 160d93c71..55076932d 100644 --- a/cfg/gtk.cfg +++ b/cfg/gtk.cfg @@ -4993,9 +4993,20 @@ false + false + + + + + + + + + + @@ -5005,9 +5016,22 @@ false + false + + + + + + + + + + + + @@ -5033,25 +5057,63 @@ false + false + + g_string_down has been deprecated since version 2.2 and should not be used in newly-written code. This function uses the locale-specific tolower() function, which is almost never the right thing. Use g_string_ascii_down() or g_utf8_strdown() instead. + + + + + false + + + + + + + + + false - - + + false + + + + + + + + + + false + + + + false + + + + + + + @@ -5069,6 +5131,30 @@ false + + + false + + + + + + + + + + false + + + + + + + + + + + false @@ -5101,13 +5187,67 @@ false + + + false + + + + + + 0: + + + + + + false + + g_string_sprintf is deprecated and should not be used in newly-written code. This function has been renamed to g_string_printf(). + + + + + + + + + + + + + + + + false + + g_string_sprintfa is deprecated and should not be used in newly-written code. This function has been renamed to g_string_append_printf() + + + + + + + + + + + + false + false + + g_string_up has been deprecated since version 2.2 and should not be used in newly-written code. This function uses the locale-specific toupper() function, which is almost never the right thing. Use g_string_ascii_up() or g_utf8_strup() instead. + + + + diff --git a/test/cfg/gtk.c b/test/cfg/gtk.c index 3858b3aa1..72211c169 100644 --- a/test/cfg/gtk.c +++ b/test/cfg/gtk.c @@ -42,6 +42,10 @@ void validCode(int argInt) g_print("test"); g_print("%d", 1); g_printerr("err"); + + GString * pGStr1 = g_string_new("test"); + g_string_append(pGStr1, "a"); + g_string_free(pGStr1, TRUE); } void g_malloc_test()