analysis: Make all function declarations be protoypes

It's valid C to declare a function omitting it prototype, but it seems
to be a good practise to always declare a function with its
corresponding prototype.
This commit is contained in:
Damien Lespiau 2010-05-27 12:18:29 +01:00
parent 83b7801e49
commit 3161e92818
5 changed files with 13 additions and 13 deletions

View File

@ -96,7 +96,7 @@ struct _ClutterBezier
}; };
ClutterBezier * ClutterBezier *
_clutter_bezier_new () _clutter_bezier_new (void)
{ {
return g_slice_new0 (ClutterBezier); return g_slice_new0 (ClutterBezier);
} }

View File

@ -167,7 +167,7 @@ cogl_create_context (void)
} }
void void
_cogl_destroy_context () _cogl_destroy_context (void)
{ {
if (_context == NULL) if (_context == NULL)
@ -217,7 +217,7 @@ _cogl_destroy_context ()
} }
CoglContext * CoglContext *
_cogl_context_get_default () _cogl_context_get_default (void)
{ {
/* Create if doesn't exist yet */ /* Create if doesn't exist yet */
if (_context == NULL) if (_context == NULL)

View File

@ -8,25 +8,25 @@
typedef void (*PaintFunc) (void); typedef void (*PaintFunc) (void);
static void static void
test_paint_line () test_paint_line (void)
{ {
cogl_path_line (-50, -25, 50, 25); cogl_path_line (-50, -25, 50, 25);
} }
static void static void
test_paint_rect () test_paint_rect (void)
{ {
cogl_path_rectangle (-50, -25, 50, 25); cogl_path_rectangle (-50, -25, 50, 25);
} }
static void static void
test_paint_rndrect() test_paint_rndrect(void)
{ {
cogl_path_round_rectangle (-50, -25, 50, 25, 10, 5); cogl_path_round_rectangle (-50, -25, 50, 25, 10, 5);
} }
static void static void
test_paint_polyl () test_paint_polyl (void)
{ {
gfloat poly_coords[] = { gfloat poly_coords[] = {
-50, -50, -50, -50,
@ -39,7 +39,7 @@ test_paint_polyl ()
} }
static void static void
test_paint_polyg () test_paint_polyg (void)
{ {
gfloat poly_coords[] = { gfloat poly_coords[] = {
-50, -50, -50, -50,
@ -52,13 +52,13 @@ test_paint_polyg ()
} }
static void static void
test_paint_elp () test_paint_elp (void)
{ {
cogl_path_ellipse (0, 0, 60, 40); cogl_path_ellipse (0, 0, 60, 40);
} }
static void static void
test_paint_curve () test_paint_curve (void)
{ {
cogl_path_move_to (-50, +50); cogl_path_move_to (-50, +50);

View File

@ -6,7 +6,7 @@
static ClutterActor *main_stage, *rect, *p[5]; static ClutterActor *main_stage, *rect, *p[5];
static void static void
init_handles () init_handles (void)
{ {
gint i; gint i;
ClutterVertex v[4]; ClutterVertex v[4];
@ -49,7 +49,7 @@ init_handles ()
} }
static void static void
place_handles () place_handles (void)
{ {
gint i; gint i;
ClutterVertex v[4]; ClutterVertex v[4];

View File

@ -44,7 +44,7 @@ queue_redraw (gpointer stage)
} }
static ClutterActor * static ClutterActor *
create_label () create_label (void)
{ {
ClutterColor label_color = { 0xff, 0xff, 0xff, 0xff }; ClutterColor label_color = { 0xff, 0xff, 0xff, 0xff };
ClutterActor *label; ClutterActor *label;