< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

RE: [reSIProcate] Where is InfoLog defined at? Is it a macro, a function?


Hi John,

Since you have asked the "where is xxx" type questions several times,
I thought I would offer you a small script I use quite often.  I
call it rgrep (as in recursive grep).  It runs a grep on all source 
files below a given directory (which defaults to the current dir).
So you could run "rgrep InfoLog" at the base of your resip source tree.

I have not tested this on a Mac, but it works under Linux and Cygwin,
so I expect it would work for you also. 

========================================================================
====
#!/bin/bash

verbose=0
prog=`basename $0`

if [ "X$1" = "X-v" ] ; then
    shift
    verbose=1
fi

if [ "X$1" = "X" ] ; then
    echo "Usage: $prog [-v] pattern [dir]"
    echo "  -v (verbose) will print directories being searched"
    exit 1
fi

pattern=$1
if [ $# -eq 1 ] ; then
    findDirs="."
else
    findDirs=$2
    shift
fi

dirs=`find "$findDirs" -name CVS -prune -o \( -type d -print \) | sed -e
's/ /|/g'`

for i in $dirs ; do
    i=`echo $i|sed -e 's/|/\\ /g'`
    [ $verbose -eq 1 ] && echo "Searching Directory $i"
    grep -ins "$pattern" "${i}"/*.h "${i}"/*.hxx "${i}"/*.cpp
"${i}"/*.cxx \
            "${i}"/*.c "${i}"/*.hh "${i}"/*.cc  /dev/null
done

exit 0

========================================================================
====

-----Original Message-----
From: John Draper [mailto:lists@xxxxxxxxxxxxxxxx] 
Sent: Friday, August 19, 2005 4:57 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Where is InfoLog defined at? Is it a macro,a
function? 


Hi,

where is "InfoLog" defined?...    below code came from 
dum/test/BasicRegister.cxx

      virtual void onRemoved(ClientRegistrationHandle)
      {
         InfoLog ( << "Client::onRemoved ");
      }

I also posted a number of other questions, but not ONE person came 
forward to
answer it, so if you still happen to have the earier messages I posted, 
I could
really use some help in getting some answers to the posts I asked about
guidelines.

John