[hkl] 02/11: Imported Upstream version 4.99.99.1949

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Tue Jul 7 13:53:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch master
in repository hkl.

commit 32c4e413e866a5dc4e4acbd2c2930335151e6546
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Fri Jul 3 16:11:21 2015 +0200

    Imported Upstream version 4.99.99.1949
---
 ChangeLog                                  |  30 ++++++
 Documentation/api/html/api-index-full.html |   8 +-
 Documentation/api/html/hkl-hkl.html        | 154 ++++++++++++++---------------
 Documentation/api/html/hkl.devhelp2        |  12 +--
 Documentation/api/html/index.sgml          |  12 +--
 Documentation/hkl.html                     | 101 ++++++++++++-------
 Documentation/hkl.org.in                   |   8 ++
 configure                                  |  22 ++---
 hkl/hkl-interval.c                         |   3 +-
 hkl3d/hkl3d.cpp                            |   5 +-
 tests/hkl-interval-t.c                     |  24 ++---
 11 files changed, 225 insertions(+), 154 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a57a049..1efe3db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,35 @@
 # Generated by Makefile. Do not edit.
 
+commit 827528b7eab8eea02db241c88c883b60149b1872
+Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
+Date:   Fri Jul 3 15:43:48 2015 +0200
+
+    [hkl] no more PATH_MAX
+
+ Documentation/hkl.org.in | 3 +++
+ hkl3d/hkl3d.cpp          | 5 +++--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+commit 1363d413b31233f1c76c8e01269c83a668702595
+Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
+Date:   Fri Jul 3 14:05:19 2015 +0200
+
+    [hkl] fix an unit test issue discovered on small endian arch
+
+ Documentation/hkl.org.in |  4 ++++
+ hkl/hkl-interval.c       |  3 ++-
+ tests/hkl-interval-t.c   | 24 ++++++++++++------------
+ 3 files changed, 18 insertions(+), 13 deletions(-)
+
+commit 36f1889f95f664c8cfdd3a928f5d2fb1666a3a37
+Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
+Date:   Tue Jun 30 14:47:53 2015 +0200
+
+    release
+
+ Documentation/hkl.org.in | 1 +
+ 1 file changed, 1 insertion(+)
+
 commit 026c105555c6ef9de9bb2ae816c8aa28d3c39012
 Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
 Date:   Fri Jun 26 16:10:43 2015 +0200
diff --git a/Documentation/api/html/api-index-full.html b/Documentation/api/html/api-index-full.html
index c524b1e..cc25b21 100644
--- a/Documentation/api/html/api-index-full.html
+++ b/Documentation/api/html/api-index-full.html
@@ -128,11 +128,11 @@
 </dt>
 <dd></dd>
 <dt>
-<a class="link" href="hkl-hkl-pseudoaxis-private.html#axis" title="axis">axis</a>, variable in <a class="link" href="hkl-hkl-pseudoaxis-private.html" title="hkl-pseudoaxis-private">hkl-pseudoaxis-private</a>
+<a class="link" href="hkl-hkl-axis-private.html#HklAxis" title="struct HklAxis">HklAxis</a>, struct in <a class="link" href="hkl-hkl-axis-private.html" title="hkl-axis-private">hkl-axis-private</a>
 </dt>
 <dd></dd>
 <dt>
-<a class="link" href="hkl-hkl-axis-private.html#HklAxis" title="struct HklAxis">HklAxis</a>, struct in <a class="link" href="hkl-hkl-axis-private.html" title="hkl-axis-private">hkl-axis-private</a>
+<a class="link" href="hkl-hkl-pseudoaxis-private.html#axis" title="axis">axis</a>, variable in <a class="link" href="hkl-hkl-pseudoaxis-private.html" title="hkl-pseudoaxis-private">hkl-pseudoaxis-private</a>
 </dt>
 <dd></dd>
 <a name="idxB"></a><h3 class="title">B</h3>
@@ -1984,11 +1984,11 @@ SURFACE_PARAMETERS, macro in hkl-pseudoaxis-common-readonly-private
 <dd></dd>
 <a name="idxW"></a><h3 class="title">W</h3>
 <dt>
-<a class="link" href="hkl-hkl.html#HKL-WARN-UNUSED-RESULT:CAPS" title="HKL_WARN_UNUSED_RESULT">HKL_WARN_UNUSED_RESULT</a>, macro in <a class="link" href="hkl-hkl.html" title="hkl">hkl</a>
+<a class="link" href="hkl-compiler.html#WARN-UNUSED-RESULT:CAPS" title="WARN_UNUSED_RESULT">WARN_UNUSED_RESULT</a>, macro in <a class="link" href="hkl-compiler.html" title="compiler">compiler</a>
 </dt>
 <dd></dd>
 <dt>
-<a class="link" href="hkl-compiler.html#WARN-UNUSED-RESULT:CAPS" title="WARN_UNUSED_RESULT">WARN_UNUSED_RESULT</a>, macro in <a class="link" href="hkl-compiler.html" title="compiler">compiler</a>
+<a class="link" href="hkl-hkl.html#HKL-WARN-UNUSED-RESULT:CAPS" title="HKL_WARN_UNUSED_RESULT">HKL_WARN_UNUSED_RESULT</a>, macro in <a class="link" href="hkl-hkl.html" title="hkl">hkl</a>
 </dt>
 <dd></dd>
 </div>
diff --git a/Documentation/api/html/hkl-hkl.html b/Documentation/api/html/hkl-hkl.html
index 8800264..1bddbea 100644
--- a/Documentation/api/html/hkl-hkl.html
+++ b/Documentation/api/html/hkl-hkl.html
@@ -148,47 +148,47 @@
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklFactory" title="HklFactory">HklFactory</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklGeometryList" title="HklGeometryList">HklGeometryList</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklGeometry" title="HklGeometry">HklGeometry</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklEngineList" title="HklEngineList">HklEngineList</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklParameter" title="HklParameter">HklParameter</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklLattice" title="HklLattice">HklLattice</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklEngine" title="HklEngine">HklEngine</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklFactory" title="HklFactory">HklFactory</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklMatrix" title="HklMatrix">HklMatrix</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklEngine" title="HklEngine">HklEngine</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklSampleReflection" title="HklSampleReflection">HklSampleReflection</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklMatrix" title="HklMatrix">HklMatrix</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklSample" title="HklSample">HklSample</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklGeometry" title="HklGeometry">HklGeometry</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklEngineList" title="HklEngineList">HklEngineList</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklParameter" title="HklParameter">HklParameter</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklDetector" title="HklDetector">HklDetector</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklSampleReflection" title="HklSampleReflection">HklSampleReflection</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklLattice" title="HklLattice">HklLattice</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklDetector" title="HklDetector">HklDetector</a></td>
 </tr>
 <tr>
 <td class="datatype_keyword"> </td>
-<td class="function_name"><a class="link" href="hkl-hkl.html#HklGeometryList" title="HklGeometryList">HklGeometryList</a></td>
+<td class="function_name"><a class="link" href="hkl-hkl.html#HklSample" title="HklSample">HklSample</a></td>
 </tr>
 </tbody>
 </table></div>
@@ -441,41 +441,51 @@
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklFactory"></a><h3>HklFactory</h3>
+<a name="HklGeometryList"></a><h3>HklGeometryList</h3>
 <pre class="programlisting">typedef struct {
-	const char *name;
-	const char *description;
-	const darray_string axes;
-	HklFactoryGeometryFunction create_new_geometry;
-	HklFactoryEngineListFunction create_new_engine_list;
-} HklFactory;
+	HklGeometryListMultiplyFunction multiply;
+	struct list_head items;
+	size_t n_items;
+} HklGeometryList;
 </pre>
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklGeometry"></a><h3>HklGeometry</h3>
+<a name="HklEngineList"></a><h3>HklEngineList</h3>
 <pre class="programlisting">typedef struct {
-	const HklFactory *factory;
-	HklSource source;
-	darray_parameter axes;
-	darray_holder holders;
-} HklGeometry;
+	_darray(HklEngine *);
+	HklGeometryList *geometries;
+	HklGeometry *geometry;
+	HklDetector *detector;
+	HklSample *sample;
+	darray_parameter pseudo_axes;
+} HklEngineList;
 </pre>
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklParameter"></a><h3>HklParameter</h3>
+<a name="HklLattice"></a><h3>HklLattice</h3>
+<pre class="programlisting">typedef struct {
+	HklParameter *a;
+	HklParameter *b;
+	HklParameter *c;
+	HklParameter *alpha;
+	HklParameter *beta;
+	HklParameter *gamma;
+	HklParameter *volume;
+} HklLattice;
+</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HklFactory"></a><h3>HklFactory</h3>
 <pre class="programlisting">typedef struct {
 	const char *name;
 	const char *description;
-	HklInterval range;
-	double _value;
-	const HklUnit *unit;
-	const HklUnit *punit;
-	int fit;
-	int changed;
-	const HklParameterOperations *ops;
-} HklParameter;
+	const darray_string axes;
+	HklFactoryGeometryFunction create_new_geometry;
+	HklFactoryEngineListFunction create_new_engine_list;
+} HklFactory;
 </pre>
 </div>
 <hr>
@@ -507,44 +517,42 @@
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklSampleReflection"></a><h3>HklSampleReflection</h3>
+<a name="HklGeometry"></a><h3>HklGeometry</h3>
 <pre class="programlisting">typedef struct {
-	HklGeometry *geometry;
-	HklDetector *detector;
-	HklVector hkl;
-	HklVector _hkl;
-	int flag;
-	struct list_node list;
-} HklSampleReflection;
+	const HklFactory *factory;
+	HklSource source;
+	darray_parameter axes;
+	darray_holder holders;
+} HklGeometry;
 </pre>
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklSample"></a><h3>HklSample</h3>
+<a name="HklParameter"></a><h3>HklParameter</h3>
 <pre class="programlisting">typedef struct {
-	char *name;
-	HklLattice *lattice;
-	HklMatrix U;
-	HklMatrix UB;
-	HklParameter *ux;
-	HklParameter *uy;
-	HklParameter *uz;
-	struct list_head reflections;
-	size_t n_reflections;
-} HklSample;
+	const char *name;
+	const char *description;
+	HklInterval range;
+	double _value;
+	const HklUnit *unit;
+	const HklUnit *punit;
+	int fit;
+	int changed;
+	const HklParameterOperations *ops;
+} HklParameter;
 </pre>
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklEngineList"></a><h3>HklEngineList</h3>
+<a name="HklSampleReflection"></a><h3>HklSampleReflection</h3>
 <pre class="programlisting">typedef struct {
-	_darray(HklEngine *);
-	HklGeometryList *geometries;
 	HklGeometry *geometry;
 	HklDetector *detector;
-	HklSample *sample;
-	darray_parameter pseudo_axes;
-} HklEngineList;
+	HklVector hkl;
+	HklVector _hkl;
+	int flag;
+	struct list_node list;
+} HklSampleReflection;
 </pre>
 </div>
 <hr>
@@ -558,26 +566,18 @@
 </div>
 <hr>
 <div class="refsect2">
-<a name="HklLattice"></a><h3>HklLattice</h3>
-<pre class="programlisting">typedef struct {
-	HklParameter *a;
-	HklParameter *b;
-	HklParameter *c;
-	HklParameter *alpha;
-	HklParameter *beta;
-	HklParameter *gamma;
-	HklParameter *volume;
-} HklLattice;
-</pre>
-</div>
-<hr>
-<div class="refsect2">
-<a name="HklGeometryList"></a><h3>HklGeometryList</h3>
+<a name="HklSample"></a><h3>HklSample</h3>
 <pre class="programlisting">typedef struct {
-	HklGeometryListMultiplyFunction multiply;
-	struct list_head items;
-	size_t n_items;
-} HklGeometryList;
+	char *name;
+	HklLattice *lattice;
+	HklMatrix U;
+	HklMatrix UB;
+	HklParameter *ux;
+	HklParameter *uy;
+	HklParameter *uz;
+	struct list_head reflections;
+	size_t n_reflections;
+} HklSample;
 </pre>
 </div>
 </div>
diff --git a/Documentation/api/html/hkl.devhelp2 b/Documentation/api/html/hkl.devhelp2
index d99eedf..0679a76 100644
--- a/Documentation/api/html/hkl.devhelp2
+++ b/Documentation/api/html/hkl.devhelp2
@@ -140,17 +140,17 @@
     <keyword type="enum" name="enum HklEngineAxisNamesGet" link="hkl-hkl.html#HklEngineAxisNamesGet"/>
     <keyword type="enum" name="enum HklEngineDependencies" link="hkl-hkl.html#HklEngineDependencies"/>
     <keyword type="struct" name="HklGeometryListItem" link="hkl-hkl.html#HklGeometryListItem"/>
+    <keyword type="struct" name="HklGeometryList" link="hkl-hkl.html#HklGeometryList"/>
+    <keyword type="struct" name="HklEngineList" link="hkl-hkl.html#HklEngineList"/>
+    <keyword type="struct" name="HklLattice" link="hkl-hkl.html#HklLattice"/>
     <keyword type="struct" name="HklFactory" link="hkl-hkl.html#HklFactory"/>
-    <keyword type="struct" name="HklGeometry" link="hkl-hkl.html#HklGeometry"/>
-    <keyword type="struct" name="HklParameter" link="hkl-hkl.html#HklParameter"/>
     <keyword type="struct" name="HklEngine" link="hkl-hkl.html#HklEngine"/>
     <keyword type="struct" name="HklMatrix" link="hkl-hkl.html#HklMatrix"/>
+    <keyword type="struct" name="HklGeometry" link="hkl-hkl.html#HklGeometry"/>
+    <keyword type="struct" name="HklParameter" link="hkl-hkl.html#HklParameter"/>
     <keyword type="struct" name="HklSampleReflection" link="hkl-hkl.html#HklSampleReflection"/>
-    <keyword type="struct" name="HklSample" link="hkl-hkl.html#HklSample"/>
-    <keyword type="struct" name="HklEngineList" link="hkl-hkl.html#HklEngineList"/>
     <keyword type="struct" name="HklDetector" link="hkl-hkl.html#HklDetector"/>
-    <keyword type="struct" name="HklLattice" link="hkl-hkl.html#HklLattice"/>
-    <keyword type="struct" name="HklGeometryList" link="hkl-hkl.html#HklGeometryList"/>
+    <keyword type="struct" name="HklSample" link="hkl-hkl.html#HklSample"/>
     <keyword type="function" name="hkl_parameter_new_axis ()" link="hkl-hkl-axis-private.html#hkl-parameter-new-axis"/>
     <keyword type="struct" name="struct HklAxis" link="hkl-hkl-axis-private.html#HklAxis"/>
     <keyword type="function" name="hkl_detector_new ()" link="hkl-hkl-detector-private.html#hkl-detector-new"/>
diff --git a/Documentation/api/html/index.sgml b/Documentation/api/html/index.sgml
index 32a5fec..ebec820 100644
--- a/Documentation/api/html/index.sgml
+++ b/Documentation/api/html/index.sgml
@@ -137,17 +137,17 @@
 <ANCHOR id="HklEngineAxisNamesGet" href="hkl/hkl-hkl.html#HklEngineAxisNamesGet">
 <ANCHOR id="HklEngineDependencies" href="hkl/hkl-hkl.html#HklEngineDependencies">
 <ANCHOR id="HklGeometryListItem" href="hkl/hkl-hkl.html#HklGeometryListItem">
+<ANCHOR id="HklGeometryList" href="hkl/hkl-hkl.html#HklGeometryList">
+<ANCHOR id="HklEngineList" href="hkl/hkl-hkl.html#HklEngineList">
+<ANCHOR id="HklLattice" href="hkl/hkl-hkl.html#HklLattice">
 <ANCHOR id="HklFactory" href="hkl/hkl-hkl.html#HklFactory">
-<ANCHOR id="HklGeometry" href="hkl/hkl-hkl.html#HklGeometry">
-<ANCHOR id="HklParameter" href="hkl/hkl-hkl.html#HklParameter">
 <ANCHOR id="HklEngine" href="hkl/hkl-hkl.html#HklEngine">
 <ANCHOR id="HklMatrix" href="hkl/hkl-hkl.html#HklMatrix">
+<ANCHOR id="HklGeometry" href="hkl/hkl-hkl.html#HklGeometry">
+<ANCHOR id="HklParameter" href="hkl/hkl-hkl.html#HklParameter">
 <ANCHOR id="HklSampleReflection" href="hkl/hkl-hkl.html#HklSampleReflection">
-<ANCHOR id="HklSample" href="hkl/hkl-hkl.html#HklSample">
-<ANCHOR id="HklEngineList" href="hkl/hkl-hkl.html#HklEngineList">
 <ANCHOR id="HklDetector" href="hkl/hkl-hkl.html#HklDetector">
-<ANCHOR id="HklLattice" href="hkl/hkl-hkl.html#HklLattice">
-<ANCHOR id="HklGeometryList" href="hkl/hkl-hkl.html#HklGeometryList">
+<ANCHOR id="HklSample" href="hkl/hkl-hkl.html#HklSample">
 <ANCHOR id="hkl-hkl-axis-private" href="hkl/hkl-hkl-axis-private.html">
 <ANCHOR id="hkl-hkl-axis-private.functions" href="hkl/hkl-hkl-axis-private.html#hkl-hkl-axis-private.functions">
 <ANCHOR id="hkl-hkl-axis-private.other" href="hkl/hkl-hkl-axis-private.html#hkl-hkl-axis-private.other">
diff --git a/Documentation/hkl.html b/Documentation/hkl.html
index 0e56c36..dbecf46 100644
--- a/Documentation/hkl.html
+++ b/Documentation/hkl.html
@@ -2,8 +2,8 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
-<title>Welcome to hkl's 4.99.99.1946 documentation!</title>
-<!-- 2015-06-30 mar. 14:34 -->
+<title>Welcome to hkl's 4.99.99.1949 documentation!</title>
+<!-- 2015-07-03 ven. 16:03 -->
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
 <meta name="generator" content="Org-mode"/>
 <meta name="author" content="Picca Frédéric-Emmanuel"/>
@@ -175,7 +175,7 @@ for the JavaScript code in this tag.
 </head>
 <body>
 <div id="content">
-<h1 class="title">Welcome to hkl's 4.99.99.1946 documentation!</h1>
+<h1 class="title">Welcome to hkl's 4.99.99.1949 documentation!</h1>
 <div id="table-of-contents">
 <h2>Table of Contents</h2>
 <div id="text-table-of-contents">
@@ -329,17 +329,23 @@ for the JavaScript code in this tag.
 </li>
 <li><a href="#sec-6">6. Releases</a>
 <ul>
-<li><a href="#sec-6-1">6.1. 4.99.99.1946</a>
+<li><a href="#sec-6-1">6.1. 4.99.99.1949</a>
 <ul>
-<li><a href="#sec-6-1-1">6.1.1. <code>HklEngine</code></a></li>
+<li><a href="#sec-6-1-1">6.1.1. <code>HklInterval</code> <span class="timestamp-wrapper"><span class="timestamp"><2015-07-03 ven.></span></span></a></li>
+<li><a href="#sec-6-1-2">6.1.2. PATH_MAX <span class="timestamp-wrapper"><span class="timestamp"><2015-07-03 ven.></span></span></a></li>
 </ul>
 </li>
-<li><a href="#sec-6-2">6.2. 4.99.99.1940 <span class="timestamp-wrapper"><span class="timestamp"><2015-05-04 lun.></span></span></a>
+<li><a href="#sec-6-2">6.2. 4.99.99.1946 <span class="timestamp-wrapper"><span class="timestamp"><2015-06-30 mar.></span></span></a>
 <ul>
-<li><a href="#sec-6-2-1">6.2.1. <code>HklLattice</code> add an <code>hkl_lattice_volume_get</code></a></li>
-<li><a href="#sec-6-2-2">6.2.2. <code>HklEngine</code></a></li>
-<li><a href="#sec-6-2-3">6.2.3. <code>HklLattice</code> expose in the binding the _x_get/set methods <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></a></li>
-<li><a href="#sec-6-2-4">6.2.4. <code>HklSampleReflection</code> expose the flag_get/set and geometry_get/set method <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></a></li>
+<li><a href="#sec-6-2-1">6.2.1. <code>HklEngine</code></a></li>
+</ul>
+</li>
+<li><a href="#sec-6-3">6.3. 4.99.99.1940 <span class="timestamp-wrapper"><span class="timestamp"><2015-05-04 lun.></span></span></a>
+<ul>
+<li><a href="#sec-6-3-1">6.3.1. <code>HklLattice</code> add an <code>hkl_lattice_volume_get</code></a></li>
+<li><a href="#sec-6-3-2">6.3.2. <code>HklEngine</code></a></li>
+<li><a href="#sec-6-3-3">6.3.3. <code>HklLattice</code> expose in the binding the _x_get/set methods <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></a></li>
+<li><a href="#sec-6-3-4">6.3.4. <code>HklSampleReflection</code> expose the flag_get/set and geometry_get/set method <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></a></li>
 </ul>
 </li>
 </ul>
@@ -4854,7 +4860,7 @@ You can find the bug tracker here
 <li>Other OS
 
 <p>
-You just need to send an <a href="mailto:submit at bugs.debian.org?subject=%20My%20problem%20with%20hkl...&body=Package:%20hkl%0AVersion:%204.99.99.1946%0A%0AI%20found%20this%20problem%20in%20hkl">email</a>
+You just need to send an <a href="mailto:submit at bugs.debian.org?subject=%20My%20problem%20with%20hkl...&body=Package:%20hkl%0AVersion:%204.99.99.1949%0A%0AI%20found%20this%20problem%20in%20hkl">email</a>
 </p>
 </li>
 </ul>
@@ -5140,12 +5146,37 @@ use only the closest solution for the next points of the trajectory.
 <h2 id="sec-6"><span class="section-number-2">6</span> Releases</h2>
 <div class="outline-text-2" id="text-6">
 </div><div id="outline-container-sec-6-1" class="outline-3">
-<h3 id="sec-6-1"><span class="section-number-3">6.1</span> 4.99.99.1946</h3>
+<h3 id="sec-6-1"><span class="section-number-3">6.1</span> 4.99.99.1949</h3>
 <div class="outline-text-3" id="text-6-1">
 </div><div id="outline-container-sec-6-1-1" class="outline-4">
-<h4 id="sec-6-1-1"><span class="section-number-4">6.1.1</span> <span class="done DONE">DONE</span> <code>HklEngine</code></h4>
+<h4 id="sec-6-1-1"><span class="section-number-4">6.1.1</span> <span class="done DONE">DONE</span> <code>HklInterval</code> <span class="timestamp-wrapper"><span class="timestamp"><2015-07-03 ven.></span></span></h4>
 <div class="outline-text-4" id="text-6-1-1">
-</div><ol class="org-ol"><li>"emergence" <span class="timestamp-wrapper"><span class="timestamp"><2015-06-22 lun.></span></span><br/><div class="outline-text-5" id="text-6-1-1-1">
+<p>
+<code>hkl_interval_cmp</code> was wrong. Now the comparison is done between
+<code>HKL_EPSILON</code> and the distance between minimum and maximum. This
+problem was triggered first on ppc64el architecture.
+</p>
+</div>
+</div>
+
+<div id="outline-container-sec-6-1-2" class="outline-4">
+<h4 id="sec-6-1-2"><span class="section-number-4">6.1.2</span> <span class="done DONE">DONE</span> PATH_MAX <span class="timestamp-wrapper"><span class="timestamp"><2015-07-03 ven.></span></span></h4>
+<div class="outline-text-4" id="text-6-1-2">
+<p>
+Replace getcwd called by get_current_dir_path instead in order to
+avoid PATH_MAX which is not available on hurd.
+</p>
+</div>
+</div>
+</div>
+
+<div id="outline-container-sec-6-2" class="outline-3">
+<h3 id="sec-6-2"><span class="section-number-3">6.2</span> 4.99.99.1946 <span class="timestamp-wrapper"><span class="timestamp"><2015-06-30 mar.></span></span></h3>
+<div class="outline-text-3" id="text-6-2">
+</div><div id="outline-container-sec-6-2-1" class="outline-4">
+<h4 id="sec-6-2-1"><span class="section-number-4">6.2.1</span> <span class="done DONE">DONE</span> <code>HklEngine</code></h4>
+<div class="outline-text-4" id="text-6-2-1">
+</div><ol class="org-ol"><li>"emergence" <span class="timestamp-wrapper"><span class="timestamp"><2015-06-22 lun.></span></span><br/><div class="outline-text-5" id="text-6-2-1-1">
 <p>
 Add a new emergence engine which contain only one pseudo axis.
 </p>
@@ -5160,12 +5191,12 @@ Add a new emergence engine which contain only one pseudo axis.
 </div>
 </div>
 
-<div id="outline-container-sec-6-2" class="outline-3">
-<h3 id="sec-6-2"><span class="section-number-3">6.2</span> 4.99.99.1940 <span class="timestamp-wrapper"><span class="timestamp"><2015-05-04 lun.></span></span></h3>
-<div class="outline-text-3" id="text-6-2">
-</div><div id="outline-container-sec-6-2-1" class="outline-4">
-<h4 id="sec-6-2-1"><span class="section-number-4">6.2.1</span> <span class="done DONE">DONE</span> <code>HklLattice</code> add an <code>hkl_lattice_volume_get</code></h4>
-<div class="outline-text-4" id="text-6-2-1">
+<div id="outline-container-sec-6-3" class="outline-3">
+<h3 id="sec-6-3"><span class="section-number-3">6.3</span> 4.99.99.1940 <span class="timestamp-wrapper"><span class="timestamp"><2015-05-04 lun.></span></span></h3>
+<div class="outline-text-3" id="text-6-3">
+</div><div id="outline-container-sec-6-3-1" class="outline-4">
+<h4 id="sec-6-3-1"><span class="section-number-4">6.3.1</span> <span class="done DONE">DONE</span> <code>HklLattice</code> add an <code>hkl_lattice_volume_get</code></h4>
+<div class="outline-text-4" id="text-6-3-1">
 <div class="org-src-container">
 
 <pre class="src src-c">volume = hkl_lattice_volume_get(lattice);
@@ -5174,10 +5205,10 @@ Add a new emergence engine which contain only one pseudo axis.
 </div>
 </div>
 
-<div id="outline-container-sec-6-2-2" class="outline-4">
-<h4 id="sec-6-2-2"><span class="section-number-4">6.2.2</span> <span class="done DONE">DONE</span> <code>HklEngine</code></h4>
-<div class="outline-text-4" id="text-6-2-2">
-</div><ol class="org-ol"><li>"nrj, sample, &#x2026;  dependencies" <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span><br/><div class="outline-text-5" id="text-6-2-2-1">
+<div id="outline-container-sec-6-3-2" class="outline-4">
+<h4 id="sec-6-3-2"><span class="section-number-4">6.3.2</span> <span class="done DONE">DONE</span> <code>HklEngine</code></h4>
+<div class="outline-text-4" id="text-6-3-2">
+</div><ol class="org-ol"><li>"nrj, sample, &#x2026;  dependencies" <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span><br/><div class="outline-text-5" id="text-6-3-2-1">
 <p>
 Add the <code>hkl_engine_dependencies_get</code> method which return if the
 <code>HklEngine</code> depends of the axes, the energy, or the sample. the
@@ -5199,7 +5230,7 @@ possible values are stored in the <code>HklEngineDependencies</code> enum.
 </div>
 </li>
 
-<li>"tth2" <span class="timestamp-wrapper"><span class="timestamp"><2015-04-03 ven></span></span><br/><div class="outline-text-5" id="text-6-2-2-2">
+<li>"tth2" <span class="timestamp-wrapper"><span class="timestamp"><2015-04-03 ven></span></span><br/><div class="outline-text-5" id="text-6-3-2-2">
 <p>
 Add a new hkl engine which contain two pseudo axes.
 </p>
@@ -5212,7 +5243,7 @@ Add a new hkl engine which contain two pseudo axes.
 </div>
 </li>
 
-<li>"incidence" <span class="timestamp-wrapper"><span class="timestamp"><2015-04-21 mar.></span></span><br/><div class="outline-text-5" id="text-6-2-2-3">
+<li>"incidence" <span class="timestamp-wrapper"><span class="timestamp"><2015-04-21 mar.></span></span><br/><div class="outline-text-5" id="text-6-3-2-3">
 <p>
 Add a new incidence engine which contain only one pseudo axis.
 </p>
@@ -5225,14 +5256,14 @@ Add a new incidence engine which contain only one pseudo axis.
 </div>
 </li>
 
-<li><code>hkl_engine_parameter_set</code> <span class="timestamp-wrapper"><span class="timestamp"><2015-05-04 lun.></span></span><br/><div class="outline-text-5" id="text-6-2-2-4">
+<li><code>hkl_engine_parameter_set</code> <span class="timestamp-wrapper"><span class="timestamp"><2015-05-04 lun.></span></span><br/><div class="outline-text-5" id="text-6-3-2-4">
 <p>
 Fix a bug and expose the method in the binding.
 </p>
 </div>
 </li>
 
-<li>general<br/><div class="outline-text-5" id="text-6-2-2-5">
+<li>general<br/><div class="outline-text-5" id="text-6-3-2-5">
 <ul class="org-ul">
 <li>use #define AXIS "axis_name" in all the code to set the axes
 names at only one place. <span class="timestamp-wrapper"><span class="timestamp"><2015-04-23 jeu.></span></span>
@@ -5242,9 +5273,9 @@ names at only one place. <span class="timestamp-wrapper"><span class="timestamp"
 </li></ol>
 </div>
 
-<div id="outline-container-sec-6-2-3" class="outline-4">
-<h4 id="sec-6-2-3"><span class="section-number-4">6.2.3</span> <span class="done DONE">DONE</span> <code>HklLattice</code> expose in the binding the _x_get/set methods <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></h4>
-<div class="outline-text-4" id="text-6-2-3">
+<div id="outline-container-sec-6-3-3" class="outline-4">
+<h4 id="sec-6-3-3"><span class="section-number-4">6.3.3</span> <span class="done DONE">DONE</span> <code>HklLattice</code> expose in the binding the _x_get/set methods <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></h4>
+<div class="outline-text-4" id="text-6-3-3">
 <p>
 Now you can use hkl_lattice_x_get where x=a, b, c, alpha, beta,
 gamma in the bindings.
@@ -5258,9 +5289,9 @@ lattice.a_set(a)
 </div>
 </div>
 
-<div id="outline-container-sec-6-2-4" class="outline-4">
-<h4 id="sec-6-2-4"><span class="section-number-4">6.2.4</span> <span class="done DONE">DONE</span> <code>HklSampleReflection</code> expose the flag_get/set and geometry_get/set method <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></h4>
-<div class="outline-text-4" id="text-6-2-4">
+<div id="outline-container-sec-6-3-4" class="outline-4">
+<h4 id="sec-6-3-4"><span class="section-number-4">6.3.4</span> <span class="done DONE">DONE</span> <code>HklSampleReflection</code> expose the flag_get/set and geometry_get/set method <span class="timestamp-wrapper"><span class="timestamp"><2015-03-24 mar.></span></span></h4>
+<div class="outline-text-4" id="text-6-3-4">
 <p>
 It is now possible to change the geometry stored in a reflection
 via the bindings.
@@ -5748,7 +5779,7 @@ pseudo axes and the mode parameters.
 </div></div>
 <div id="postamble" class="status">
 <p class="author">Author: Picca Frédéric-Emmanuel</p>
-<p class="date">Created: 2015-06-30 mar. 14:34</p>
+<p class="date">Created: 2015-07-03 ven. 16:03</p>
 <p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 24.4.1 (<a href="http://orgmode.org">Org</a> mode 8.2.10)</p>
 <p class="xhtml-validation"><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a></p>
 </div>
diff --git a/Documentation/hkl.org.in b/Documentation/hkl.org.in
index 2cdd21c..6255a4a 100644
--- a/Documentation/hkl.org.in
+++ b/Documentation/hkl.org.in
@@ -829,6 +829,14 @@ git clone git://repo.or.cz/hkl.git
    #+END_QUOTE
 * Releases
 ** @VERSION@
+*** DONE =HklInterval= <2015-07-03 ven.>
+    =hkl_interval_cmp= was wrong. Now the comparison is done between
+    =HKL_EPSILON= and the distance between minimum and maximum. This
+    problem was triggered first on ppc64el architecture.
+*** DONE PATH_MAX <2015-07-03 ven.>
+    Replace getcwd called by get_current_dir_path instead in order to
+    avoid PATH_MAX which is not available on hurd.
+** 4.99.99.1946 <2015-06-30 mar.>
 *** DONE =HklEngine=
 **** "emergence" <2015-06-22 lun.>
      Add a new emergence engine which contain only one pseudo axis.
diff --git a/configure b/configure
index 2818dab..bd7e5ed 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for hkl 4.99.99.1946.
+# Generated by GNU Autoconf 2.69 for hkl 4.99.99.1949.
 #
 # Report bugs to <picca at synchrotron-soleil.fr>.
 #
@@ -590,8 +590,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='hkl'
 PACKAGE_TARNAME='hkl'
-PACKAGE_VERSION='4.99.99.1946'
-PACKAGE_STRING='hkl 4.99.99.1946'
+PACKAGE_VERSION='4.99.99.1949'
+PACKAGE_STRING='hkl 4.99.99.1949'
 PACKAGE_BUGREPORT='picca at synchrotron-soleil.fr'
 PACKAGE_URL=''
 
@@ -1424,7 +1424,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures hkl 4.99.99.1946 to adapt to many kinds of systems.
+\`configure' configures hkl 4.99.99.1949 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1494,7 +1494,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of hkl 4.99.99.1946:";;
+     short | recursive ) echo "Configuration of hkl 4.99.99.1949:";;
    esac
   cat <<\_ACEOF
 
@@ -1643,7 +1643,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-hkl configure 4.99.99.1946
+hkl configure 4.99.99.1949
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2317,7 +2317,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by hkl $as_me 4.99.99.1946, which was
+It was created by hkl $as_me 4.99.99.1949, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3185,7 +3185,7 @@ fi
 
 # Define the identity of the package.
  PACKAGE='hkl'
- VERSION='4.99.99.1946'
+ VERSION='4.99.99.1949'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -15929,7 +15929,7 @@ _ACEOF
 
 
 cat >>confdefs.h <<_ACEOF
-#define VREV 1946
+#define VREV 1949
 _ACEOF
 
 version_info="103:99:99"
@@ -19406,7 +19406,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by hkl $as_me 4.99.99.1946, which was
+This file was extended by hkl $as_me 4.99.99.1949, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -19472,7 +19472,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-hkl config.status 4.99.99.1946
+hkl config.status 4.99.99.1949
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff --git a/hkl/hkl-interval.c b/hkl/hkl-interval.c
index fb79304..a2e97fb 100644
--- a/hkl/hkl-interval.c
+++ b/hkl/hkl-interval.c
@@ -70,7 +70,8 @@ void hkl_interval_free(HklInterval *self)
  **/
 int hkl_interval_cmp(const HklInterval *self, const HklInterval *interval)
 {
-	return self->min == interval->min && self->max == interval->max;
+	return (fabs(self->min - interval->min) > HKL_EPSILON)
+		|| (fabs(self->max - interval->max) > HKL_EPSILON);
 }
 
 /**
diff --git a/hkl3d/hkl3d.cpp b/hkl3d/hkl3d.cpp
index 691800b..847e62f 100644
--- a/hkl3d/hkl3d.cpp
+++ b/hkl3d/hkl3d.cpp
@@ -758,15 +758,16 @@ void hkl3d_free(Hkl3D *self)
 Hkl3DModel *hkl3d_add_model_from_file(Hkl3D *self,
 				       const char *filename, const char *directory)
 {
-	char current[PATH_MAX];
+	char *current;
 	Hkl3DModel *model = NULL;
 	int res;
 
 	/* first set the current directory using the directory parameter*/
-	getcwd(current, PATH_MAX);
+	current = get_current_dir_name();
 	res = chdir(directory);
 	model = hkl3d_model_new_from_file(filename);
 	res = chdir(current);
+	free(current);
 
 	if(model){
 		/* we can not display two different models with the current g3dviewer code */
diff --git a/tests/hkl-interval-t.c b/tests/hkl-interval-t.c
index f79a659..48ac1b5 100644
--- a/tests/hkl-interval-t.c
+++ b/tests/hkl-interval-t.c
@@ -33,7 +33,7 @@ static void cmp(void)
 	HklInterval interval;
 
 	interval = interval_ref;
-	ok(TRUE == hkl_interval_cmp(&interval_ref, &interval), __func__);
+	ok(FALSE == hkl_interval_cmp(&interval_ref, &interval), __func__);
 }
 
 static void plus_interval(void)
@@ -43,7 +43,7 @@ static void plus_interval(void)
 	HklInterval i2 = {-1, 4};
 
 	hkl_interval_plus_interval(&i1, &i2);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i1), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i1), __func__);
 }
 
 static void plus_double(void)
@@ -52,7 +52,7 @@ static void plus_double(void)
 	HklInterval i1 = {-2, 8};
 
 	hkl_interval_plus_double(&i1, 1);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i1), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i1), __func__);
 }
 
 static void times_interval(void)
@@ -62,7 +62,7 @@ static void times_interval(void)
 	HklInterval i2 = {-1, 4};
 
 	hkl_interval_times_interval(&i1, &i2);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i1), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i1), __func__);
 }
 
 static void times_double(void)
@@ -71,7 +71,7 @@ static void times_double(void)
 	HklInterval i1 = {-9, 36};
 
 	hkl_interval_times_double(&i1, -3);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i1), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i1), __func__);
 }
 
 static void divides_double(void)
@@ -80,7 +80,7 @@ static void divides_double(void)
 	HklInterval i1 = {-108, 27};
 
 	hkl_interval_divides_double(&i1, -3);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i1), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i1), __func__);
 }
 
 static void contain_zero(void)
@@ -111,7 +111,7 @@ static void cosinus(void)
 		i_ref.min = min_ref;					\
 		i_ref.max = max_ref;					\
 		hkl_interval_cos(&i);					\
-		ok(TRUE == hkl_interval_cmp(&i_ref, &i), __func__);	\
+		ok(FALSE == hkl_interval_cmp(&i_ref, &i), __func__);	\
 	} while(0)
 
 	/* 1st max(0) */
@@ -166,7 +166,7 @@ static void acosinus(void)
 	HklInterval i = {-.5, .5};
 
 	hkl_interval_acos(&i);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i), __func__);
 }
 
 static void sinus(void)
@@ -187,7 +187,7 @@ static void sinus(void)
 		i_ref.min = min_ref;					\
 		i_ref.max = max_ref;					\
 		hkl_interval_sin(&i);					\
-		ok(TRUE == hkl_interval_cmp(&i_ref, &i), __func__);	\
+		ok(FALSE == hkl_interval_cmp(&i_ref, &i), __func__);	\
 	} while(0)
 
 	/* 1st max(0) */
@@ -245,7 +245,7 @@ static void asinus(void)
 	HklInterval i = {-.5, .5};
 
 	hkl_interval_asin(&i);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i), __func__);
 }
 
 static void tangeante(void)
@@ -260,7 +260,7 @@ static void tangeante(void)
 		i_ref.min = min_ref;					\
 		i_ref.max = max_ref;					\
 		hkl_interval_tan(&i);					\
-		ok(TRUE == hkl_interval_cmp(&i_ref, &i), __func__);	\
+		ok(FALSE == hkl_interval_cmp(&i_ref, &i), __func__);	\
 	} while(0)
 
 	TAN(-100, -89, -INFINITY, INFINITY);
@@ -279,7 +279,7 @@ static void atangeante(void)
 	HklInterval i = {-10, 10};
 
 	hkl_interval_atan(&i);
-	ok(TRUE == hkl_interval_cmp(&i_ref, &i), __func__);
+	ok(FALSE == hkl_interval_cmp(&i_ref, &i), __func__);
 }
 
 static void length(void)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hkl.git



More information about the debian-science-commits mailing list