If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > problem in shell script.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-17-04, 04:20
arunprasadlv arunprasadlv is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 41
problem in shell script.

Hi ,

I have got a piece of c++ code.i have to find out the variables which are declared in the program but not used in the code.

I want to write a shell script to find such variables.The script shuld take one input the datatype (int ,float etc).

here goes the sample code.
i have to VAR1 and verify that it is not used in the later part of code



string Order_unit::get_Corder_display_text(int due_date)
{
string display_text="";
int VAR1;// var to be searched.
char due_dt[31];
log_msg(DEBUG,7,"The job id at corder display text is

[%ld]",_job_id);
if(_job_id > 0)
{
Job job;
if( job.getById(_job_id) != _job_id )
{
log_msg(DEBUG, 2, "Unable to get details for

job id %ld\n",_job_id);
}


Thanks in Advance.
Regds,
Arun
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On