lkml.org 
[lkml]   [1997]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: 2.1.22 unneeded global symbols
    Date
    > \begin{C-Legalese}
    > If you pass the address of object to another compilation unit
    > (i.e. source file), this object does not need to be extern; it
    > can be static or allocated (but NOT automatic).
    > \end{C-legalese}

    Ah but the following isnt going to work


    foo.c

    static void flobble(int x)
    {
    printf("Kersplat\n");
    }



    bar.c

    extern void flobble(int);

    int main()
    {
    register_kersplat_handler(flobble);
    }




    \
     
     \ /
      Last update: 2005-03-22 13:38    [W:2.611 / U:0.760 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site