From ffa79833dd17dd17298358c25a48e58a60d3ff26 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 6 Apr 2006 12:59:44 +0000 Subject: [PATCH] generate const arrays of const strings. 2006-04-06 Sven Neumann * app/dialogs/authors.xsl: generate const arrays of const strings. * app/dialogs/authors.h: regenerated. --- ChangeLog | 6 ++++++ app/dialogs/authors.h | 6 +++--- app/dialogs/authors.xsl | 6 +++--- libgimpwidgets/gimpstock.c | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe653c37e9..4482dba883 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-06 Sven Neumann + + * app/dialogs/authors.xsl: generate const arrays of const strings. + + * app/dialogs/authors.h: regenerated. + 2006-04-06 Sven Neumann * app/core/gimpcontext.c diff --git a/app/dialogs/authors.h b/app/dialogs/authors.h index 5e3a5ad5d9..a802637633 100644 --- a/app/dialogs/authors.h +++ b/app/dialogs/authors.h @@ -1,7 +1,7 @@ /* NOTE: This file is autogenerated from authors.xml, do not edit it. */ -static const gchar *authors[] = +static const gchar * const authors[] = { "Spencer Kimball", "Peter Mattis", @@ -180,7 +180,7 @@ static const gchar *authors[] = NULL }; -static const gchar *artists[] = +static const gchar * const artists[] = { "Tuomas Kuosmanen", "Karl La Rocca", @@ -190,7 +190,7 @@ static const gchar *artists[] = NULL }; -static const gchar *documenters[] = +static const gchar * const documenters[] = { "Carey Bunks", "Michael Hammel", diff --git a/app/dialogs/authors.xsl b/app/dialogs/authors.xsl index c6f9f88137..9d357375d2 100644 --- a/app/dialogs/authors.xsl +++ b/app/dialogs/authors.xsl @@ -11,7 +11,7 @@ /* NOTE: This file is autogenerated from authors.xml, do not edit it. */ -static const gchar *authors[] = +static const gchar * const authors[] = { @@ -21,7 +21,7 @@ static const gchar *authors[] = -static const gchar *artists[] = +static const gchar * const artists[] = { @@ -30,7 +30,7 @@ static const gchar *artists[] = -static const gchar *documenters[] = +static const gchar * const documenters[] = { diff --git a/libgimpwidgets/gimpstock.c b/libgimpwidgets/gimpstock.c index e98840ca84..03e89d5303 100644 --- a/libgimpwidgets/gimpstock.c +++ b/libgimpwidgets/gimpstock.c @@ -305,7 +305,7 @@ static const GtkStockItem gimp_stock_items[] = { GIMP_STOCK_TOOL_ZOOM, NULL, 0, 0, LIBGIMP_DOMAIN } }; -static struct +static const struct { const gchar *stock_id; gconstpointer inline_data;