See following example. I don't want the , char in a separate line. I go through all indent options but seems like no one is for this.
$ indent -version
GNU indent 2.2.9
$ cat foo.c
void
foo ()
{
struct_a arr[] = {
{&a, sizeof (a)},
{&b, sizeof (b)},
{&c, sizeof (c)},
{&d, sizeof (d)},
};
}
$ indent -st foo.c
void
foo ()
{
struct_a arr[] = {
{&a, sizeof (a)}
,
{&b, sizeof (b)}
,
{&c, sizeof (c)}
,
{&d, sizeof (d)}
,
};
}
$