I read larbin source code recently. But I have a doubt. I the global.h file define the global class, at the end of this file have a macro like this:
#define setPoll(fds, event) \
global::pollfds[global::posPoll].fd = fds; \
global::pollfds[global::posPoll].events = event; \
global::posPoll++
But in the fetch/fetchPipe.cc file, call this macro like this:
global::setPoll(n, POLLOUT);
The question is why use global:: to call this macro? I think use
setPoll(n, POLLOUT);
is ok. Any body can tell me why?
global::setPoll
looks like a bug to me. It would expand toglobal::global::pollfds[
...global::whatever
.