This is the mail archive of the gcc@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]

Re: Converting tm.h macros to functions


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.


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