analysis: Make all function declarations be protoypes
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 27 May 2010 11:18:29 +0000 (12:18 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Tue, 1 Jun 2010 11:08:18 +0000 (12:08 +0100)
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.

clutter/clutter-bezier.c
clutter/cogl/cogl/cogl-context.c
tests/interactive/test-cogl-primitives.c
tests/interactive/test-project.c
tests/micro-bench/test-text-perf.c

index d21ca3e..3c2f827 100644 (file)
@@ -96,7 +96,7 @@ struct _ClutterBezier
 };
 
 ClutterBezier *
-_clutter_bezier_new ()
+_clutter_bezier_new (void)
 {
   return g_slice_new0 (ClutterBezier);
 }
index 871f6dd..8d678f4 100644 (file)
@@ -167,7 +167,7 @@ cogl_create_context (void)
 }
 
 void
-_cogl_destroy_context ()
+_cogl_destroy_context (void)
 {
 
   if (_context == NULL)
@@ -217,7 +217,7 @@ _cogl_destroy_context ()
 }
 
 CoglContext *
-_cogl_context_get_default ()
+_cogl_context_get_default (void)
 {
   /* Create if doesn't exist yet */
   if (_context == NULL)
index fb5adb3..207c8e3 100644 (file)
@@ -8,25 +8,25 @@
 typedef void (*PaintFunc) (void);
 
 static void
-test_paint_line ()
+test_paint_line (void)
 {
   cogl_path_line (-50, -25, 50, 25);
 }
 
 static void
-test_paint_rect ()
+test_paint_rect (void)
 {
   cogl_path_rectangle (-50, -25, 50, 25);
 }
 
 static void
-test_paint_rndrect()
+test_paint_rndrect(void)
 {
   cogl_path_round_rectangle (-50, -25, 50, 25, 10, 5);
 }
 
 static void
-test_paint_polyl ()
+test_paint_polyl (void)
 {
   gfloat poly_coords[] = {
     -50, -50,
@@ -39,7 +39,7 @@ test_paint_polyl ()
 }
 
 static void
-test_paint_polyg ()
+test_paint_polyg (void)
 {
   gfloat poly_coords[] = {
     -50, -50,
@@ -52,13 +52,13 @@ test_paint_polyg ()
 }
 
 static void
-test_paint_elp ()
+test_paint_elp (void)
 {
   cogl_path_ellipse (0, 0, 60, 40);
 }
 
 static void
-test_paint_curve ()
+test_paint_curve (void)
 {
   cogl_path_move_to (-50, +50);
 
index f61fff4..29bc047 100644 (file)
@@ -6,7 +6,7 @@
 static ClutterActor *main_stage, *rect, *p[5];
 
 static void
-init_handles ()
+init_handles (void)
 {
   gint              i;
   ClutterVertex    v[4];
@@ -49,7 +49,7 @@ init_handles ()
 }
 
 static void
-place_handles ()
+place_handles (void)
 {
   gint              i;
   ClutterVertex    v[4];
index 2be7f27..f21cdc3 100644 (file)
@@ -44,7 +44,7 @@ queue_redraw (gpointer stage)
 }
 
 static ClutterActor *
-create_label ()
+create_label (void)
 {
   ClutterColor label_color = { 0xff, 0xff, 0xff, 0xff };
   ClutterActor *label;