Re: Adding the ability to add functions into structures?



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

--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxx

.



Relevant Pages

  • Re: Adding the ability to add functions into structures?
    ... typedef struct _ArrayList ArrayList; ... either an uppercase letter or another underscore ... the broken "Reply" link at the bottom of the article. ...
    (comp.lang.c)
  • Re: Adding the ability to add functions into structures?
    ... I define a forward declaration to the object ... typedef struct _ArrayList ArrayList; ... either an uppercase letter or another underscore ...
    (comp.lang.c)
  • Re: local var naming style
    ... this innocent code spits the warning: ... file.c:4: warning: declaration of 'index' shadows a global ... underscores or an underscore and a capital letter, ...
    (comp.lang.c)
  • Re: naming functions and variables str*
    ... reservation is only when the identifier has external linkage and the prefix ... also bite you -- stick with the underscore. ... also an initial E if followed by an uppercase letter or a decimal digit. ... SIG or SIG_ if followed by an uppercase letter. ...
    (comp.lang.c)
  • Re: marshalling struct to class problem
    ... typedef struct CK_SLOT_INFO { ... unsigned char slotDescription; ... public class CK_SLOT_INFO ... my method declaration ...
    (microsoft.public.dotnet.framework.interop)