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
discards 9c0d7122590ec63c4a9cb6e5b019f373e84a6106 (commit)
via 40459eab2c4a3af4a5eccd1b3cbe1bd94353f9c7 (commit)
This update added new revisions after undoing existing revisions. That is
to say, the old revision is not a strict subset of the new revision. This
situation occurs when you --force push a change and generate a repository
containing something like this:
* -- * -- B -- O -- O -- O (9c0d7122590ec63c4a9cb6e5b019f373e84a6106)
N -- N -- N (40459eab2c4a3af4a5eccd1b3cbe1bd94353f9c7)
When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.
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/40459eab2c4a3af4a5eccd1b3cbe1bd94353…
commit 40459eab2c4a3af4a5eccd1b3cbe1bd94353f9c7
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Mon Jun 4 16:22:41 2012 +0200
pywrap: Fix error reporting.
The python headers define _GNU_SOURCE so the
strerror_r variant is GNU one, which may use the passed
buffer to, but that is not guaranted it also may return
pointer to some statically allocated buffer.
Also make sure _GNU_SOURCE is defined in pywrap.mk.
diff --git a/pylib/gfxprim/common.i b/pylib/gfxprim/common.i
index 66b37b0..bc99ff3 100644
--- a/pylib/gfxprim/common.i
+++ b/pylib/gfxprim/common.i
@@ -23,11 +23,9 @@
%exception funcname {
$action
if (result == NULL) {
- int errno0 = errno;
- const int errbuf_len = 128;
- char errbuf[errbuf_len];
- strerror_r(errno0, errbuf, errbuf_len);
- PyErr_Format(PyExc_RuntimeError, "Error in function %s: %s", "$name", errbuf);
+ char errbuf[128];
+ char *errmsg = strerror_r(errno, errbuf, sizeof(errbuf));
+ PyErr_Format(PyExc_RuntimeError, "Error in function %s: %s", "$name", errmsg);
return NULL;
}
}
@@ -42,11 +40,9 @@
%exception funcname {
$action
if (result != 0) {
- int errno0 = errno;
- const int errbuf_len = 128;
- char errbuf[errbuf_len];
- strerror_r(errno0, errbuf, errbuf_len);
- PyErr_Format(PyExc_RuntimeError, "Error in function %s: %s", "$name", errbuf);
+ char errbuf[128];
+ char *errmsg = strerror_r(errno, errbuf, sizeof(errbuf));
+ PyErr_Format(PyExc_RuntimeError, "Error in function %s: %s", "$name", errmsg);
return NULL;
}
}
diff --git a/pywrap.mk b/pywrap.mk
index 0ec5602..03d22cf 100644
--- a/pywrap.mk
+++ b/pywrap.mk
@@ -23,10 +23,10 @@ endif # VERBOSE
$(SWIG_LIB): $(SWIG_C)
ifdef VERBOSE
- $(CC) $< $(CFLAGS) $(LDFLAGS) -I$(PYTHON_INCLUDE) --shared -lGP $(LDLIBS) -L$(TOPDIR)/build/ -o $@
+ $(CC) $< $(CFLAGS) -D_GNU_SOURCE=1 $(LDFLAGS) -I$(PYTHON_INCLUDE) --shared -lGP $(LDLIBS) -L$(TOPDIR)/build/ -o $@
else # VERBOSE
@echo "LD $@"
- @$(CC) $< $(CFLAGS) $(LDFLAGS) -I$(PYTHON_INCLUDE) --shared -lGP $(LDLIBS) -L$(TOPDIR)/build/ -o $@
+ @$(CC) $< $(CFLAGS) -D_GNU_SOURCE=1 $(LDFLAGS) -I$(PYTHON_INCLUDE) --shared -lGP $(LDLIBS) -L$(TOPDIR)/build/ -o $@
endif # VERBOSE
endif # ifneq ($(SWIG),)
-----------------------------------------------------------------------
Summary of changes:
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 a2a5ee04d3fbbdc6fdcc4c7a932a5b11f3edee49 (commit)
from 1ef7dcb59e9b7b131e59c4965e3ce775e8b26de5 (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/a2a5ee04d3fbbdc6fdcc4c7a932a5b11f3ed…
commit a2a5ee04d3fbbdc6fdcc4c7a932a5b11f3edee49
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Jun 3 15:51:08 2012 +0200
doc: Add meta-data examples.
diff --git a/doc/examples.txt b/doc/examples.txt
index 5c426f0..ec356e2 100644
--- a/doc/examples.txt
+++ b/doc/examples.txt
@@ -23,6 +23,19 @@ Example in C utilizing progress callback
include::../demos/c_simple/loaders.c[]
------------------------------------------------------------------
+Example in C using image meta-data interface
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+[source,c]
+------------------------------------------------------------------
+include::../demos/c_simple/meta_data.c[]
+------------------------------------------------------------------
+
+[source,c]
+------------------------------------------------------------------
+include::../demos/c_simple/meta_data_dump.c[]
+------------------------------------------------------------------
+
Example in Python
~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------
Summary of changes:
doc/examples.txt | 13 +++++++++++++
1 files changed, 13 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 1ef7dcb59e9b7b131e59c4965e3ce775e8b26de5 (commit)
from c67470e8571d4b391c9c0440b96a9cd1d578fe10 (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/1ef7dcb59e9b7b131e59c4965e3ce775e8b2…
commit 1ef7dcb59e9b7b131e59c4965e3ce775e8b26de5
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Jun 3 15:37:50 2012 +0200
pywrap: Update GP_FilterParam pywrap.
diff --git a/pylib/gfxprim/filters/filters.i b/pylib/gfxprim/filters/filters.i
index 274c765..e12ca55 100644
--- a/pylib/gfxprim/filters/filters.i
+++ b/pylib/gfxprim/filters/filters.i
@@ -15,13 +15,22 @@
%include "GP_Filters.h"
/* Listed in GP_Filters.h: */
-%include "GP_FilterParam.h"
%include "GP_Point.h"
%ignore GP_Histogram::hist;
%include "GP_Stats.h"
%include "GP_Linear.h"
%include "GP_Resize.h"
+%extend GP_FilterParam {
+ ~GP_FilterParam() {
+ GP_DEBUG(2, "[wrapper] GP_FilterParamFree");
+ GP_FilterParamDestroy($self);
+ }
+}
+
+%newobject GP_FilterParamCreate;
+%include "GP_FilterParam.h"
+
/* Functions returning new allocated context */
%immutable GP_FilterSymmetryNames;
-----------------------------------------------------------------------
Summary of changes:
pylib/gfxprim/filters/filters.i | 11 ++++++++++-
1 files changed, 10 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 9ba3f4f318081d8fc506b58a782375d3b36e19b2 (commit)
from 4c2a2fda5d4751fdc40f987c9aa8b80197b79f6b (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/9ba3f4f318081d8fc506b58a782375d3b36e…
commit 9ba3f4f318081d8fc506b58a782375d3b36e19b2
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Jun 3 13:40:41 2012 +0200
pywrap: Update list of newobject filters.
diff --git a/pylib/gfxprim/filters/filters.i b/pylib/gfxprim/filters/filters.i
index 866ea9b..274c765 100644
--- a/pylib/gfxprim/filters/filters.i
+++ b/pylib/gfxprim/filters/filters.i
@@ -17,7 +17,6 @@
/* Listed in GP_Filters.h: */
%include "GP_FilterParam.h"
%include "GP_Point.h"
-%include "GP_Arithmetic.h"
%ignore GP_Histogram::hist;
%include "GP_Stats.h"
%include "GP_Linear.h"
@@ -26,16 +25,22 @@
/* Functions returning new allocated context */
%immutable GP_FilterSymmetryNames;
-%include "GP_Rotate.h"
-
%newobject GP_FilterMirrorH_Alloc;
%newobject GP_FilterMirrorV_Alloc;
%newobject GP_FilterRotate90_Alloc;
%newobject GP_FilterRotate180_Alloc;
%newobject GP_FilterRotate270_Alloc;
%newobject GP_FilterSymmetry_Alloc;
+%include "GP_Rotate.h"
-%include "GP_Dither.h"
%newobject GP_FilterFloydSteinberg_RGB888_Alloc;
%newobject GP_FilterHilbertPeano_RGB888_Alloc;
+%include "GP_Dither.h"
+
+%newobject GP_FilterAdditionAlloc;
+%newobject GP_FilterMultiplyAlloc;
+%newobject GP_FilterDifferenceAlloc;
+%newobject GP_FilterMaxAlloc;
+%newobject GP_FilterMinAlloc;
+%include "GP_Arithmetic.h"
-----------------------------------------------------------------------
Summary of changes:
pylib/gfxprim/filters/filters.i | 13 +++++++++----
1 files changed, 9 insertions(+), 4 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.")