[gnumeric] Names: make expr_name_new static.



commit a52656077ecb85cf83520a31bbed48818c9ddf55
Author: Morten Welinder <terra gnome org>
Date:   Mon May 16 15:11:54 2011 -0400

    Names: make expr_name_new static.

 ChangeLog       |    4 ++++
 src/expr-name.c |    4 +---
 src/expr-name.h |    2 --
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f08015c..19ea942 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-16  Morten Welinder  <terra gnome org>
+
+	* src/expr-name.c (expr_name_new): Make this static.
+
 2011-05-13  Morten Welinder  <terra gnome org>
 
 	* src/io-context-gtk.c (icg_show_gui): Plug leak.
diff --git a/src/expr-name.c b/src/expr-name.c
index 605e987..2cc9fcd 100644
--- a/src/expr-name.c
+++ b/src/expr-name.c
@@ -440,7 +440,7 @@ expr_name_lookup (GnmParsePos const *pp, char const *name)
  *
  * Creates a new name without linking it into any container.
  **/
-GnmNamedExpr *
+static GnmNamedExpr *
 expr_name_new (char const *name, gboolean is_placeholder)
 {
 	GnmNamedExpr *nexpr;
@@ -1106,8 +1106,6 @@ expr_name_perm_add (Sheet *sheet, char const *name,
 		res->is_permanent = TRUE;
 		res->is_editable = is_editable;
 	}
-
-
 }
 
 /* ------------------------------------------------------------------------- */
diff --git a/src/expr-name.h b/src/expr-name.h
index 07de39a..8c1097f 100644
--- a/src/expr-name.h
+++ b/src/expr-name.h
@@ -34,8 +34,6 @@ void expr_name_perm_add        (Sheet *sheet,
 				char const *name,
 				GnmExprTop const *texpr,
 				gboolean is_editable);
-GnmNamedExpr *expr_name_new    (char const *name, gboolean is_placeholder);
-
 void	 expr_name_ref	      (GnmNamedExpr *nexpr);
 void	 expr_name_unref      (GnmNamedExpr *nexpr);
 void     expr_name_remove     (GnmNamedExpr *nexpr);



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