You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/07/20 02:01:15 UTC

API_EXPORT grrrr

Grr, API_EXPORT messes up ctags.

How many people's ctags(1) has the "-I ignorelist" option?  Under Linux I
can work around API_EXPORT with this:

    ctags -I API_EXPORT -I API_EXPORT_NONSTD *.c

BTW I think you only need the dll crap on a prototype of the function
rather than on the function declaration.  For example, note that rprintf() 
is declared API_EXPORT_NONSTD in http_protocol.h, but only API_EXPORT at
its actual definition in http_protocol.c. 

Dean



Re: API_EXPORT grrrr

Posted by Ben Laurie <be...@algroup.co.uk>.
Dean Gaudet wrote:

> Grr, API_EXPORT messes up ctags.
>
> How many people's ctags(1) has the "-I ignorelist" option?  Under
> Linux I
> can work around API_EXPORT with this:
>
>     ctags -I API_EXPORT -I API_EXPORT_NONSTD *.c
>
> BTW I think you only need the dll crap on a prototype of the function
> rather than on the function declaration.

Wrong, I'm afraid.

>  For example, note that rprintf()
> is declared API_EXPORT_NONSTD in http_protocol.h, but only API_EXPORT
> at
> its actual definition in http_protocol.c.

That's because the __stdcall is suppressed by the "..." -
API_EXPORT_NONSTD just documents this automatic behaviour.

Cheers,

Ben.

--
Ben Laurie                Phone: +44 (181) 994 6435  Email:
ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author