Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Sun, 23 Mar 2014 10:24:11 UTC Commit: ff7cef0f655b7251fdbb265c39e1e2911216c954 https://github.com/geany/geany-plugins/commit/ff7cef0f655b7251fdbb265c39e1e2...
Log Message: ----------- GeanyDoc: Replace NZV-makro with EMPTY-makro
Modified Paths: -------------- geanydoc/src/config.c geanydoc/src/geanydoc.c
Modified: geanydoc/src/config.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -111,12 +111,12 @@ gchar *key = g_strdup_printf("command%d", cmd_num); ret = utils_get_setting_string(config, lang, key, ""); g_free(key); - if (!NZV(ret)) + if (EMPTY(ret)) return ret; key = g_strdup_printf("command%d", cmd_num + 1); tmp = utils_get_setting_string(config, lang, key, ""); g_free(key); - if (NZV(tmp)) + if (! EMPTY(tmp)) *intern = TRUE; else *intern = utils_get_setting_boolean(config, lang, "internal", FALSE);
Modified: geanydoc/src/geanydoc.c 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -185,7 +185,7 @@
ftype = doc->file_type->name; command = config_get_command(ftype, cmd_num, &intern); - if (!NZV(command)) + if (EMPTY(command)) { g_free(command); return; @@ -201,7 +201,7 @@ if (intern) { g_spawn_command_line_sync(command, &tmp, NULL, NULL, NULL); - if (NZV(tmp)) + if (! EMPTY(tmp)) { show_output(tmp, "*DOC*", NULL, doc->file_type->id); } @@ -271,11 +271,11 @@
if (from != NULL) { - if (NZV(cmd0_txt)) + if (! EMPTY(cmd0_txt)) g_key_file_set_string(config, from, "command0", cmd0_txt); else g_key_file_remove_key(config, from, "command0", NULL); - if (NZV(cmd1_txt)) + if (! EMPTY(cmd1_txt)) g_key_file_set_string(config, from, "command1", cmd1_txt); else g_key_file_remove_key(config, from, "command1", NULL);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org