Update lxt_write.c and lxt2_write.c to latest files from GTKWave.
These files were updated based on a patch I sent Tony.
(cherry picked from commit c8d160a007)
This commit is contained in:
parent
d3f60a2a98
commit
bda4a30847
|
|
@ -728,7 +728,7 @@ if((lt)&&(lt->numfacs))
|
|||
lt->numfacs = facs_encountered; /* don't process alias value changes ever */
|
||||
}
|
||||
|
||||
if(aliascache) free(aliascache);
|
||||
free(aliascache);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2150,8 +2150,8 @@ if(lt)
|
|||
|
||||
while(s)
|
||||
{
|
||||
if(s->name) { free(s->name); }
|
||||
if(s->value) { free(s->value); }
|
||||
free(s->name);
|
||||
free(s->value);
|
||||
s2=s->symchain;
|
||||
free(s);
|
||||
s=s2;
|
||||
|
|
@ -2181,8 +2181,11 @@ if(lt)
|
|||
}
|
||||
|
||||
/*
|
||||
* $Id: lxt2_write.c,v 1.2 2008/12/20 05:08:26 gtkwave Exp $
|
||||
* $Id: lxt2_write.c,v 1.3 2010/05/03 20:11:03 gtkwave Exp $
|
||||
* $Log: lxt2_write.c,v $
|
||||
* Revision 1.3 2010/05/03 20:11:03 gtkwave
|
||||
* cppcheck warning fixes
|
||||
*
|
||||
* Revision 1.2 2008/12/20 05:08:26 gtkwave
|
||||
* -Wshadow warning cleanups
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1102,11 +1102,9 @@ if(lt)
|
|||
lt_emitfacs(lt);
|
||||
if(lt->dict) lt_finalize_dictionary(lt);
|
||||
|
||||
if(lt->timebuff)
|
||||
{
|
||||
free(lt->timebuff);
|
||||
lt->timebuff=NULL;
|
||||
}
|
||||
free(lt->timebuff);
|
||||
lt->timebuff=NULL;
|
||||
|
||||
if(lt->timehead)
|
||||
{
|
||||
struct lt_timetrail *t=lt->timehead;
|
||||
|
|
@ -1408,10 +1406,7 @@ if(lt)
|
|||
lt->mintime = lt->maxtime = timeval;
|
||||
}
|
||||
|
||||
if(lt->timebuff)
|
||||
{
|
||||
free(lt->timebuff);
|
||||
}
|
||||
free(lt->timebuff);
|
||||
lt->timebuff = trl;
|
||||
lt->timeval = timeval;
|
||||
rc=1;
|
||||
|
|
@ -2814,8 +2809,11 @@ if((lt)&&(lt->dumpoff_active))
|
|||
}
|
||||
|
||||
/*
|
||||
* $Id: lxt_write.c,v 1.4 2009/03/29 00:50:00 gtkwave Exp $
|
||||
* $Id: lxt_write.c,v 1.5 2010/05/03 20:11:03 gtkwave Exp $
|
||||
* $Log: lxt_write.c,v $
|
||||
* Revision 1.5 2010/05/03 20:11:03 gtkwave
|
||||
* cppcheck warning fixes
|
||||
*
|
||||
* Revision 1.4 2009/03/29 00:50:00 gtkwave
|
||||
* update lt_close() to zero out written section offset/size.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue