made the "args" parameter const.
2008-09-05 Michael Natterer <mitch@gimp.org> * app/plug-in/gimpplugindebug.[ch] (gimp_plug_in_debug_argv): made the "args" parameter const. * app/plug-in/gimpplugin.c (gimp_plug_in_open): made some strings const. svn path=/trunk/; revision=26877
This commit is contained in:

committed by
Michael Natterer

parent
bfb45f6844
commit
a270381096
@ -1,3 +1,11 @@
|
|||||||
|
2008-09-05 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/plug-in/gimpplugindebug.[ch] (gimp_plug_in_debug_argv): made
|
||||||
|
the "args" parameter const.
|
||||||
|
|
||||||
|
* app/plug-in/gimpplugin.c (gimp_plug_in_open): made some strings
|
||||||
|
const.
|
||||||
|
|
||||||
2008-09-05 Michael Natterer <mitch@gimp.org>
|
2008-09-05 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* plug-ins/file-fits/fits-io.[ch]: add some const.
|
* plug-ins/file-fits/fits-io.[ch]: add some const.
|
||||||
|
@ -223,11 +223,13 @@ gimp_plug_in_open (GimpPlugIn *plug_in,
|
|||||||
gint my_read[2];
|
gint my_read[2];
|
||||||
gint my_write[2];
|
gint my_write[2];
|
||||||
gchar **envp;
|
gchar **envp;
|
||||||
gchar *args[9], **argv;
|
const gchar *args[9];
|
||||||
|
gchar **argv;
|
||||||
gint argc;
|
gint argc;
|
||||||
gchar *interp, *interp_arg;
|
gchar *interp, *interp_arg;
|
||||||
gchar *read_fd, *write_fd;
|
gchar *read_fd, *write_fd;
|
||||||
gchar *mode, *stm;
|
const gchar *mode;
|
||||||
|
gchar *stm;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
gboolean debug;
|
gboolean debug;
|
||||||
guint debug_flag;
|
guint debug_flag;
|
||||||
@ -331,7 +333,7 @@ gimp_plug_in_open (GimpPlugIn *plug_in,
|
|||||||
args[argc++] = stm;
|
args[argc++] = stm;
|
||||||
args[argc++] = NULL;
|
args[argc++] = NULL;
|
||||||
|
|
||||||
argv = args;
|
argv = (gchar **) args;
|
||||||
envp = gimp_environ_table_get_envp (plug_in->manager->environ_table);
|
envp = gimp_environ_table_get_envp (plug_in->manager->environ_table);
|
||||||
spawn_flags = (G_SPAWN_LEAVE_DESCRIPTORS_OPEN |
|
spawn_flags = (G_SPAWN_LEAVE_DESCRIPTORS_OPEN |
|
||||||
G_SPAWN_DO_NOT_REAP_CHILD |
|
G_SPAWN_DO_NOT_REAP_CHILD |
|
||||||
|
@ -109,7 +109,7 @@ gchar **
|
|||||||
gimp_plug_in_debug_argv (GimpPlugInDebug *debug,
|
gimp_plug_in_debug_argv (GimpPlugInDebug *debug,
|
||||||
const gchar *name,
|
const gchar *name,
|
||||||
GimpDebugWrapFlag flag,
|
GimpDebugWrapFlag flag,
|
||||||
gchar **args)
|
const gchar **args)
|
||||||
{
|
{
|
||||||
GPtrArray *argv;
|
GPtrArray *argv;
|
||||||
gchar **arg;
|
gchar **arg;
|
||||||
@ -134,7 +134,7 @@ gimp_plug_in_debug_argv (GimpPlugInDebug *debug,
|
|||||||
for (arg = debug->args; *arg != NULL; arg++)
|
for (arg = debug->args; *arg != NULL; arg++)
|
||||||
g_ptr_array_add (argv, *arg);
|
g_ptr_array_add (argv, *arg);
|
||||||
|
|
||||||
for (arg = args; *arg != NULL; arg++)
|
for (arg = (gchar **) args; *arg != NULL; arg++)
|
||||||
g_ptr_array_add (argv, *arg);
|
g_ptr_array_add (argv, *arg);
|
||||||
|
|
||||||
g_ptr_array_add (argv, NULL);
|
g_ptr_array_add (argv, NULL);
|
||||||
|
@ -38,7 +38,7 @@ void gimp_plug_in_debug_free (GimpPlugInDebug *debug);
|
|||||||
gchar ** gimp_plug_in_debug_argv (GimpPlugInDebug *debug,
|
gchar ** gimp_plug_in_debug_argv (GimpPlugInDebug *debug,
|
||||||
const gchar *name,
|
const gchar *name,
|
||||||
GimpDebugWrapFlag flag,
|
GimpDebugWrapFlag flag,
|
||||||
gchar **args);
|
const gchar **args);
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GIMP_PLUG_IN_DEBUG_H__ */
|
#endif /* __GIMP_PLUG_IN_DEBUG_H__ */
|
||||||
|
Reference in New Issue
Block a user