Better HN
topnewbestaskshowjobs
Log inSign up

bogolisk

20 karma · joined Nov 5, 2012 (14y ago) · 4 submissions

Submissions

comment 12y ago · link · parent

how about being portable to non-Intel platform?

Really, nothing new to see...

comment 12y ago · link · parent

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);

comment 12y ago · link · parent

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.

4.

Egg: Emacs Got Git(bogolisk.github.com ↗)

3 points · by bogolisk · 14y ago · discuss