projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Beginning of VFM cleanup.
[pspp-builds.git]
/
src
/
format.c
diff --git
a/src/format.c
b/src/format.c
index bed7241884099b14864c2c3f0e69104f8a0ee00e..33a81ff30142366fc5c044ee1deadd86b8e10e1c 100644
(file)
--- a/
src/format.c
+++ b/
src/format.c
@@
-340,3
+340,13
@@
parse_format_specifier (struct fmt_spec *input, int allow_xt)
return 1;
}
+int
+get_format_var_width (const struct fmt_spec *spec)
+{
+ if (spec->type == FMT_AHEX)
+ return spec->w * 2;
+ else if (spec->type == FMT_A)
+ return spec->w;
+ else
+ return 0;
+}