This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Create cleanups.[ch]
- From: Pedro Alves <palves at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: Doug Evans <dje at sebabeach dot org>, gdb-patches at sourceware dot org
- Date: Mon, 16 Apr 2012 11:50:43 +0100
- Subject: Re: [patch] Create cleanups.[ch]
- References: <m3hawkhjde.fsf@annie.sebabeach.org> <m3mx6cjmo9.fsf@redhat.com>
On 04/16/2012 06:00 AM, Sergio Durigan Junior wrote:
> Thanks, I'm always in favor of such API separations. Sorry for
> nitpicking, I know you are just moving the code around, but since you
> touched it I felt I should take a look even if it's old code (maybe,
> *especially* because of that!).
Note any such changes should best be done as separate changes. It's best
to separate code motion from other changes.
This made me notice that make_my_cleanup was unexported, and made static in
this patch, but note how that goes by mostly unnoticed (at least it was
to me on first sight). I'd have preferred that had been done as an independent
preparatory patch. I've now checked insight/gdbtk, to see if it was making
using use of it of those symbols, just in case, which would mean
in addition that CLEANUP_FENCEPOST in the other patch would also need to
be exported, and, it's not.
> It should be:
>
> Copyright (C) 2012 Free Software Foundation, Inc.
>
> AFAIK, since it's a new file.
But the contents are not new. By that reasoning, if we renamed
every file in the tree, while changing nothing else, all the copyright
years would end up 2012 only. I don't think that'd be right.
--
Pedro Alves