Thursday, March 28, 2002

I was thinking how to handle forward declarations of types.

There seems to be a macro DECL_EXTERNAL mentioned in the file :
http://gcc.gnu.org/ml/gcc-patches/2001-01/msg02251.html
/* Language-specific decl information. */
#define DECL_LANG_SPECIFIC(NODE) (DECL_CHECK (NODE)->decl.lang_specific)
In a VAR_DECL, nonzero means external reference:
do not allocate storage, and refer to a definition elsewhere.
In a FUNCTION_DECL, zero means that the function is declared auto
inside a function body.
These are externals.

Here is an example of the creation of a forward, it has to be looked into.
decl_specs = tree_cons (NULL_TREE, type, sc_spec); -- the declaration specifiers
decl = start_decl (synth_id_with_class_suffix (name, implementation_context), decl_specs, 1, NULL_TREE, NULL_TREE);
DECL_CONTEXT (decl) = NULL_TREE;
finish_decl (decl, expr, NULL_TREE);
I think that a forward is just a declaration, but without too much information.

mike

1 Comments:

At 7:26 AM, Blogger LorinSandersx said...

Two men, with their faces covered, entered the pharmacy near closing time and approached the attendant. The suspects made gestures which could indicate the presence of a weapon, but no weapon was seen. One other employee was present in the store at the time, and no one was injured during the incident.

The cops Coach Outlet Clearance Sale came Best Yeezys and dragged everyone out."He Nike Air Force 1 Cheap Outlet had black hair and a black trenchcoat."California shooting: Country fans inside 'were Las Vegas massacre Jordan Shoes For Sale survivors'"I Coach Outlet Online fell a couple Ray Ban Outlet of times Cheap Michael Kors Handbags and a guy came behind me and said 'come on let's go'. I had a bar stall hit my head as people were trying to break windows."We ran to the top of the hill and I heard gunfire again."The gunman had a semi automatic pistol. He changed rounds in six seconds, so MK Outlet Online pretty fast..

 

Post a Comment

<< Home