gegl r2974 - in trunk: . tests/buffer/tests



Author: martinn
Date: Sat Mar 21 11:26:04 2009
New Revision: 2974
URL: http://svn.gnome.org/viewvc/gegl?rev=2974&view=rev

Log:
Don't mix declarations and code in buffer tests

Modified:
   trunk/ChangeLog
   trunk/tests/buffer/tests/linear_from_data.c
   trunk/tests/buffer/tests/linear_from_data_rows.c

Modified: trunk/tests/buffer/tests/linear_from_data.c
==============================================================================
--- trunk/tests/buffer/tests/linear_from_data.c	(original)
+++ trunk/tests/buffer/tests/linear_from_data.c	Sat Mar 21 11:26:04 2009
@@ -3,10 +3,10 @@
   GeglBuffer   *buffer;
   GeglRectangle extent = {0,0, 10, 10};
   gfloat       *buf;
+  gint          i;
   test_start();
 
   buf = g_malloc (sizeof (float) * 10 * 10);
-  gint i;
   for (i=0;i<100;i++)
     buf[i]=i/100.0;
 

Modified: trunk/tests/buffer/tests/linear_from_data_rows.c
==============================================================================
--- trunk/tests/buffer/tests/linear_from_data_rows.c	(original)
+++ trunk/tests/buffer/tests/linear_from_data_rows.c	Sat Mar 21 11:26:04 2009
@@ -3,10 +3,10 @@
   GeglBuffer   *buffer;
   GeglRectangle extent = {0,0, 10, 10};
   gfloat       *buf;
+  gint          i;
   test_start();
 
   buf = g_malloc (sizeof (float) * 12 * 10);
-  gint i;
   for (i=0;i<120;i++)
     buf[i]=i%12==5?0.5:0.0;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]