[gnumeric] GnmMatrix: forward-declare.



commit 18dda60212937afd30706bc03b85f9f4eb2ef685
Author: Morten Welinder <terra gnome org>
Date:   Sun Oct 2 16:02:25 2016 -0400

    GnmMatrix: forward-declare.

 src/gnumeric-fwd.h |    1 +
 src/mathfunc.h     |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gnumeric-fwd.h b/src/gnumeric-fwd.h
index c4eb4c8..584508b 100644
--- a/src/gnumeric-fwd.h
+++ b/src/gnumeric-fwd.h
@@ -56,6 +56,7 @@ typedef struct _GnmItemBar            GnmItemBar;
 typedef struct _GnmItemCursor          GnmItemCursor;
 typedef struct _GnmItemEdit            GnmItemEdit;
 typedef struct _GnmItemGrid            GnmItemGrid;
+typedef struct GnmMatrix_               GnmMatrix;
 typedef struct _GnmNamedExpr           GnmNamedExpr;
 typedef struct _GnmNamedExprCollection GnmNamedExprCollection;
 typedef struct _GnmPane                        GnmPane;
diff --git a/src/mathfunc.h b/src/mathfunc.h
index 8512f50..c6b7fb2 100644
--- a/src/mathfunc.h
+++ b/src/mathfunc.h
@@ -125,10 +125,10 @@ gnm_float qtukey(gnm_float p, gnm_float nmeans, gnm_float df, gnm_float nranges,
 
 /* Matrix functions. */
 
-typedef struct {
+struct GnmMatrix_ {
        gnm_float **data;   /* [y][x] */
        int cols, rows;
-} GnmMatrix;
+};
 
 GnmMatrix *gnm_matrix_new (int rows, int cols); /* Note the order: y then x. */
 void gnm_matrix_free (GnmMatrix *m);


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