This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via add1b69ae2989c1f937746437ce9c2019171f0cc (commit) from 0142394bf215cdf72112a3bf89295d2d2f8c8757 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/add1b69ae2989c1f937746437ce9c2019171f...
commit add1b69ae2989c1f937746437ce9c2019171f0cc Author: Tomas Gavenciak gavento@ucw.cz Date: Tue Nov 22 22:42:46 2011 +0100
Modified few C99-style for-loops to C98
diff --git a/tests/common/GP_TestingCore.c b/tests/common/GP_TestingCore.c index 501a66a..d6b49a1 100644 --- a/tests/common/GP_TestingCore.c +++ b/tests/common/GP_TestingCore.c @@ -38,8 +38,9 @@ GP_Pixel GP_RandomColor(GP_PixelType type) void GP_RandomizeRect(GP_Context *context, GP_Coord x, GP_Coord y, GP_Size w, GP_Size h) { GP_CHECK(context); - for (GP_Size i = 0; i < w; i++) - for (GP_Size j = 0; j < h; j++) + GP_Size i, j; + for (i = 0; i < w; i++) + for (j = 0; j < h; j++) GP_PutPixel(context, i + x, j + y, GP_RandomColor(context->pixel_type)); }
@@ -71,8 +72,9 @@ int GP_EqualRects(const GP_Context *c1, GP_Coord x1, GP_Coord y1, GP_Size w, GP_ { GP_CHECK(c1); GP_CHECK(c2); - for (GP_Size i = 0; i < w; i++) - for (GP_Size j = 0; j < h; j++) { + GP_Size i, j; + for (i = 0; i < w; i++) + for (j = 0; j < h; j++) { if (!GP_EqualColors(GP_GetPixel(c1, x1 + i, y1 + j), c1->pixel_type, GP_GetPixel(c2, x2 + i, y2 + j), c2->pixel_type)) return 0; diff --git a/tests/common/GP_Tests.c b/tests/common/GP_Tests.c index 2aa6811..736c05c 100644 --- a/tests/common/GP_Tests.c +++ b/tests/common/GP_Tests.c @@ -65,7 +65,8 @@ int main(int argc, char *argv[])
SRunner *sr = srunner_create(NULL);
- for (SuiteFactory **s = manual_suites; *s; s++) { + SuiteFactory **s; + for (s = manual_suites; *s; s++) { srunner_add_suite(sr, (*s)()); } GP_AddSuitesToSRunner(sr); diff --git a/tests/core/GP_Counter.test.c b/tests/core/GP_Counter.test.c index 8f8ddd3..6bd9ab7 100644 --- a/tests/core/GP_Counter.test.c +++ b/tests/core/GP_Counter.test.c @@ -28,7 +28,7 @@
GP_SUITE(GP_Counter)
-GP_TEST(Smoke) +GP_TEST(Smoke) { fail_unless(GP_CounterVal(NULL) == 0); GP_IncCounter(NULL); @@ -70,7 +70,8 @@ END_TEST GP_TEST(Overflow) { char buf[8]; - for (int i = 0; i < GP_COUNTER_MAX; i++) { + int i; + for (i = 0; i < GP_COUNTER_MAX; i++) { sprintf(buf, "%d", i); fail_if(GP_GetCounter(buf) == NULL); }
-----------------------------------------------------------------------
Summary of changes: tests/common/GP_TestingCore.c | 10 ++++++---- tests/common/GP_Tests.c | 3 ++- tests/core/GP_Counter.test.c | 5 +++-- 3 files changed, 11 insertions(+), 7 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.