void SUB_ADDTOHISTORY(qbs*_SUB_ADDTOHISTORY_STRING_WHICH,qbs*_SUB_ADDTOHISTORY_STRING_ENTRY){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data355.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
S_61288:;
if(qbevent){evnt(25769,19372,"ide_methods.bas");if(r)goto S_61288;}
S_61289:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_ADDTOHISTORY_STRING_WHICH,qbs_new_txt_len("RECENT",6))))||is_error_pending()){
if(qbevent){evnt(25769,19373,"ide_methods.bas");if(r)goto S_61289;}
do{
qbs_set(_SUB_ADDTOHISTORY_STRING_E,FUNC_REMOVEDOUBLESLASHES(_SUB_ADDTOHISTORY_STRING_ENTRY));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19374,"ide_methods.bas");}while(r);
do{
*_SUB_ADDTOHISTORY_INTEGER_BH=FUNC_FILETOBUF(__STRING_RECENTFILE);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19375,"ide_methods.bas");}while(r);
do{
*_SUB_ADDTOHISTORY_INTEGER_MX=*__LONG_IDEMAXRECENT;
if(!qbevent)break;evnt(25769,19376,"ide_methods.bas");}while(r);
do{
return_point[next_return_point++]=193;
if (next_return_point>=return_points) more_return_points();
goto LABEL_ATHPROCESS;
RETURN_193:;
if(!qbevent)break;evnt(25769,19376,"ide_methods.bas");}while(r);
do{
SUB_BUFTOFILE(_SUB_ADDTOHISTORY_INTEGER_BH,__STRING_RECENTFILE);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19377,"ide_methods.bas");}while(r);
sc_ec_428_end:;
goto sc_6924_end;
}
S_61295:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_SUB_ADDTOHISTORY_STRING_WHICH,qbs_new_txt_len("SEARCH",6))))||is_error_pending()){
if(qbevent){evnt(25769,19378,"ide_methods.bas");if(r)goto S_61295;}
do{
qbs_set(_SUB_ADDTOHISTORY_STRING_E,_SUB_ADDTOHISTORY_STRING_ENTRY);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19379,"ide_methods.bas");}while(r);
do{
*_SUB_ADDTOHISTORY_INTEGER_BH=FUNC_FILETOBUF(__STRING_SEARCHEDFILE);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19380,"ide_methods.bas");}while(r);
do{
*_SUB_ADDTOHISTORY_INTEGER_MX=*__LONG_IDEMAXSEARCH;
if(!qbevent)break;evnt(25769,19381,"ide_methods.bas");}while(r);
do{
return_point[next_return_point++]=194;
if (next_return_point>=return_points) more_return_points();
goto LABEL_ATHPROCESS;
RETURN_194:;
if(!qbevent)break;evnt(25769,19381,"ide_methods.bas");}while(r);
do{
SUB_BUFTOFILE(_SUB_ADDTOHISTORY_INTEGER_BH,__STRING_SEARCHEDFILE);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19382,"ide_methods.bas");}while(r);
sc_ec_429_end:;
goto sc_6924_end;
}
sc_6924_end:;
do{
SUB_DISPOSEBUF(_SUB_ADDTOHISTORY_INTEGER_BH);
if(!qbevent)break;evnt(25769,19384,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25769,19385,"ide_methods.bas");}while(r);
LABEL_ATHPROCESS:;
if(qbevent){evnt(25769,19387,"ide_methods.bas");r=0;}
do{
*_SUB_ADDTOHISTORY_INTEGER_LC= 0 ;
if(!qbevent)break;evnt(25769,19388,"ide_methods.bas");}while(r);
do{
qbs_set(_SUB_ADDTOHISTORY_STRING_UE,qbs_ucase(_SUB_ADDTOHISTORY_STRING_E));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19388,"ide_methods.bas");}while(r);
S_61306:;
while((~(FUNC_ENDOFBUF(_SUB_ADDTOHISTORY_INTEGER_BH)))||is_error_pending()){
if(qbevent){evnt(25769,19389,"ide_methods.bas");if(r)goto S_61306;}
do{
*_SUB_ADDTOHISTORY_LONG_BP=FUNC_GETBUFPOS(_SUB_ADDTOHISTORY_INTEGER_BH);
if(!qbevent)break;evnt(25769,19390,"ide_methods.bas");}while(r);
do{
qbs_set(_SUB_ADDTOHISTORY_STRING_BE,FUNC_READBUFLINE(_SUB_ADDTOHISTORY_INTEGER_BH));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19390,"ide_methods.bas");}while(r);
do{
*_SUB_ADDTOHISTORY_INTEGER_LC=*_SUB_ADDTOHISTORY_INTEGER_LC+ 1 ;
if(!qbevent)break;evnt(25769,19390,"ide_methods.bas");}while(r);
S_61310:;
if ((qbs_cleanup(qbs_tmp_base,(qbs_equal(qbs_ucase(_SUB_ADDTOHISTORY_STRING_BE),_SUB_ADDTOHISTORY_STRING_UE))|(-(*_SUB_ADDTOHISTORY_INTEGER_LC>=*_SUB_ADDTOHISTORY_INTEGER_MX))))||is_error_pending()){
if(qbevent){evnt(25769,19391,"ide_methods.bas");if(r)goto S_61310;}
do{
*_SUB_ADDTOHISTORY_LONG_NUL=FUNC_SEEKBUF(_SUB_ADDTOHISTORY_INTEGER_BH,_SUB_ADDTOHISTORY_LONG_BP,&(pass6926= -21ll ));
if(!qbevent)break;evnt(25769,19392,"ide_methods.bas");}while(r);
do{
SUB_DELETEBUFLINE(_SUB_ADDTOHISTORY_INTEGER_BH);
if(!qbevent)break;evnt(25769,19393,"ide_methods.bas");}while(r);
}
ww_continue_6925:;
}
ww_exit_6925:;
do{
*_SUB_ADDTOHISTORY_LONG_NUL=FUNC_SEEKBUF(_SUB_ADDTOHISTORY_INTEGER_BH,&(pass6927= 0 ),&(pass6928= -22ll ));
if(!qbevent)break;evnt(25769,19398,"ide_methods.bas");}while(r);
do{
SUB_WRITEBUFLINE(_SUB_ADDTOHISTORY_INTEGER_BH,_SUB_ADDTOHISTORY_STRING_E);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,19399,"ide_methods.bas");}while(r);
do{
#include "ret355.txt"
if(!qbevent)break;evnt(25769,19400,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free355.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
}
