MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Location of type definitions in server source




Hello :)  C question ...

I'd like to refer to the structures "shandle" and "nhandle" in my server
extensions, but these structures are defined in the source files server.c
and net_multi.c, rather than in header files.  Thus they are invisible in
extensions.c.  

Is there a good reason for placing these definitions in source files 
rather than headers, or is it merely historical?

Colin

P.S. (Let me forestall suggestions of using the structures "server_handle" 
and "network_handle" to get at shandle and nhandle: if I want the "player"
member of an shandle, it's no good doing (server_handle.ptr)->player.  The
compiler doesn't know that what (server_handle.ptr) is pointing to has a
"player" member.)




Home | Subject Index | Thread Index