sprintf cleanup
@@ -384,7 +384,6 @@ static int sprintf_parsepattern(t_sprintf *x, char **patternp)
}
if (*numfield)
numfield = 0;
-
if (strchr("diouxX", *ptr))
{
type = SPRINTF_INT;
@@ -394,8 +393,7 @@ static int sprintf_parsepattern(t_sprintf *x, char **patternp)
{
if (modifier)
{
- if (x) sprintf(errstring,
- "\'%c\' modifier not supported", modifier);
+ if (x) sprintf(errstring, "\'%c\' modifier not supported", modifier);
break;
}
type = SPRINTF_FLOAT;
@@ -405,8 +403,7 @@ static int sprintf_parsepattern(t_sprintf *x, char **patternp)
{
if (modifier)
{
- if (x) sprintf(errstring,
- "\'%c\' modifier not supported", modifier);
+ if (x) sprintf(errstring, "\'%c\' modifier not supported", modifier);
break;
}
type = SPRINTF_CHAR;
@@ -416,8 +413,7 @@ static int sprintf_parsepattern(t_sprintf *x, char **patternp)
{
if (modifier)
{
- if (x) sprintf(errstring,
- "\'%c\' modifier not supported", modifier);
+ if (x) sprintf(errstring, "\'%c\' modifier not supported", modifier);
break;
}
type = SPRINTF_STRING;
@@ -472,14 +468,12 @@ static int sprintf_parsepattern(t_sprintf *x, char **patternp)
}
else if (*ptr == '*')
{
- if (x) sprintf(errstring, "%s parameter not supported",
- (dotseen ? "precision" : "width"));
+ if (x) sprintf(errstring, "%s parameter not supported", (dotseen ? "precision" : "width"));
break;
}
else if (!strchr("-+ #\'", *ptr))
{
- if (x) sprintf(errstring,
- "\'%c\' format character not supported", *ptr);
+ if (x) sprintf(errstring, "\'%c\' format character not supported", *ptr);
break;
}
}
@@ -490,8 +484,7 @@ static int sprintf_parsepattern(t_sprintf *x, char **patternp)
if (x && type == SPRINTF_UNSUPPORTED)
{
if (*errstring)
- loud_error((t_pd *)x, "slot skipped (%s %s)",
- errstring, "in a format pattern");
+ loud_error((t_pd *)x, "slot skipped (%s %s)", errstring, "in a format pattern");
else
loud_error((t_pd *)x, "slot skipped");
}
@@ -620,7 +613,6 @@ static void *sprintf_new(t_symbol *s, int ac, t_atom *av)
}
}
}
- // pd_error(x, "[cyclone/sprintf] is not ready yet");
outlet_new((t_object *)x, &s_anything);
return (x);
}
