Commit c1041bcd authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

plug-ins/Lighting/lighting_apply.c plug-ins/Lighting/lighting_preview.c

2006-10-30  Michael Natterer  <mitch@gimp.org>

	* plug-ins/Lighting/lighting_apply.c
	* plug-ins/Lighting/lighting_preview.c
	* plug-ins/MapObject/mapobject_apply.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/flame/libifs.c
	* plug-ins/gfig/gfig-arc.c
	* plug-ins/gfig/gfig-bezier.c
	* plug-ins/gfig/gfig-circle.c
	* plug-ins/gfig/gfig-ellipse.c
	* plug-ins/gfig/gfig-line.c
	* plug-ins/gfig/gfig-poly.c
	* plug-ins/gfig/gfig-spiral.c
	* plug-ins/gfig/gfig-star.c
	* plug-ins/gimpressionist/general.c
	* plug-ins/gimpressionist/ppmtool.c
	* plug-ins/gimpressionist/preview.c
	* plug-ins/gimpressionist/preview.h
	* plug-ins/gimpressionist/size.h
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/uri/uri-backend-gnomevfs.c
	* plug-ins/uri/uri-backend-libcurl.c
	* plug-ins/uri/uri-backend-wget.c
	* plug-ins/winicon/icoload.c
	* plug-ins/winicon/icosave.c: another bunch of missing includes,
	missing "static" and wrong declarations found by -Wmissing-foo
parent bf36c387
2006-10-30 Michael Natterer <mitch@gimp.org>
* plug-ins/Lighting/lighting_apply.c
* plug-ins/Lighting/lighting_preview.c
* plug-ins/MapObject/mapobject_apply.c
* plug-ins/common/spheredesigner.c
* plug-ins/flame/libifs.c
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gimpressionist/general.c
* plug-ins/gimpressionist/ppmtool.c
* plug-ins/gimpressionist/preview.c
* plug-ins/gimpressionist/preview.h
* plug-ins/gimpressionist/size.h
* plug-ins/jpeg/jpeg-save.c
* plug-ins/uri/uri-backend-gnomevfs.c
* plug-ins/uri/uri-backend-libcurl.c
* plug-ins/uri/uri-backend-wget.c
* plug-ins/winicon/icoload.c
* plug-ins/winicon/icosave.c: another bunch of missing includes,
missing "static" and wrong declarations found by -Wmissing-foo
2006-10-30 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-text-console.c: include our own
......
......@@ -11,6 +11,7 @@
#include "lighting_main.h"
#include "lighting_image.h"
#include "lighting_shade.h"
#include "lighting_apply.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -220,7 +220,7 @@ compute_preview_rectangle (gint * xp, gint * yp, gint * wid, gint * heig)
/* light marker. Return TRUE if so, FALSE if not */
/*************************************************/
gboolean
static gboolean
check_handle_hit (gint xpos, gint ypos)
{
gint dx,dy,r;
......
......@@ -14,6 +14,7 @@
#include "mapobject_main.h"
#include "mapobject_image.h"
#include "mapobject_shade.h"
#include "mapobject_apply.h"
#include "libgimp/stdplugins-intl.h"
......@@ -188,7 +189,7 @@ init_compute (void)
max_depth = (gint) mapvals.maxdepth;
}
void
static void
render (gdouble x,
gdouble y,
GimpRGB *col,
......@@ -203,7 +204,7 @@ render (gdouble x,
*col = get_ray_color (&pos);
}
void
static void
show_progress (gint min,
gint max,
gint curr,
......
......@@ -2525,7 +2525,7 @@ sphere_response (GtkWidget *widget,
}
}
GtkWidget *
static GtkWidget *
makewindow (void)
{
GtkListStore *store;
......
......@@ -204,13 +204,14 @@ void mult_matrix(s1, s2, d)
d[1][1] = s1[0][1] * s2[1][0] + s1[1][1] * s2[1][1];
}
double det_matrix(s)
static double det_matrix(s)
double s[2][2];
{
return s[0][0] * s[1][1] - s[0][1] * s[1][0];
}
void flip_matrix(m, h)
#if 0
static void flip_matrix(m, h)
double m[2][2];
int h;
{
......@@ -234,7 +235,7 @@ void flip_matrix(m, h)
}
}
void transpose_matrix(m)
static void transpose_matrix(m)
double m[2][2];
{
double t;
......@@ -242,8 +243,10 @@ void transpose_matrix(m)
m[0][1] = m[1][0];
m[1][0] = t;
}
#endif
void choose_evector(m, r, v)
#if 0
static void choose_evector(m, r, v)
double m[3][2], r;
double v[2];
{
......@@ -270,7 +273,7 @@ void choose_evector(m, r, v)
transforms.
*/
void diagonalize_matrix(m, r, v)
static void diagonalize_matrix(m, r, v)
double m[3][2];
double r[2][2];
double v[2][2];
......@@ -351,7 +354,7 @@ void diagonalize_matrix(m, r, v)
}
void undiagonalize_matrix(r, v, m)
static void undiagonalize_matrix(r, v, m)
double r[2][2];
double v[2][2];
double m[3][2];
......@@ -385,8 +388,9 @@ void undiagonalize_matrix(r, v, m)
m[1][0] = t2[1][0];
m[1][1] = t2[1][1];
}
#endif
void interpolate_angle(t, s, v1, v2, v3, tie, cross)
static void interpolate_angle(t, s, v1, v2, v3, tie, cross)
double t, s;
double *v1, *v2, *v3;
int tie;
......@@ -425,7 +429,7 @@ void interpolate_angle(t, s, v1, v2, v3, tie, cross)
*v3 = s * x + t * y;
}
void interpolate_complex(t, s, r1, r2, r3, flip, tie, cross)
static void interpolate_complex(t, s, r1, r2, r3, flip, tie, cross)
double t, s;
double r1[2], r2[2], r3[2];
int flip, tie, cross;
......@@ -471,7 +475,7 @@ void interpolate_complex(t, s, r1, r2, r3, flip, tie, cross)
}
void interpolate_matrix(t, m1, m2, m3)
static void interpolate_matrix(t, m1, m2, m3)
double m1[3][2], m2[3][2], m3[3][2];
double t;
{
......@@ -688,7 +692,7 @@ void tokenize(ss, argv, argc)
*argc = i;
}
int compare_xforms(a, b)
static int compare_xforms(a, b)
xform *a, *b;
{
double aa[2][2];
......@@ -1094,7 +1098,8 @@ double standard_metric(cp1, cp2)
return dist;
}
void
#if 0
static void
stat_matrix(f, m)
FILE *f;
double m[3][2];
......@@ -1116,6 +1121,7 @@ stat_matrix(f, m)
fprintf(f, "theta = %g det = %g\n", a,
m[0][0] * m[1][1] - m[0][1] * m[1][0]);
}
#endif
#if 0
......
......@@ -34,6 +34,7 @@
#include "gfig.h"
#include "gfig-dobject.h"
#include "gfig-arc.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -32,6 +32,7 @@
#include "gfig-line.h"
#include "gfig-dobject.h"
#include "gfig-dialog.h"
#include "gfig-bezier.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -31,6 +31,7 @@
#include "gfig.h"
#include "gfig-dobject.h"
#include "gfig-poly.h"
#include "gfig-circle.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -32,6 +32,7 @@
#include "gfig.h"
#include "gfig-dobject.h"
#include "gfig-ellipse.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -30,6 +30,7 @@
#include "gfig.h"
#include "gfig-dobject.h"
#include "gfig-line.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -32,6 +32,7 @@
#include "gfig-dobject.h"
#include "gfig-line.h"
#include "gfig-dialog.h"
#include "gfig-poly.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -33,6 +33,7 @@
#include "gfig.h"
#include "gfig-dobject.h"
#include "gfig-line.h"
#include "gfig-spiral.h"
#include "gfig-dialog.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -31,6 +31,7 @@
#include "gfig.h"
#include "gfig-line.h"
#include "gfig-dobject.h"
#include "gfig-star.h"
#include "gfig-dialog.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -7,6 +7,7 @@
#include "gimpressionist.h"
#include "infile.h"
#include "general.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -14,7 +14,7 @@
#include "libgimp/stdplugins-intl.h"
int
static int
readline (FILE *f, char *buffer, int len)
{
do
......@@ -212,7 +212,7 @@ struct _BrushHeader
unsigned int spacing; /* brush spacing */
};
void
static void
msb2lsb (unsigned int *i)
{
guchar *p = (guchar *)i, c;
......@@ -237,7 +237,7 @@ fopen_from_search_path (const gchar * fn, const char * mode)
return f;
}
void
static void
load_gimp_brush (const gchar *fn, ppm_t *p)
{
FILE *f;
......
......@@ -10,6 +10,7 @@
#include "gimpressionist.h"
#include "ppmtool.h"
#include "infile.h"
#include "preview.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -4,6 +4,6 @@
GtkWidget* create_preview (void);
void updatepreview (GtkWidget *wg, gpointer d);
void preview_free_resources(void);
void preview_set_button_label(gchar * text);
void preview_set_button_label(const gchar * text);
#endif /* #ifndef __PREVIEW_H */
......@@ -18,6 +18,6 @@ void size_restore (void);
void create_sizepage (GtkNotebook *);
int size_type_input (int in);
void size_map_free_resources ();
void size_map_free_resources (void);
#endif /* #ifndef __SIZE_H */
......@@ -1085,12 +1085,12 @@ typedef struct
typedef my_destination_mgr *my_dest_ptr;
void
static void
init_destination (j_compress_ptr cinfo)
{
}
gboolean
static gboolean
empty_output_buffer (j_compress_ptr cinfo)
{
my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
......@@ -1105,7 +1105,7 @@ empty_output_buffer (j_compress_ptr cinfo)
return TRUE;
}
void
static void
term_destination (j_compress_ptr cinfo)
{
my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
......
......@@ -30,6 +30,8 @@
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "uri-backend.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -30,6 +30,8 @@
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "uri-backend.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -34,6 +34,8 @@
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "uri-backend.h"
#include "libgimp/stdplugins-intl.h"
......
......@@ -138,7 +138,7 @@ ico_read_init (FILE *fp)
}
gboolean
static gboolean
ico_read_size (FILE *fp,
IcoLoadInfo *info)
{
......@@ -577,7 +577,7 @@ ico_read_icon (FILE *fp,
return TRUE;
}
gint32
static gint32
ico_load_layer (FILE *fp,
gint32 image,
gint32 icon_num,
......
......@@ -35,6 +35,7 @@
#include "main.h"
#include "icoload.h"
#include "icosave.h"
#include "icodialog.h"
#include "libgimp/stdplugins-intl.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment