-/* $Id: out.c,v 1.18 2010/07/18 22:55:06 kristaps Exp $ */
+/* $Id: out.c,v 1.23 2010/07/22 23:03:15 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
return(0);
}
+ /* FIXME: do this in the caller. */
if ((dst->scale = atof(buf)) < 0)
dst->scale = 0;
dst->unit = unit;
break;
}
break;
+ case ('M'):
+ /* FALLTHROUGH */
+ case ('m'):
+ /* FALLTHROUGH */
case ('*'):
- *d = DECO_RESERVED;
+ if ('*' == c)
+ *d = DECO_RESERVED;
+
switch (wp[i++]) {
case ('('):
lim = 2;
case ('\''):
term = '\'';
break;
+ case ('0'):
+ j++;
+ /* FALLTHROUGH */
default:
i--;
lim = 1;
*d = DECO_NOSPACE;
return(i);
default:
- *d = DECO_SPECIAL;
+ *d = DECO_SSPECIAL;
i--;
lim = 1;
break;