yudiannlu has asked for the wisdom of the Perl Monks concerning the following question:
the C++ function call need to replace to a different call,
the function call as follow:I did some perl script to replace it to the function all as:m_pCTrace->Trace(TRACE_DEVICE, " CBikeRackMgr::OnRecvMsg(): Bike +Sensor 1=%u (not stopped)", pSDiscCtlsMsg->bValue);
but script very straight forward.DEBUGMSG(TRACE_DEVICE, (TEXT(" CBikeRackMgr::OnRecvMsg(): Bike Sensor + 1=%u (not stopped)"\n), pSDiscCtlsMsg->bValue));
I want to scan multiple lines, and back-reference all of parameters. So what is perlish script to scan a C function call, and back reference all of parameters?
Thanks Lu
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: C++ Function substitute
by kyle (Abbot) on Apr 14, 2008 at 17:47 UTC |