test
This commit is contained in:
@@ -26,7 +26,7 @@ struct komodo_event *komodo_eventadd(struct komodo_state *sp,int32_t height,char
|
|||||||
strcpy(ep->symbol,symbol);
|
strcpy(ep->symbol,symbol);
|
||||||
if ( datalen != 0 )
|
if ( datalen != 0 )
|
||||||
memcpy(ep->space,data,datalen);
|
memcpy(ep->space,data,datalen);
|
||||||
sp->Komodo_events = (struct komodo_event **)realloc(sp->Komodo_events,(1 + sp->Komodo_numevents) * sizeof(*Komodo_events));
|
sp->Komodo_events = (struct komodo_event **)realloc(sp->Komodo_events,(1 + sp->Komodo_numevents) * sizeof(*sp->Komodo_events));
|
||||||
sp->Komodo_events[sp->Komodo_numevents++] = ep;
|
sp->Komodo_events[sp->Komodo_numevents++] = ep;
|
||||||
return(ep);
|
return(ep);
|
||||||
}
|
}
|
||||||
@@ -149,7 +149,7 @@ void komodo_eventadd_kmdheight(struct komodo_state *sp,char *symbol,int32_t heig
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
kmdheight = -kmdheight;
|
kmdheight = -kmdheight;
|
||||||
komodo_eventadd(so,height,symbol,KOMODO_EVENT_REWIND,(uint8_t *)&height,sizeof(height));
|
komodo_eventadd(sp,height,symbol,KOMODO_EVENT_REWIND,(uint8_t *)&height,sizeof(height));
|
||||||
if ( sp != 0 )
|
if ( sp != 0 )
|
||||||
komodo_event_rewind(sp,symbol,height);
|
komodo_event_rewind(sp,symbol,height);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -575,7 +575,7 @@ void komodo_gateway_iteration()
|
|||||||
komodo_nameset(symbol,dest,base);
|
komodo_nameset(symbol,dest,base);
|
||||||
if ( (fp= fopen(fname,"rb")) != 0 )
|
if ( (fp= fopen(fname,"rb")) != 0 )
|
||||||
{
|
{
|
||||||
fseek(fp,lastpos,SEEK_SET);
|
fseek(fp,lastpos[baseid],SEEK_SET);
|
||||||
if ( ftell(fp) > lastpos[baseid] )
|
if ( ftell(fp) > lastpos[baseid] )
|
||||||
{
|
{
|
||||||
while ( komodo_parsestatefile(sp,fp,symbol,dest) >= 0 )
|
while ( komodo_parsestatefile(sp,fp,symbol,dest) >= 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user