Re: Adding the ability to add functions into structures?
- From: jacob navia <jacob@xxxxxxxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 15:51:04 +0100
Eric Sosman a écrit :
jacob navia wrote:
[...] For instance:
1) I define a forward declaration to the object typedef struct _ArrayList ArrayList;
Have you forgotten that the identifier `_ArrayList' is off-limits?
"All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use." -- ISO/IEC 9899:1999 section 7.1.3 paragraph 1
Yes, you are right. Just put typedef struct tagArrayList
Sometimes I use _ because is shorter .
- Follow-Ups:
- Re: Adding the ability to add functions into structures?
- From: Keith Thompson
- Re: Adding the ability to add functions into structures?
- References:
- Adding the ability to add functions into structures?
- From: Albert
- Re: Adding the ability to add functions into structures?
- From: jacob navia
- Re: Adding the ability to add functions into structures?
- From: Eric Sosman
- Adding the ability to add functions into structures?
- Prev by Date: Re: Adding the ability to add functions into structures?
- Next by Date: Passing String to Function
- Previous by thread: Re: Adding the ability to add functions into structures?
- Next by thread: Re: Adding the ability to add functions into structures?
- Index(es):
Relevant Pages
|