generate const arrays.

2006-04-19  Sven Neumann  <sven@gimp.org>

	* app/composite/make-installer.py: generate const arrays.

	* app/composite/gimp-composite-altivec-installer.c
	* app/composite/gimp-composite-generic-installer.c
	* app/composite/gimp-composite-mmx-installer.c
	* app/composite/gimp-composite-sse-installer.c
	* app/composite/gimp-composite-sse2-installer.c: regenerated.
This commit is contained in:
Sven Neumann 2006-04-19 14:46:51 +00:00 committed by Sven Neumann
parent ed708c5a0e
commit b60b1372ab
7 changed files with 22 additions and 13 deletions

View File

@ -1,3 +1,13 @@
2006-04-19 Sven Neumann <sven@gimp.org>
* app/composite/make-installer.py: generate const arrays.
* app/composite/gimp-composite-altivec-installer.c
* app/composite/gimp-composite-generic-installer.c
* app/composite/gimp-composite-mmx-installer.c
* app/composite/gimp-composite-sse-installer.c
* app/composite/gimp-composite-sse2-installer.c: regenerated.
2006-04-19 Sven Neumann <sven@gimp.org>
* app/dialogs/user-install-dialog.c: removed an unneeded call to

View File

@ -10,7 +10,7 @@
#include "gimp-composite-altivec.h"
static struct install_table {
static const struct install_table {
GimpCompositeOperation mode;
GimpPixelFormat A;
GimpPixelFormat B;
@ -38,7 +38,7 @@ static struct install_table {
gboolean
gimp_composite_altivec_install (void)
{
static struct install_table *t = _gimp_composite_altivec;
static const struct install_table *t = _gimp_composite_altivec;
if (gimp_composite_altivec_init ())
{

View File

@ -9,7 +9,7 @@
#include "gimp-composite-generic.h"
static struct install_table {
static const struct install_table {
GimpCompositeOperation mode;
GimpPixelFormat A;
GimpPixelFormat B;
@ -1942,7 +1942,7 @@ static struct install_table {
gboolean
gimp_composite_generic_install (void)
{
static struct install_table *t = _gimp_composite_generic;
static const struct install_table *t = _gimp_composite_generic;
if (gimp_composite_generic_init ())
{

View File

@ -10,7 +10,7 @@
#include "gimp-composite-mmx.h"
static struct install_table {
static const struct install_table {
GimpCompositeOperation mode;
GimpPixelFormat A;
GimpPixelFormat B;
@ -38,7 +38,7 @@ static struct install_table {
gboolean
gimp_composite_mmx_install (void)
{
static struct install_table *t = _gimp_composite_mmx;
static const struct install_table *t = _gimp_composite_mmx;
if (gimp_composite_mmx_init ())
{

View File

@ -10,7 +10,7 @@
#include "gimp-composite-sse.h"
static struct install_table {
static const struct install_table {
GimpCompositeOperation mode;
GimpPixelFormat A;
GimpPixelFormat B;
@ -36,7 +36,7 @@ static struct install_table {
gboolean
gimp_composite_sse_install (void)
{
static struct install_table *t = _gimp_composite_sse;
static const struct install_table *t = _gimp_composite_sse;
if (gimp_composite_sse_init ())
{

View File

@ -10,7 +10,7 @@
#include "gimp-composite-sse2.h"
static struct install_table {
static const struct install_table {
GimpCompositeOperation mode;
GimpPixelFormat A;
GimpPixelFormat B;
@ -32,7 +32,7 @@ static struct install_table {
gboolean
gimp_composite_sse2_install (void)
{
static struct install_table *t = _gimp_composite_sse2;
static const struct install_table *t = _gimp_composite_sse2;
if (gimp_composite_sse2_init ())
{

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- mode: python py-indent-offset: 2; indent-tabs-mode: nil -*-
#
# Gimp image compositing
# Copyright (C) 2003 Helvetix Victorinox, <helvetix@gimp.org>
@ -137,7 +136,7 @@ def print_function_table(fpout, name, function_table, requirements=[]):
if len(function_table) < 1:
return;
print >>fpout, 'static struct install_table {'
print >>fpout, 'static const struct install_table {'
print >>fpout, ' GimpCompositeOperation mode;'
print >>fpout, ' GimpPixelFormat A;'
print >>fpout, ' GimpPixelFormat B;'
@ -422,7 +421,7 @@ def gimp_composite_installer_install2(fpout, name, function_table, requirements=
print >>fpout, '{'
if len(function_table) >= 1:
print >>fpout, ' static struct install_table *t = _%s;' % (functionnameify(name))
print >>fpout, ' static const struct install_table *t = _%s;' % (functionnameify(name))
print >>fpout, ''
print >>fpout, ' if (%s_init ())' % functionnameify(name)
print >>fpout, ' {'