lists.geany.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
List overview
Plugins-Commits
October 2017
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
plugins-commits@lists.geany.org
1 participants
71 discussions
Start a n
N
ew thread
[geany/geany-plugins] 952172: geanylua: Increased required geany API version to 235 for usage of 'utils_get_real_path'.
by LarsDW223
04 Oct '17
04 Oct '17
Branch: refs/heads/master Author: LarsDW223 <lars_paulsen(a)web.de> Committer: LarsDW223 <lars_paulsen(a)web.de> Date: Wed, 04 Oct 2017 16:29:11 UTC Commit: 9521729cc1bd9049f4ecb86b030649061a30a7ad
https://github.com/geany/geany-plugins/commit/9521729cc1bd9049f4ecb86b03064…
Log Message: ----------- geanylua: Increased required geany API version to 235 for usage of 'utils_get_real_path'. Modified Paths: -------------- geanylua/glspi_ver.h Modified: geanylua/glspi_ver.h 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -12,7 +12,7 @@ #define PLUGIN_AUTHOR "Jeff Pohlmeyer" -#define MY_GEANY_API_VER 224 +#define MY_GEANY_API_VER 235 #define LUA_MODULE_NAME "geany" -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] bb88d4: Projectorganizer: Initialize loop variable
by Frank Lanitz
03 Oct '17
03 Oct '17
Branch: refs/heads/master Author: Frank Lanitz <frank(a)frank.uvena.de> Committer: Frank Lanitz <frank(a)frank.uvena.de> Date: Tue, 03 Oct 2017 08:13:50 UTC Commit: bb88d4c1ca65aff0b102fc10c04e1d8b61d96d5c
https://github.com/geany/geany-plugins/commit/bb88d4c1ca65aff0b102fc10c04e1…
Log Message: ----------- Projectorganizer: Initialize loop variable Modified Paths: -------------- projectorganizer/src/prjorg-project.c Modified: projectorganizer/src/prjorg-project.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -75,7 +75,7 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, GSList *list = NULL; GDir *dir; const gchar *child_name; - GSList *child; + GSList *child = NULL; GSList *children = NULL; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); gchar *real_path = utils_get_real_path(locale_path); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] a5e36d: Merge pull request #609 from LarsGit223/prjorg_dep_real_path
by Frank Lanitz
03 Oct '17
03 Oct '17
Branch: refs/heads/master Author: Frank Lanitz <frank(a)frank.uvena.de> Committer: GitHub <noreply(a)github.com> Date: Tue, 03 Oct 2017 07:48:55 UTC Commit: a5e36d0dc69ade3ec7683fdeddceac93338146fa
https://github.com/geany/geany-plugins/commit/a5e36d0dc69ade3ec7683fdeddcea…
Log Message: ----------- Merge pull request #609 from LarsGit223/prjorg_dep_real_path projectorganizer: Replace deprecated tm_get_real_path(). Modified Paths: -------------- projectorganizer/src/prjorg-project.c Modified: projectorganizer/src/prjorg-project.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -78,7 +78,7 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, GSList *child; GSList *children = NULL; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); - gchar *real_path = tm_get_real_path(locale_path); + gchar *real_path = utils_get_real_path(locale_path); dir = g_dir_open(locale_path, 0, NULL); if (!dir || !real_path || g_hash_table_lookup(visited_paths, real_path)) @@ -412,8 +412,8 @@ static gint root_comparator(PrjOrgRoot *a, PrjOrgRoot *b) a_locale_base_dir = utils_get_locale_from_utf8(a->base_dir); b_locale_base_dir = utils_get_locale_from_utf8(b->base_dir); - a_realpath = tm_get_real_path(a_locale_base_dir); - b_realpath = tm_get_real_path(b_locale_base_dir); + a_realpath = utils_get_real_path(a_locale_base_dir); + b_realpath = utils_get_real_path(b_locale_base_dir); res = g_strcmp0(a_realpath, b_realpath); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] a1e06e: Merge pull request #610 from LarsGit223/gnylua_dep_real_path
by Frank Lanitz
03 Oct '17
03 Oct '17
Branch: refs/heads/master Author: Frank Lanitz <frank(a)frank.uvena.de> Committer: GitHub <noreply(a)github.com> Date: Tue, 03 Oct 2017 07:47:53 UTC Commit: a1e06ef1de55716f4deb754b9435490e811ac70b
https://github.com/geany/geany-plugins/commit/a1e06ef1de55716f4deb754b94354…
Log Message: ----------- Merge pull request #610 from LarsGit223/gnylua_dep_real_path geanylua: Replace deprecated tm_get_real_path(). Modified Paths: -------------- geanylua/glspi_app.c geanylua/gsdlg.c Modified: geanylua/glspi_app.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -256,7 +256,7 @@ static gint glspi_fullpath(lua_State* L) const gchar *fn=NULL; if (!lua_isstring(L,1)) { return FAIL_STRING_ARG(1); } fn=lua_tostring(L,1); - rp=tm_get_real_path(fn); + rp=utils_get_real_path(fn); if (rp) { lua_pushstring(L,rp); g_free(rp); Modified: geanylua/gsdlg.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -106,7 +106,7 @@ static void file_btn_clicked(GtkButton *button, gpointer user_data) fn=gtk_entry_get_text(GTK_ENTRY(user_data)); if (fn && *fn) { if (g_file_test(fn,G_FILE_TEST_IS_REGULAR)) { - gchar *rp=tm_get_real_path(fn); + gchar *rp=utils_get_real_path(fn); gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg), rp); if (rp) g_free(rp); } else { @@ -115,7 +115,7 @@ static void file_btn_clicked(GtkButton *button, gpointer user_data) } else { gchar *dn=g_path_get_dirname(fn); if (g_file_test(dn,G_FILE_TEST_IS_DIR)) { - gchar *rp=tm_get_real_path(dn); + gchar *rp=utils_get_real_path(dn); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dlg), rp); if (rp) g_free(rp); bn=g_path_get_basename(fn); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 759f1f: geanylua: Replace deprecated tm_get_real_path().
by LarsDW223
02 Oct '17
02 Oct '17
Branch: refs/heads/master Author: LarsDW223 <lars_paulsen(a)web.de> Committer: LarsDW223 <lars_paulsen(a)web.de> Date: Mon, 02 Oct 2017 17:24:47 UTC Commit: 759f1fe2fab7350ab35dfc898c4e87ee3c76b1be
https://github.com/geany/geany-plugins/commit/759f1fe2fab7350ab35dfc898c4e8…
Log Message: ----------- geanylua: Replace deprecated tm_get_real_path(). Modified Paths: -------------- geanylua/glspi_app.c geanylua/gsdlg.c Modified: geanylua/glspi_app.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -256,7 +256,7 @@ static gint glspi_fullpath(lua_State* L) const gchar *fn=NULL; if (!lua_isstring(L,1)) { return FAIL_STRING_ARG(1); } fn=lua_tostring(L,1); - rp=tm_get_real_path(fn); + rp=utils_get_real_path(fn); if (rp) { lua_pushstring(L,rp); g_free(rp); Modified: geanylua/gsdlg.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -106,7 +106,7 @@ static void file_btn_clicked(GtkButton *button, gpointer user_data) fn=gtk_entry_get_text(GTK_ENTRY(user_data)); if (fn && *fn) { if (g_file_test(fn,G_FILE_TEST_IS_REGULAR)) { - gchar *rp=tm_get_real_path(fn); + gchar *rp=utils_get_real_path(fn); gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dlg), rp); if (rp) g_free(rp); } else { @@ -115,7 +115,7 @@ static void file_btn_clicked(GtkButton *button, gpointer user_data) } else { gchar *dn=g_path_get_dirname(fn); if (g_file_test(dn,G_FILE_TEST_IS_DIR)) { - gchar *rp=tm_get_real_path(dn); + gchar *rp=utils_get_real_path(dn); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dlg), rp); if (rp) g_free(rp); bn=g_path_get_basename(fn); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 9588eb: projectorganizer: Replace deprecated tm_get_real_path().
by LarsDW223
02 Oct '17
02 Oct '17
Branch: refs/heads/master Author: LarsDW223 <lars_paulsen(a)web.de> Committer: LarsDW223 <lars_paulsen(a)web.de> Date: Mon, 02 Oct 2017 17:18:49 UTC Commit: 9588eb76dfa22f5a845883d473842395fb234f66
https://github.com/geany/geany-plugins/commit/9588eb76dfa22f5a845883d473842…
Log Message: ----------- projectorganizer: Replace deprecated tm_get_real_path(). Modified Paths: -------------- projectorganizer/src/prjorg-project.c Modified: projectorganizer/src/prjorg-project.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -78,7 +78,7 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, GSList *child; GSList *children = NULL; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); - gchar *real_path = tm_get_real_path(locale_path); + gchar *real_path = utils_get_real_path(locale_path); dir = g_dir_open(locale_path, 0, NULL); if (!dir || !real_path || g_hash_table_lookup(visited_paths, real_path)) @@ -412,8 +412,8 @@ static gint root_comparator(PrjOrgRoot *a, PrjOrgRoot *b) a_locale_base_dir = utils_get_locale_from_utf8(a->base_dir); b_locale_base_dir = utils_get_locale_from_utf8(b->base_dir); - a_realpath = tm_get_real_path(a_locale_base_dir); - b_realpath = tm_get_real_path(b_locale_base_dir); + a_realpath = utils_get_real_path(a_locale_base_dir); + b_realpath = utils_get_real_path(b_locale_base_dir); res = g_strcmp0(a_realpath, b_realpath); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] daa71c: Workbench: fixed not closed file handles on directory scanning (thanks to techee). Fixes #607.
by LarsDW223
02 Oct '17
02 Oct '17
Branch: refs/heads/master Author: LarsDW223 <lars_paulsen(a)web.de> Committer: LarsDW223 <lars_paulsen(a)web.de> Date: Mon, 02 Oct 2017 17:03:59 UTC Commit: daa71c69ffd689e08f6b31cc0b67d4bf3adf4b9e
https://github.com/geany/geany-plugins/commit/daa71c69ffd689e08f6b31cc0b67d…
Log Message: ----------- Workbench: fixed not closed file handles on directory scanning (thanks to techee). Fixes #607. Modified Paths: -------------- workbench/src/plugin_main.c workbench/src/wb_project.c Modified: workbench/src/plugin_main.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -128,7 +128,7 @@ void geany_load_module(GeanyPlugin *plugin) /* Set metadata */ plugin->info->name = _("Workbench"); plugin->info->description = _("Manage and customize multiple projects."); - plugin->info->version = "1.0"; + plugin->info->version = "1.01"; plugin->info->author = "LarsGit223"; /* Set functions */ Modified: workbench/src/wb_project.c 16 lines changed, 11 insertions(+), 5 deletions(-) =================================================================== @@ -228,6 +228,9 @@ static GSList *wb_project_dir_get_file_list(WB_PROJECT_DIR *root, const gchar *u { GSList *list = NULL; GDir *dir; + const gchar *child_name; + GSList *child; + GSList *children = NULL; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); gchar *real_path = utils_get_real_path(locale_path); @@ -245,14 +248,17 @@ static GSList *wb_project_dir_get_file_list(WB_PROJECT_DIR *root, const gchar *u g_hash_table_insert(visited_paths, real_path, GINT_TO_POINTER(1)); - while (TRUE) + while ((child_name = g_dir_read_name(dir))) + children = g_slist_prepend(children, g_strdup(child_name)); + + g_dir_close(dir); + + foreach_slist(child, children) { const gchar *locale_name; gchar *locale_filename, *utf8_filename, *utf8_name; - locale_name = g_dir_read_name(dir); - if (!locale_name) - break; + locale_name = child->data; utf8_name = utils_get_utf8_from_locale(locale_name); locale_filename = g_build_filename(locale_path, locale_name, NULL); @@ -287,7 +293,7 @@ static GSList *wb_project_dir_get_file_list(WB_PROJECT_DIR *root, const gchar *u g_free(utf8_name); } - g_dir_close(dir); + g_slist_free_full(children, g_free); g_free(locale_path); return list; -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] c29597: Merge pull request #605 from techee/free_dir
by Frank Lanitz
02 Oct '17
02 Oct '17
Branch: refs/heads/master Author: Frank Lanitz <frank(a)frank.uvena.de> Committer: GitHub <noreply(a)github.com> Date: Mon, 02 Oct 2017 10:30:31 UTC Commit: c29597734a17c63448dabf8fc82043c8ea16efba
https://github.com/geany/geany-plugins/commit/c29597734a17c63448dabf8fc8204…
Log Message: ----------- Merge pull request #605 from techee/free_dir projectorganizer: Close dir created with g_dir_open() in some special cases Modified Paths: -------------- projectorganizer/src/prjorg-project.c Modified: projectorganizer/src/prjorg-project.c 18 lines changed, 13 insertions(+), 5 deletions(-) =================================================================== @@ -74,6 +74,9 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, { GSList *list = NULL; GDir *dir; + const gchar *child_name; + GSList *child; + GSList *children = NULL; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); gchar *real_path = tm_get_real_path(locale_path); @@ -82,19 +85,24 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, { g_free(locale_path); g_free(real_path); + if (dir) + g_dir_close(dir); return NULL; } g_hash_table_insert(visited_paths, real_path, GINT_TO_POINTER(1)); - while (TRUE) + while ((child_name = g_dir_read_name(dir))) + children = g_slist_prepend(children, g_strdup(child_name)); + + g_dir_close(dir); + + foreach_slist(child, children) { const gchar *locale_name; gchar *locale_filename, *utf8_filename, *utf8_name; - locale_name = g_dir_read_name(dir); - if (!locale_name) - break; + locale_name = child->data; utf8_name = utils_get_utf8_from_locale(locale_name); locale_filename = g_build_filename(locale_path, locale_name, NULL); @@ -123,7 +131,7 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, g_free(utf8_name); } - g_dir_close(dir); + g_slist_free_full(children, g_free); g_free(locale_path); return list; -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 114871: Merge pull request #606 from eht16/workbench_cppcheck_initialize_loop_vars
by Frank Lanitz
02 Oct '17
02 Oct '17
Branch: refs/heads/master Author: Frank Lanitz <frank(a)frank.uvena.de> Committer: GitHub <noreply(a)github.com> Date: Mon, 02 Oct 2017 10:29:33 UTC Commit: 114871e8ad24cd36011cec4cfe2fd2e58b4806f8
https://github.com/geany/geany-plugins/commit/114871e8ad24cd36011cec4cfe2fd…
Log Message: ----------- Merge pull request #606 from eht16/workbench_cppcheck_initialize_loop_vars Workbench: cppcheck initialize loop vars Modified Paths: -------------- workbench/src/sidebar.c workbench/src/utils.c workbench/src/wb_project.c Modified: workbench/src/sidebar.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -95,7 +95,7 @@ static void sidebar_create_branch(gint level, const gchar *abs_base_dir, GSList { GSList *dir_list = NULL; GSList *file_list = NULL; - GSList *elem; + GSList *elem = NULL; gchar **path_arr; foreach_slist (elem, leaf_list) @@ -230,7 +230,7 @@ static void sidebar_insert_project_directory(WB_PROJECT *prj, WB_PROJECT_DIR *di { GSList *lst = NULL; GSList *path_list = NULL; - GSList *elem; + GSList *elem = NULL; GHashTableIter iter; gpointer key, value; gchar *abs_base_dir; @@ -267,7 +267,7 @@ static void sidebar_insert_project_directories (WB_PROJECT *project, GtkTreeIter { GtkTreeIter iter; GIcon *icon; - GSList *elem, *dirs; + GSList *elem = NULL, *dirs; if (project == NULL) { Modified: workbench/src/utils.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -72,7 +72,7 @@ gchar *get_relative_path(const gchar *utf8_parent, const gchar *utf8_descendant) **/ gboolean patterns_match(GSList *patterns, const gchar *str) { - GSList *elem; + GSList *elem = NULL; foreach_slist (elem, patterns) { GPatternSpec *pattern = elem->data; Modified: workbench/src/wb_project.c 23 lines changed, 12 insertions(+), 11 deletions(-) =================================================================== @@ -229,7 +229,7 @@ static GSList *wb_project_dir_get_file_list(WB_PROJECT_DIR *root, const gchar *u GSList *list = NULL; GDir *dir; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); - gchar *real_path = tm_get_real_path(locale_path); + gchar *real_path = utils_get_real_path(locale_path); dir = g_dir_open(locale_path, 0, NULL); if (!dir || !real_path || g_hash_table_lookup(visited_paths, real_path)) @@ -518,8 +518,8 @@ static gint wb_project_dir_comparator(WB_PROJECT_DIR *a, WB_PROJECT_DIR *b) a_locale_base_dir = utils_get_locale_from_utf8(a->base_dir); b_locale_base_dir = utils_get_locale_from_utf8(b->base_dir); - a_realpath = tm_get_real_path(a_locale_base_dir); - b_realpath = tm_get_real_path(b_locale_base_dir); + a_realpath = utils_get_real_path(a_locale_base_dir); + b_realpath = utils_get_real_path(b_locale_base_dir); res = g_strcmp0(a_realpath, b_realpath); @@ -535,7 +535,7 @@ static gint wb_project_dir_comparator(WB_PROJECT_DIR *a, WB_PROJECT_DIR *b) /* Get the file count of a project */ static guint wb_project_get_file_count(WB_PROJECT *prj) { - GSList *elem; + GSList *elem = NULL; guint filenum = 0; foreach_slist(elem, prj->directories) @@ -553,7 +553,7 @@ static guint wb_project_dir_rescan_int(WB_PROJECT *prj, WB_PROJECT_DIR *root) GSList *ignored_file_list = NULL; GHashTable *visited_paths; GSList *lst; - GSList *elem; + GSList *elem = NULL; guint filenum = 0; gchar *searchdir; @@ -717,7 +717,7 @@ guint wb_project_dir_rescan(WB_PROJECT *prj, WB_PROJECT_DIR *root) **/ void wb_project_rescan(WB_PROJECT *prj) { - GSList *elem; + GSList *elem = NULL; guint filenum = 0; if (!prj) @@ -772,7 +772,7 @@ gboolean wb_project_dir_file_is_included(WB_PROJECT_DIR *dir, const gchar *filen **/ gboolean wb_project_file_is_included(WB_PROJECT *prj, const gchar *filename) { - GSList *elem; + GSList *elem = NULL; if (prj == NULL) { @@ -793,7 +793,7 @@ gboolean wb_project_file_is_included(WB_PROJECT *prj, const gchar *filename) static gboolean add_tm_idle(gpointer foo) { WB_PROJECT *prj; - GSList *elem2; + GSList *elem2 = NULL; prj = (WB_PROJECT *)foo; if (prj == NULL || prj->s_idle_add_funcs == NULL) @@ -803,7 +803,7 @@ static gboolean add_tm_idle(gpointer foo) foreach_slist (elem2, prj->s_idle_add_funcs) { - GSList *elem; + GSList *elem = NULL; gchar *utf8_fname = elem2->data; foreach_slist (elem, prj->directories) @@ -851,7 +851,7 @@ void wb_project_add_single_tm_file(WB_PROJECT *prj, const gchar *filename) static gboolean remove_tm_idle(gpointer foo) { WB_PROJECT *prj; - GSList *elem2; + GSList *elem2 = NULL; prj = (WB_PROJECT *)foo; if (prj == NULL || prj->s_idle_remove_funcs == NULL) @@ -861,7 +861,8 @@ static gboolean remove_tm_idle(gpointer foo) foreach_slist (elem2, prj->s_idle_remove_funcs) { - GSList *elem; + + GSList *elem = NULL; gchar *utf8_fname = elem2->data; foreach_slist (elem, prj->directories) -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
[geany/geany-plugins] 779493: Workbench: Replace deprecated tm_get_real_path()
by Enrico Tröger
02 Oct '17
02 Oct '17
Branch: refs/heads/master Author: Enrico Tröger <enrico.troeger(a)uvena.de> Committer: Enrico Tröger <enrico.troeger(a)uvena.de> Date: Sun, 01 Oct 2017 22:51:12 UTC Commit: 779493cb8a7580de9f6246c2001ce75b36002f3e
https://github.com/geany/geany-plugins/commit/779493cb8a7580de9f6246c2001ce…
Log Message: ----------- Workbench: Replace deprecated tm_get_real_path() Modified Paths: -------------- workbench/src/wb_project.c Modified: workbench/src/wb_project.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -229,7 +229,7 @@ static GSList *wb_project_dir_get_file_list(WB_PROJECT_DIR *root, const gchar *u GSList *list = NULL; GDir *dir; gchar *locale_path = utils_get_locale_from_utf8(utf8_path); - gchar *real_path = tm_get_real_path(locale_path); + gchar *real_path = utils_get_real_path(locale_path); dir = g_dir_open(locale_path, 0, NULL); if (!dir || !real_path || g_hash_table_lookup(visited_paths, real_path)) @@ -518,8 +518,8 @@ static gint wb_project_dir_comparator(WB_PROJECT_DIR *a, WB_PROJECT_DIR *b) a_locale_base_dir = utils_get_locale_from_utf8(a->base_dir); b_locale_base_dir = utils_get_locale_from_utf8(b->base_dir); - a_realpath = tm_get_real_path(a_locale_base_dir); - b_realpath = tm_get_real_path(b_locale_base_dir); + a_realpath = utils_get_real_path(a_locale_base_dir); + b_realpath = utils_get_real_path(b_locale_base_dir); res = g_strcmp0(a_realpath, b_realpath); -------------- This E-Mail was brought to you by github_commit_mail.py (Source:
https://github.com/geany/infrastructure
).
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
Older →
Jump to page:
1
2
3
4
5
6
7
8
Results per page:
10
25
50
100
200