[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/libsvn_delta xml_parse.c

From: Branko Čibej <brane_at_xbc.nu>
Date: 2000-10-23 03:49:53 CEST

Greg Stein wrote:
> Consider:
>
> replace_directory(args);
>
> In the above call, is replace_directory a function pointer or the function
> name itself? You have to find the variable or find the function before you
> can resolve that issue.
>
> (*replace_directory)(args);
>
> In the above, I *know* it is a function pointer.

    $ cat ftpr.c
    static void foo (void) {}

    int main (void)
    {
      (*foo)();
      return 0;
    }

    $ gcc -W -Wall -ansi -pedantic -c fptr.c
    $

Shows what you know. :-) (Sorry, couldn't resist.)

-- 
Brane �ibej
  home:   <brane_at_xbc.nu>            http://www.xbc.nu/brane/
   ACM:   <brane_at_acm.org>           http://www.acm.org/
Received on Sat Oct 21 14:36:12 2006

This is an archived mail posted to the Subversion Dev mailing list.