[libgda] Patch for bug #754805 by Daniel Espinosa



commit eb55cbd14baaf1d5bdd38f11151750fd2f63db2c
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Sep 30 18:03:22 2015 +0200

    Patch for bug #754805 by Daniel Espinosa

 libgda/gda-value.c |    3 ---
 libgda/gda-value.h |   41 ++++++++++++++++-------------------------
 2 files changed, 16 insertions(+), 28 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index adf9942..43c7825 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -55,7 +55,6 @@
 #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
 #endif
 
-#  ifdef GSEAL_ENABLE
 /**
  * GdaNumeric: (set-value-func gda_value_set_numeric) (get-value-func gda_value_get_numeric)
  * @number: a string representing a number
@@ -75,8 +74,6 @@ struct _GdaNumeric {
        /*< private >*/
        gpointer reserved; /* reserved for future usage with GMP (http://gmplib.org/) */
 };
-#  else
-#endif
 
 
 
diff --git a/libgda/gda-value.h b/libgda/gda-value.h
index fe69df1..7ac4629 100644
--- a/libgda/gda-value.h
+++ b/libgda/gda-value.h
@@ -75,19 +75,21 @@ typedef struct {
        gdouble y;
 } GdaGeometricPoint;
 
-
+/* GdaNumeric */
 typedef struct _GdaNumeric GdaNumeric;
-# ifdef GSEAL_ENABLE
-# else
-struct _GdaNumeric {
-       gchar*   GSEAL(number);
-       glong    GSEAL(precision);
-       glong    GSEAL(width);
-       
-       /*< private >*/
-       gpointer reserved; /* reserved for future usage with GMP (http://gmplib.org/) */
-};
-#endif
+
+GType                             gda_numeric_get_type (void) G_GNUC_CONST;
+GdaNumeric*                       gda_numeric_new (void);
+GdaNumeric*                       gda_numeric_copy (GdaNumeric *src);
+void                              gda_numeric_set_from_string (GdaNumeric *numeric, const gchar* str);
+void                              gda_numeric_set_double (GdaNumeric *numeric, gdouble number);
+gdouble                           gda_numeric_get_double (const GdaNumeric *numeric);
+void                              gda_numeric_set_precision (GdaNumeric *numeric, glong precision);
+glong                             gda_numeric_get_precision (const GdaNumeric *numeric);
+void                              gda_numeric_set_width (GdaNumeric *numeric, glong width);
+glong                             gda_numeric_get_width (const GdaNumeric *numeric);
+gchar*                            gda_numeric_get_string (const GdaNumeric *numeric);
+void                              gda_numeric_free (GdaNumeric *numeric);
 
 /**
  * GdaTime:
@@ -133,7 +135,7 @@ typedef struct {
 
 /**
  * GdaBinary:
- * @data: (array): the actual data as an array
+ * @data: (array length=binary_length): the actual data as an array
  * @binary_length: length of @data
  */
 typedef struct {
@@ -258,18 +260,7 @@ GdaBlob                          *gda_string_to_blob (const gchar *str);
 
 GType                             gda_null_get_type (void) G_GNUC_CONST;
 GType                             gda_default_get_type (void) G_GNUC_CONST;
-GType                             gda_numeric_get_type (void) G_GNUC_CONST;
-GdaNumeric*                       gda_numeric_new (void);
-GdaNumeric*                       gda_numeric_copy (GdaNumeric *src);
-void                              gda_numeric_set_from_string (GdaNumeric *numeric, const gchar* str);
-void                              gda_numeric_set_double (GdaNumeric *numeric, gdouble number);
-gdouble                           gda_numeric_get_double (const GdaNumeric *numeric);
-void                              gda_numeric_set_precision (GdaNumeric *numeric, glong precision);
-glong                             gda_numeric_get_precision (const GdaNumeric *numeric);
-void                              gda_numeric_set_width (GdaNumeric *numeric, glong width);
-glong                             gda_numeric_get_width (const GdaNumeric *numeric);
-gchar*                            gda_numeric_get_string (const GdaNumeric *numeric);
-void                              gda_numeric_free (GdaNumeric *numeric);
+
 
 GType                             gda_time_get_type (void) G_GNUC_CONST;
 gpointer                          gda_time_copy (gpointer boxed);


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