projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format: Make fmt_number_style_init(), fmt_number_style_destroy() static.
[pspp]
/
src
/
data
/
format.c
diff --git
a/src/data/format.c
b/src/data/format.c
index 3907016cf4dac66ba021694b175e96ef67b2761a..5fe620b8b0425c224ea4f17a095dbef90d1e857f 100644
(file)
--- a/
src/data/format.c
+++ b/
src/data/format.c
@@
-45,7
+45,8
@@
static bool valid_width (enum fmt_type, int width, bool for_input);
static int max_digits_for_bytes (int bytes);
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. */
/* Initialize the format module. */
@@
-857,9
+858,7
@@
max_digits_for_bytes (int bytes)
return map[bytes - 1];
}
\f
return map[bytes - 1];
}
\f
-
-
-void
+static void
fmt_number_style_init (struct fmt_number_style *style)
{
style->neg_prefix = ss_empty ();
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. */
/* Destroys a struct fmt_number_style. */
-void
+
static
void
fmt_number_style_destroy (struct fmt_number_style *style)
{
if (style != NULL)
fmt_number_style_destroy (struct fmt_number_style *style)
{
if (style != NULL)