[geany/geany-plugins] 53e914: debugger: Mark some arguments const

Colomban Wendling git-noreply at xxxxx
Sun Nov 15 17:28:13 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 24 Oct 2014 12:18:20 UTC
Commit:      53e91415378fa63c89a44a50019e799112f57e24
             https://github.com/geany/geany-plugins/commit/53e91415378fa63c89a44a50019e799112f57e24

Log Message:
-----------
debugger: Mark some arguments const


Modified Paths:
--------------
    debugger/src/debug_module.c
    debugger/src/debug_module.h

Modified: debugger/src/debug_module.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -32,7 +32,7 @@
 #include "debug_module.h"
 
 /* creates new variable */
-variable *variable_new(gchar *name, variable_type vt)
+variable *variable_new(const gchar *name, variable_type vt)
 {
 	variable *var = g_malloc(sizeof(variable));
 	var->name = g_string_new(name);
@@ -47,7 +47,7 @@ variable *variable_new(gchar *name, variable_type vt)
 }
 
 /* creates new variable with internal name */
-variable *variable_new2(gchar *name, gchar *internal, variable_type vt)
+variable *variable_new2(const gchar *name, const gchar *internal, variable_type vt)
 {
 	variable *var = variable_new(name, vt);
 	g_string_assign(var->internal, internal);


Modified: debugger/src/debug_module.h
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -166,8 +166,8 @@ typedef struct _dbg_module {
 	MODULE_FEATURES }
 
 void		variable_free(variable *var);
-variable*	variable_new(gchar *name, variable_type vt);
-variable*	variable_new2(gchar *name, gchar *internal, variable_type vt);
+variable*	variable_new(const gchar *name, variable_type vt);
+variable*	variable_new2(const gchar *name, const gchar *internal, variable_type vt);
 void		variable_reset(variable *var);
 
 frame*	frame_new(void);



--------------
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