A portable high-resolution timestamp in C++ 12 years ago
how about being portable to non-Intel platform?
Really, nothing new to see...
HN user
how about being portable to non-Intel platform?
Really, nothing new to see...
blah.c:
void foo(item *x)
{
x->blah(1, 2, 3);
x->blah (4, 5,
6);
blah (7, 5, 1);
foo (4, 5, 6);
x->blah (4,
5, 6);
}
void foo2(item y, item *x)
{
y.blah(1, 2, 3);
y.blah (4, 5,
6);
blah (7, 5, 1);
foo (4, 5, 6);
x->blah (4,
5, 6);
}
search in blah.c for a call to blah() with 5 as 2nd argument from any structure or pointer. cgrep --code --semantic '_1 . OR -> blah ( _2 , 5, _3 )' blah.c
output: blah.c:6: x->blah (4, 5,
blah.c:7: 6);
blah.c:10: x->blah (4,
blah.c:11: 5, 6);
blah.c:18: y.blah (4, 5,
blah.c:19: 6);
blah.c:22: x->blah (4,
blah.c:23: 5, 6);If you think that fetchmail is the best program ever written and DK's knowledge and intellect is at the same level as ESR then you deserve this book.