qbs* FUNC_FINDHELPTOPIC(qbs*_FUNC_FINDHELPTOPIC_STRING_TOPIC,int32*_FUNC_FINDHELPTOPIC_LONG_LNKS,int8*_FUNC_FINDHELPTOPIC_BYTE_FIRSTONLY){
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 "data378.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;
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS= 0 ;
if(!qbevent)break;evnt(25769,20579,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_LNKS,func_chr( 0 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20579,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_FH=func_freefile();
if(!qbevent)break;evnt(25769,20580,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST=func__fileexists(qbs_new_txt_len("internal\\help\\links.bin",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20582,"ide_methods.bas");}while(r);
S_62633:;
if ((*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST)||is_error_pending()){
if(qbevent){evnt(25769,20583,"ide_methods.bas");if(r)goto S_62633;}
do{
sub_open(qbs_new_txt_len("internal\\help\\links.bin",23), 3 ,NULL,NULL,*_FUNC_FINDHELPTOPIC_LONG_FH,NULL,0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20584,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEMPTY=(-(func_lof(*_FUNC_FINDHELPTOPIC_LONG_FH)== 0 ));
if(!qbevent)break;evnt(25769,20585,"ide_methods.bas");}while(r);
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(25769,20585,"ide_methods.bas");}while(r);
}
S_62638:;
if (((~(*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST))|*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEMPTY)||is_error_pending()){
if(qbevent){evnt(25769,20587,"ide_methods.bas");if(r)goto S_62638;}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_Q,FUNC_IDEYESNOBOX(qbs_new_txt_len("Help problem",12),qbs_new_txt_len("The help system is not yet initialized,\\ndo it now? (Make sure you're online.)",78)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20588,"ide_methods.bas");}while(r);
do{
sub_pcopy( 3 , 0 );
if(!qbevent)break;evnt(25769,20589,"ide_methods.bas");}while(r);
do{
qbg_screen(NULL,NULL, 3 , 0 ,NULL,12);
if(!qbevent)break;evnt(25769,20589,"ide_methods.bas");}while(r);
S_62642:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_Q,qbs_new_txt_len("N",1))))||is_error_pending()){
if(qbevent){evnt(25769,20590,"ide_methods.bas");if(r)goto S_62642;}
do{
goto LABEL_NOLINKSFILE;
if(!qbevent)break;evnt(25769,20590,"ide_methods.bas");}while(r);
}
do{
*__LONG_HELP_IGNORECACHE= 1 ;
if(!qbevent)break;evnt(25769,20591,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_A,FUNC_WIKI(qbs_new_txt_len("Keyword Reference - Alphabetical",32)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20592,"ide_methods.bas");}while(r);
do{
*__LONG_HELP_IGNORECACHE= 0 ;
if(!qbevent)break;evnt(25769,20593,"ide_methods.bas");}while(r);
S_62648:;
if ((qbs_cleanup(qbs_tmp_base,func_instr(NULL,_FUNC_FINDHELPTOPIC_STRING_A,qbs_new_txt_len("{{PageInternalError}}",21),0)))||is_error_pending()){
if(qbevent){evnt(25769,20594,"ide_methods.bas");if(r)goto S_62648;}
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS= 1 ;
if(!qbevent)break;evnt(25769,20595,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_LNKS,qbs_add(qbs_add(_FUNC_FINDHELPTOPIC_STRING_LNKS,qbs_new_txt_len("Initialize",10)),func_chr( 0 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20595,"ide_methods.bas");}while(r);
do{
goto LABEL_NOLINKSFILE;
if(!qbevent)break;evnt(25769,20596,"ide_methods.bas");}while(r);
}
do{
*__LONG_HELP_WW= 78 ;
if(!qbevent)break;evnt(25769,20598,"ide_methods.bas");}while(r);
do{
SUB_WIKIPARSE(_FUNC_FINDHELPTOPIC_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20598,"ide_methods.bas");}while(r);
}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_A2,qbs_ucase(_FUNC_FINDHELPTOPIC_STRING_TOPIC));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20601,"ide_methods.bas");}while(r);
do{
sub_open(qbs_new_txt_len("internal\\help\\links.bin",23), 3 ,NULL,NULL,*_FUNC_FINDHELPTOPIC_LONG_FH,NULL,0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20602,"ide_methods.bas");}while(r);
S_62658:;
while((!(func_eof(*_FUNC_FINDHELPTOPIC_LONG_FH)))||is_error_pending()){
if(qbevent){evnt(25769,20603,"ide_methods.bas");if(r)goto S_62658;}
do{
tmp_fileno=*_FUNC_FINDHELPTOPIC_LONG_FH;
if (is_error_pending()) goto skip7062;
sub_file_line_input_string(tmp_fileno,_FUNC_FINDHELPTOPIC_STRING_L);
if (is_error_pending()) goto skip7062;
skip7062:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20604,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_C=func_instr(NULL,_FUNC_FINDHELPTOPIC_STRING_L,qbs_new_txt_len(",",1),0);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20605,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_L1,qbs_left(_FUNC_FINDHELPTOPIC_STRING_L,*_FUNC_FINDHELPTOPIC_LONG_C- 1 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20605,"ide_methods.bas");}while(r);
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_L2,qbs_right(_FUNC_FINDHELPTOPIC_STRING_L,_FUNC_FINDHELPTOPIC_STRING_L->len-*_FUNC_FINDHELPTOPIC_LONG_C));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20605,"ide_methods.bas");}while(r);
S_62663:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_A2,qbs_ucase(_FUNC_FINDHELPTOPIC_STRING_L1))))||is_error_pending()){
if(qbevent){evnt(25769,20606,"ide_methods.bas");if(r)goto S_62663;}
S_62664:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDHELPTOPIC_STRING_LNKS,qbs_add(qbs_add(func_chr( 0 ),_FUNC_FINDHELPTOPIC_STRING_L2),func_chr( 0 )),0)== 0 )))||is_error_pending()){
if(qbevent){evnt(25769,20607,"ide_methods.bas");if(r)goto S_62664;}
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS=*_FUNC_FINDHELPTOPIC_LONG_LNKS+ 1 ;
if(!qbevent)break;evnt(25769,20608,"ide_methods.bas");}while(r);
S_62666:;
if ((*_FUNC_FINDHELPTOPIC_BYTE_FIRSTONLY)||is_error_pending()){
if(qbevent){evnt(25769,20609,"ide_methods.bas");if(r)goto S_62666;}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_FINDHELPTOPIC,_FUNC_FINDHELPTOPIC_STRING_L2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20609,"ide_methods.bas");}while(r);
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(25769,20609,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25769,20609,"ide_methods.bas");}while(r);
}
S_62671:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_L2,_FUNC_FINDHELPTOPIC_STRING_L1)))||is_error_pending()){
if(qbevent){evnt(25769,20610,"ide_methods.bas");if(r)goto S_62671;}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_LNKS,qbs_add(qbs_add(func_chr( 0 ),_FUNC_FINDHELPTOPIC_STRING_L2),_FUNC_FINDHELPTOPIC_STRING_LNKS));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20611,"ide_methods.bas");}while(r);
}else{
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_LNKS,qbs_add(qbs_add(_FUNC_FINDHELPTOPIC_STRING_LNKS,_FUNC_FINDHELPTOPIC_STRING_L2),func_chr( 0 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20613,"ide_methods.bas");}while(r);
}
}
}
dl_continue_7061:;
}
dl_exit_7061:;
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(25769,20618,"ide_methods.bas");}while(r);
LABEL_NOLINKSFILE:;
if(qbevent){evnt(25769,20619,"ide_methods.bas");r=0;}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_FINDHELPTOPIC,_FUNC_FINDHELPTOPIC_STRING_LNKS);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25769,20620,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free378.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;
qbs_maketmp(_FUNC_FINDHELPTOPIC_STRING_FINDHELPTOPIC);return _FUNC_FINDHELPTOPIC_STRING_FINDHELPTOPIC;
}
