[geany/geany-plugins] 2e2e04: lineoperations: changed g_strcmp0() to strcmp()
Sylvan Mostert
git-noreply at xxxxx
Fri Jan 15 22:51:45 UTC 2016
Branch: refs/heads/master
Author: Sylvan Mostert <smostert.dev at gmail.com>
Committer: Sylvan Mostert <smostert.dev at gmail.com>
Date: Fri, 15 Jan 2016 22:51:45 UTC
Commit: 2e2e043318fd2630cd05f1ee95c49fcdb019b6f7
https://github.com/geany/geany-plugins/commit/2e2e043318fd2630cd05f1ee95c49fcdb019b6f7
Log Message:
-----------
lineoperations: changed g_strcmp0() to strcmp()
Modified Paths:
--------------
lineoperations/src/linefunctions.c
lineoperations/src/linefunctions.h
Modified: lineoperations/src/linefunctions.c
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -25,14 +25,14 @@
/* comparison function to be used in qsort */
static gint compare_asc(const void * a, const void * b)
{
- return g_strcmp0(*(const gchar **) a, *(const gchar **) b);
+ return strcmp(*(const gchar **) a, *(const gchar **) b);
}
/* comparison function to be used in qsort */
static gint compare_desc(const void * a, const void * b)
{
- return g_strcmp0(*(const gchar **) b, *(const gchar **) a);
+ return strcmp(*(const gchar **) b, *(const gchar **) a);
}
@@ -176,7 +176,7 @@ void rmunqln(GeanyDocument *doc) {
/* copy **lines into 'new_file' if it is not FALSE(not duplicate) */
for(i = 0; i < total_num_lines; i++)
if(!to_remove[i])
- nf_end = g_stpcpy(nf_end, lines[i]);
+ nf_end = g_stpcpy(nf_end, lines[i]);
/* set new document */
sci_set_text(doc->editor->sci, new_file);
Modified: lineoperations/src/linefunctions.h
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -25,8 +25,8 @@
#include "geanyplugin.h"
#include "Scintilla.h"
-//#include <ctype.h> /* isspace */
-#include <stdlib.h> /* qsort */
+#include <stdlib.h> /* qsort */
+#include <string.h>
/* Remove Duplicate Lines, sorted */
--------------
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