This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA] Typedef'd method parameters [1/4]


Keith> +static void
Keith> +do_demangled_name_parse_free_cleanup (void *data)
Keith> +{
Keith> +  struct demangle_parse_info *info = (struct demangle_parse_info *) data;
Keith> +  cp_demangled_name_parse_free (info);

Blank line between declarations and code.

Keith> +extern struct cleanup *
Keith> +make_cleanup_cp_demangled_name_parse_free (struct demangle_parse_info *);

I think the function name should not start in column 0 here.
Typical is column 4 or 5, I forget.

Keith> +cp_merge_demangle_parse_infos (struct demangle_parse_info *,
Keith> +                              struct demangle_component *,
Keith> +                              struct demangle_parse_info *);

Missing a `void' here.  Probably also an `extern' -- I try to follow the
prevailing style in a given file.

This is ok with these nits fixed.

Tom


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