[dia] [api] move 'typedef double real;' to diatypes.h



commit 835e08a622252be64b835127c871e2541a81f230
Author: Hans Breuer <hans breuer org>
Date:   Fri Oct 12 12:26:31 2012 +0200

    [api] move 'typedef double real;' to diatypes.h

 lib/diatypes.h |    3 +++
 lib/geometry.h |    2 --
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/diatypes.h b/lib/diatypes.h
index 86e12ed..af000af 100644
--- a/lib/diatypes.h
+++ b/lib/diatypes.h
@@ -24,6 +24,9 @@
 /* THIS HEADER MUST NOT INCLUDE ANY OTHER HEADER! */
 /*#include "units.h" */
 
+/* from geometry.h - but used more generic */
+typedef double real;
+
 /* In diagramdata.h: */
 typedef struct _DiagramData DiagramData;
 typedef struct _Layer Layer;
diff --git a/lib/geometry.h b/lib/geometry.h
index b8cb893..0335565 100644
--- a/lib/geometry.h
+++ b/lib/geometry.h
@@ -74,8 +74,6 @@ G_BEGIN_DECLS
    |
    V  y
  */
-
-typedef double real;
 typedef real coord;
 
 /*! \brief A two dimensional position */



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