format: Make fmt_number_style_init(), fmt_number_style_destroy() static.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 29 Aug 2010 20:48:28 +0000 (13:48 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 29 Aug 2010 21:57:55 +0000 (14:57 -0700)
These functions were not used outside format.c anyhow.

src/data/format.c
src/data/format.h

index 3907016cf4dac66ba021694b175e96ef67b2761a..5fe620b8b0425c224ea4f17a095dbef90d1e857f 100644 (file)
@@ -45,7 +45,8 @@ static bool valid_width (enum fmt_type, int width, bool for_input);
 
 static int max_digits_for_bytes (int bytes);
 
-void fmt_number_style_init (struct fmt_number_style *style);
+static void fmt_number_style_init (struct fmt_number_style *);
+static void fmt_number_style_destroy (struct fmt_number_style *);
 
 
 /* Initialize the format module. */
@@ -857,9 +858,7 @@ max_digits_for_bytes (int bytes)
   return map[bytes - 1];
 }
 \f
-
-
-void
+static void
 fmt_number_style_init (struct fmt_number_style *style)
 {
   style->neg_prefix = ss_empty ();
@@ -872,7 +871,7 @@ fmt_number_style_init (struct fmt_number_style *style)
 
 
 /* Destroys a struct fmt_number_style. */
-void
+static void
 fmt_number_style_destroy (struct fmt_number_style *style)
 {
   if (style != NULL)
index 79fda025f054c91b3ae7591b0ce86a9e2c4d7c3c..c97f46c5f78b09d98cc173e24757dbc805acccc1 100644 (file)
@@ -146,8 +146,6 @@ const char *fmt_date_template (enum fmt_type) PURE_FUNCTION;
    struct fmt_number_style. */
 #define FMT_STYLE_AFFIX_MAX 16
 
-void fmt_number_style_destroy (struct fmt_number_style *);
-
 int fmt_affix_width (const struct fmt_number_style *);
 int fmt_neg_affix_width (const struct fmt_number_style *);