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, pywrap has been updated
via 3cca227bd9d97802da766c2feca0bb537c038b16 (commit)
from 2a44791a84f6aa540897532ea8a0e0d2e4e5ae10 (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/3cca227bd9d97802da766c2feca0bb537c03…
commit 3cca227bd9d97802da766c2feca0bb537c038b16
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Thu Nov 24 22:35:34 2011 +0100
Add -fPIC to fix the compilation on x86_64.
diff --git a/include/core/swigify.sh b/include/core/swigify.sh
index a82e16e..53a8ce4 100755
--- a/include/core/swigify.sh
+++ b/include/core/swigify.sh
@@ -2,7 +2,7 @@ set -e
swig -python -Wall -I/usr/include/ gfxprim_core.swig
gcc -shared gfxprim_core_wrap.c -L ../../build/ -I /usr/include/python2.6/ -I.. - -lGP -lpng -ljpeg -lm -ldl -o ../../build/_gfxprim_core.so
+ -fPIC -lGP -lpng -ljpeg -lm -ldl -o ../../build/_gfxprim_core.so
mv gfxprim_core.py ../../build/
rm gfxprim_core_wrap.c
diff --git a/include/loaders/swigify.sh b/include/loaders/swigify.sh
index 3308274..eb985f1 100755
--- a/include/loaders/swigify.sh
+++ b/include/loaders/swigify.sh
@@ -2,7 +2,7 @@ set -e
swig -python -Wall -I/usr/include/ gfxprim_loaders.swig
gcc -shared gfxprim_loaders_wrap.c -L ../../build/ -I /usr/include/python2.6/ -I.. - -lGP -lpng -ljpeg -lm -ldl -o ../../build/_gfxprim_loaders.so
+ -fPIC -lGP -lpng -ljpeg -lm -ldl -o ../../build/_gfxprim_loaders.so
mv gfxprim_loaders.py ../../build/
rm gfxprim_loaders_wrap.c
-----------------------------------------------------------------------
Summary of changes:
include/core/swigify.sh | 2 +-
include/loaders/swigify.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 31c18f79b0e5a2b49f3ad6315ab7605935b2fc56 (commit)
via 60a70cbf7bc06c6485f71f726ef1a5bb76469c05 (commit)
from 8b760eccced962d0cb0549dee86778454483671a (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/31c18f79b0e5a2b49f3ad6315ab7605935b2…
commit 31c18f79b0e5a2b49f3ad6315ab7605935b2fc56
Merge: 60a70cb 8b760ec
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Nov 22 23:02:10 2011 +0100
Merge branch 'master' of git://repo.or.cz/gfxprim
http://repo.or.cz/w/gfxprim.git/commit/60a70cbf7bc06c6485f71f726ef1a5bb7646…
commit 60a70cbf7bc06c6485f71f726ef1a5bb76469c05
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Nov 22 23:01:41 2011 +0100
Add building core tests as a default dependency
diff --git a/tests/core/Makefile b/tests/core/Makefile
index 7199ad2..1ee793a 100644
--- a/tests/core/Makefile
+++ b/tests/core/Makefile
@@ -5,6 +5,8 @@ TESTSUITE=core_suite
LDLIBS+=-lGP -L$(TOPDIR)/build/ -lcheck -lpng -ljpeg -lm -ldl
GENSOURCES+=GP_Convert.test.gen.c GP_WritePixel.test.gen.c
+all: $(TESTSUITE)
+
include $(TOPDIR)/tests.mk
include $(TOPDIR)/include.mk
-----------------------------------------------------------------------
Summary of changes:
tests/core/Makefile | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 2dd37fda71656537c85e16407173aec2ab2db70a (commit)
from d9ae37cc5f8e9ab61cc0e55010b70920b0db4a11 (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/2dd37fda71656537c85e16407173aec2ab2d…
commit 2dd37fda71656537c85e16407173aec2ab2db70a
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Nov 22 22:58:07 2011 +0100
Add libraries to link (ugly)
diff --git a/tests/core/Makefile b/tests/core/Makefile
index 00e696e..7199ad2 100644
--- a/tests/core/Makefile
+++ b/tests/core/Makefile
@@ -2,7 +2,7 @@ TOPDIR=../..
LIBNAME=core
TESTSUITE=core_suite
-LDLIBS+=-lGP -L$(TOPDIR)/build/ -lcheck
+LDLIBS+=-lGP -L$(TOPDIR)/build/ -lcheck -lpng -ljpeg -lm -ldl
GENSOURCES+=GP_Convert.test.gen.c GP_WritePixel.test.gen.c
include $(TOPDIR)/tests.mk
-----------------------------------------------------------------------
Summary of changes:
tests/core/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 d9ae37cc5f8e9ab61cc0e55010b70920b0db4a11 (commit)
from add1b69ae2989c1f937746437ce9c2019171f0cc (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/d9ae37cc5f8e9ab61cc0e55010b70920b0db…
commit d9ae37cc5f8e9ab61cc0e55010b70920b0db4a11
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Nov 22 22:45:49 2011 +0100
Add a required header to test
diff --git a/tests/core/GP_Common.test.c b/tests/core/GP_Common.test.c
index 9695d93..81422fb 100644
--- a/tests/core/GP_Common.test.c
+++ b/tests/core/GP_Common.test.c
@@ -23,6 +23,7 @@
#include "GP_Tests.h"
#include <GP_Common.h>
+#include <GP_GetSetBits.h>
#include <unistd.h>
/*
-----------------------------------------------------------------------
Summary of changes:
tests/core/GP_Common.test.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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/add1b69ae2989c1f937746437ce9c2019171…
commit add1b69ae2989c1f937746437ce9c2019171f0cc
Author: Tomas Gavenciak <gavento(a)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(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 0142394bf215cdf72112a3bf89295d2d2f8c8757 (commit)
via 8def3eafd3536e4ef84e3170be720a505cba5211 (commit)
from eb4a525b020632bd5011f14ff9f759eef926dee2 (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/0142394bf215cdf72112a3bf89295d2d2f8c…
commit 0142394bf215cdf72112a3bf89295d2d2f8c8757
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Nov 22 22:28:01 2011 +0100
Fix generated GP_TEST parameters
The parameters need to be separated by commas ","
diff --git a/tests/core/GP_WritePixel.test.gen.c.t b/tests/core/GP_WritePixel.test.gen.c.t
index 2661371..e488ce7 100644
--- a/tests/core/GP_WritePixel.test.gen.c.t
+++ b/tests/core/GP_WritePixel.test.gen.c.t
@@ -49,7 +49,7 @@ static void dump_buffer(const char *name, char *buf, unsigned int buf_len)
%% for offset in range(0, 4)
%% for len in range(0, 6)
%% for aligment in [0, 1]
-GP_TEST(GP_WritePixel{{ "%i_%i_%i_%i"|format(pixelsize, offset, len, aligment) }}, {{ ""offset=%i len=%i aligment=%i""|format(offset, len, aligment) }})
+GP_TEST(GP_WritePixel{{ "%i_%i_%i_%i"|format(pixelsize, offset, len, aligment) }}, {{ ""offset=%i, len=%i, aligment=%i,""|format(offset, len, aligment) }})
{
char write_buf[{{ 25 * pixelsize//8 }}] = {};
char gen_buf[{{ 25 * pixelsize//8 }}] = {};
http://repo.or.cz/w/gfxprim.git/commit/8def3eafd3536e4ef84e3170be720a505cba…
commit 8def3eafd3536e4ef84e3170be720a505cba5211
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Nov 22 22:26:48 2011 +0100
Fixed warning logging
fixed wrong format string and arguments
diff --git a/pylib/gfxprim/test_collection.py b/pylib/gfxprim/test_collection.py
index db3b5b2..0d947ef 100644
--- a/pylib/gfxprim/test_collection.py
+++ b/pylib/gfxprim/test_collection.py
@@ -40,7 +40,7 @@ def find_tests(fname, suites):
name, args = find_GP_directive("GP_SUITE", suite_re, l, fname=fname, line=i)
if name:
if args:
- log.warn("suite should have no arguments other than name.", fname, i)
+ log.warning("%s:%s: Suite should have no arguments other than name.", fname, i)
suites.setdefault(name, [])
suite = name
# Look for test declaration
@@ -51,7 +51,7 @@ def find_tests(fname, suites):
test_suite = args['suite']
if not test_suite:
test_suite = 'default'
- log.warn("No suite defined before test %s, using %r." % (name, test_suite), fname, i)
+ log.warning("%s:%s: No suite defined before test %s, using %r.", fname, i, name, test_suite)
args['name'] = name
args['fname'] = fname
args['line'] = i
@@ -68,9 +68,9 @@ def collect_suites(fdir):
for fn in fnames:
find_tests(os.path.join(fdir, fn), suites)
if not fnames:
- log.warn('No .test.c files found in "%s".', fdir)
+ log.warning('No .test.c files found in "%s".', fdir)
if not suites:
- log.warn('No suites found, generating an empty testsuite.')
+ log.warning('No suites found, generating an empty testsuite.')
return suites
@@ -89,7 +89,7 @@ def find_GP_directive(name, regexp, l, fname='unknown', line=0):
s = 'dict( ' + d[1].strip(" tn"") + ' )'
args = eval(s)
except:
- log.fatal("error parsing arguments: %r" % s, fname, line)
+ log.fatal("%s:%s: error parsing arguments: %r", fname, line, s)
return d[0].strip(), args
return None, None
-----------------------------------------------------------------------
Summary of changes:
pylib/gfxprim/test_collection.py | 10 +++++-----
tests/core/GP_WritePixel.test.gen.c.t | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 acea12e66ecb83f34fd19be737bddd0c289bf584 (commit)
from 1c8bab0eb13544cbc84b504007326432f9145515 (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/acea12e66ecb83f34fd19be737bddd0c289b…
commit acea12e66ecb83f34fd19be737bddd0c289bf584
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Fri Nov 18 12:08:00 2011 +0100
loaders: Add forgotten GP_ProgressCallbackDone().
diff --git a/libs/loaders/GP_JPG.c b/libs/loaders/GP_JPG.c
index cbb5758..db3de62 100644
--- a/libs/loaders/GP_JPG.c
+++ b/libs/loaders/GP_JPG.c
@@ -276,6 +276,7 @@ GP_RetCode GP_SaveJPG(const char *dst_path, const GP_Context *src,
return GP_EBADFILE;
}
+ GP_ProgressCallbackDone(callback);
return GP_ESUCCESS;
//TODO: is cinfo allocated?
err1:
diff --git a/libs/loaders/GP_PNG.c b/libs/loaders/GP_PNG.c
index d7da8ae..32a6358 100644
--- a/libs/loaders/GP_PNG.c
+++ b/libs/loaders/GP_PNG.c
@@ -296,6 +296,7 @@ GP_RetCode GP_SavePNG(const char *dst_path, const GP_Context *src,
return GP_EBADFILE;
}
+ GP_ProgressCallbackDone(callback);
return GP_ESUCCESS;
err2:
png_destroy_write_struct(&png, png_info == NULL ? NULL : &png_info);
-----------------------------------------------------------------------
Summary of changes:
libs/loaders/GP_JPG.c | 1 +
libs/loaders/GP_PNG.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")