This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New command line switch -fada-spec-parent


On Fri, 7 Sep 2012, Thomas Quinot wrote:

>         * c-family/c.opt (-fada-spec-parent): Define new command line switch.
>         * c-family/c-ada-spec.c (get_ada_package): When -fada-spec-parent
>         is specified, generate binding spec as a child of the specified unit.

c-family has its own ChangeLog.

> +  int plen;

Use size_t rather than int for this length.

> +    plen = strlen(ada_specs_parent) + 1;

Missing space before '('.

> +    strcpy(res, ada_specs_parent);

Likewise.

> +    res [plen - 1] = '.';

Stray space before '['.

OK with those issues fixed.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]