[geany/geany-plugins] c7981d: GeanyLaTeX: Replace NZV-makro with EMPTY-makro

Frank Lanitz git-noreply at xxxxx
Sun Mar 23 10:27:18 UTC 2014


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Sun, 23 Mar 2014 10:27:18 UTC
Commit:      c7981d6f258086270b37dad073bc1f8eae6a66e1
             https://github.com/geany/geany-plugins/commit/c7981d6f258086270b37dad073bc1f8eae6a66e1

Log Message:
-----------
GeanyLaTeX: Replace NZV-makro with EMPTY-makro


Modified Paths:
--------------
    geanylatex/src/geanylatex.c
    geanylatex/src/latexutils.c

Modified: geanylatex/src/geanylatex.c
10 files changed, 5 insertions(+), 5 deletions(-)
===================================================================
@@ -1447,7 +1447,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem,
 				break;
 			}
 		}
-		if (classoptions != NULL && NZV(orientation_string))
+		if (classoptions != NULL && !EMPTY(orientation_string))
 		{
 			classoptions = g_strconcat(classoptions, ",", orientation_string, NULL);
 			g_free(orientation_string);
@@ -1465,11 +1465,11 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem,
 			classoptions = g_strconcat(draft, NULL);
 			g_free(draft);
 		}
-		if (classoptions != NULL && NZV(fontsize))
+		if (classoptions != NULL && !EMPTY(fontsize))
 		{
 			classoptions = g_strconcat(classoptions, ",", fontsize, NULL);
 		}
-		else if (classoptions == NULL && NZV(fontsize))
+		else if (classoptions == NULL && !EMPTY(fontsize))
 		{
 			classoptions = g_strdup(fontsize);
 		}
@@ -1594,7 +1594,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem,
 					break;
 				}
 			}
-			if (NZV(author))
+			if (!EMPTY(author))
 			{
 				gchar* author_string = NULL;
 				if (documentclass_int == 3)
@@ -1628,7 +1628,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem,
 				g_free(author_string);
 			}
 
-			if (NZV(date))
+			if (!EMPTY(date))
 			{
 				gchar *date_string = NULL;
 				date_string = g_strconcat("\\date{", date, "}\n", NULL);


Modified: geanylatex/src/latexutils.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -64,7 +64,7 @@ void glatex_usepackage(const gchar *pkg, const gchar *options)
 
 			pos = sci_get_position_from_line(doc->editor->sci, i);
 			/* Building up package string and inserting it */
-			if (NZV(options))
+			if (!EMPTY(options))
 			{
 				packagestring = g_strconcat("\\usepackage[", options,
 					"]{", pkg, "}\n", NULL);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list