02111-1307, USA. */
#include <config.h>
-
+#include "format.h"
#include <ctype.h>
#include <assert.h>
#include <stdlib.h>
#include "error.h"
-#include "format.h"
#include "lexer.h"
#include "misc.h"
#include "str.h"
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;
+}