[geany/geany-plugins] d6fa73: geanyprj: C designated initializers appears safers to me
Anthony Loiseau
git-noreply at xxxxx
Wed Jul 24 20:24:06 UTC 2019
Branch: refs/heads/master
Author: Anthony Loiseau <anthony.loiseau at gmail.com>
Committer: Anthony Loiseau <anthony.loiseau at gmail.com>
Date: Wed, 24 Jul 2019 20:24:06 UTC
Commit: d6fa73abb3f0002db4eb65d3ceec20384c5e8eed
https://github.com/geany/geany-plugins/commit/d6fa73abb3f0002db4eb65d3ceec20384c5e8eed
Log Message:
-----------
geanyprj: C designated initializers appears safers to me
Modified Paths:
--------------
geanyprj/src/project.c
Modified: geanyprj/src/project.c
20 lines changed, 10 insertions(+), 10 deletions(-)
===================================================================
@@ -26,11 +26,11 @@
#include "geanyprj.h"
const gchar *project_type_string[NEW_PROJECT_TYPE_SIZE] = {
- "All",
- "C/C++",
- "C",
- "Python",
- "None"
+ [NEW_PROJECT_TYPE_ALL] = "All",
+ [NEW_PROJECT_TYPE_CPP] = "C/C++",
+ [NEW_PROJECT_TYPE_C] = "C",
+ [NEW_PROJECT_TYPE_PYTHON] = "Python",
+ [NEW_PROJECT_TYPE_NONE] = "None"
};
static gboolean project_filter_c_cpp(const gchar *file)
@@ -73,11 +73,11 @@ static gboolean project_filter_none(G_GNUC_UNUSED const gchar *file)
gboolean (*project_type_filter[NEW_PROJECT_TYPE_SIZE]) (const gchar *) = {
- project_filter_all,
- project_filter_c_cpp,
- project_filter_c,
- project_filter_python,
- project_filter_none
+ [NEW_PROJECT_TYPE_ALL] = project_filter_all,
+ [NEW_PROJECT_TYPE_CPP] = project_filter_c_cpp,
+ [NEW_PROJECT_TYPE_C] = project_filter_c,
+ [NEW_PROJECT_TYPE_PYTHON] = project_filter_python,
+ [NEW_PROJECT_TYPE_NONE] = project_filter_none
};
--------------
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