Mail Archives: cygwin/1996/11/25/08:21:43
To make things clear, let me show what happened to my file after the
macro expasion:
class wormHole {
int sock;
struct hostent *targetAddr;
struct sockaddr_in target;
public:
wormHole (int kind = streamSocket);
callTarget (char *target_name, int port);
cygwin32_socket (void) { return sock; }
};
Note that cygwin32_socket replaced the original socket function.
Now take a look a the constructor:
wormHole::wormHole (int kind = streamSocket) {
(*) sock = cygwin32_socket (2 , kind, 0);
}
Get it? The compiler thinks that this (*) call of cygwin32_socket is
from the wormHole class, not the original from the sockets library!
Anyway, if I #undef'ed socket I would loose this expansion.
[]s
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -