Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] RFC: use ISO C99 style struct initialization
From: Nathan Hjelm (hjelmn_at_[hidden])
Date: 2011-01-19 14:23:06

I don't know if this has been discussed before or if this will break Windows (or some obscure platform) support but I would like to start using the ISO C99 style for struct initialization (see section 6.7.8, example 10 in Using this style would make mca code much easier to read. Any thoughts? Would this break something?

struct module_foo {
        char *bar;
        int baz;

struct foo foobar = {
        .bar = "foobar",
        .baz = 1