Branch: refs/heads/master
Author: Frank Lanitz <frank(a)frank.uvena.de>
Committer: Frank Lanitz <frank(a)frank.uvena.de>
Date: Wed, 09 Mar 2016 18:45:14 UTC
Commit: 7c15fe7cdcd83b56c9ae57bbe55d2fa78876a386
https://github.com/geany/geany-plugins/commit/7c15fe7cdcd83b56c9ae57bbe55d2…
Log Message:
-----------
Merge pull request #396 from b4n/implicit-declarations
Fix implicit function declarations by including appropriate headers
Modified Paths:
--------------
codenav/src/utils.c
shiftcolumn/src/shiftcolumn.c
Modified: codenav/src/utils.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -21,6 +21,8 @@
#include "utils.h"
+#include <geanyplugin.h>
+
/**
* @brief Function which returns the extension of the file path which
* is given, or NULL if it did not found any extension.
Modified: shiftcolumn/src/shiftcolumn.c
9 lines changed, 1 insertions(+), 8 deletions(-)
===================================================================
@@ -23,19 +23,12 @@
# include "config.h"
#endif
-#include "geany.h"
-#include "support.h"
+#include <geanyplugin.h>
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
-#include "ui_utils.h"
-
-#include "document.h"
-#include "keybindings.h"
-#include "plugindata.h"
-
#include <glib.h>
#include <glib/gprintf.h>
#include <gdk/gdkkeysyms.h>
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Frank Lanitz <frank(a)frank.uvena.de>
Committer: Frank Lanitz <frank(a)frank.uvena.de>
Date: Tue, 08 Mar 2016 17:41:50 UTC
Commit: 42afeaed5f52dc88893c91cf970f997f621459f7
https://github.com/geany/geany-plugins/commit/42afeaed5f52dc88893c91cf970f9…
Log Message:
-----------
Merge pull request #391 from b4n/lineoperations/leak
lineoperations: Fix a memory leak found by cppcheck
Modified Paths:
--------------
lineoperations/src/linefunctions.c
Modified: lineoperations/src/linefunctions.c
4 lines changed, 0 insertions(+), 4 deletions(-)
===================================================================
@@ -286,17 +286,13 @@ void rmwhspln(GeanyDocument *doc) {
/* Sort Lines Ascending and Descending */
void sortlines(GeanyDocument *doc, gboolean asc) {
- gint total_num_chars; /* number of characters in the document */
gint total_num_lines; /* number of lines in the document */
gchar **lines; /* array to hold all lines in the document */
gchar *new_file; /* *final* string to replace current document */
gint i; /* iterator */
- total_num_chars = sci_get_length(doc->editor->sci);
total_num_lines = sci_get_line_count(doc->editor->sci);
lines = g_malloc(sizeof(gchar *) * (total_num_lines+1));
- new_file = g_malloc(sizeof(gchar) * (total_num_chars+1));
- new_file[0] = '\0';
/* if file is not empty, ensure that the file ends with newline */
if(total_num_lines != 1)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).