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: [PATCH 2/2] don't allocate serial_ops


Tom> Now that struct serial_ops is const everywhere, we can easily turn the
Tom> instances into globals.  This patch implements this idea.

Yao> Is it better to turn them into static locals of _initialize_ser_XXX
Yao> functions?

I tend to avoid static locals.  I don't know that I have a particularly
good reason for it, though.

Yao> The patched code is still quite readable to me.

Thanks.

Tom


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