This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Converting tm.h macros to functions
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Converting tm.h macros to functions
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 18 Jun 2001 19:43:38 +0100
- Cc: Mark Mitchell <mark at codesourcery dot com>,"gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
Joseph S. Myers wrote:-
> In this scheme (multiple logical structures), would there then be
> something like:
>
> target.h
> ========
>
> typedef struct
> {
> void (*asm_output_int) PARAMS ((FILE *, int));
> /* ... */
> } an_asm_output;
>
> /* ... */
>
> typedef struct
> {
> an_asm_output asm_output;
> } a_target;
>
> extern a_target target;
I was thinking of keeping the structures separate, to avoid the tedium
of struct1.struct2.member. I don't think lumping them together buys
you much.
Neil.