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 "data367.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(24235,20569,"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(24235,20569,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_FH=func_freefile();
if(!qbevent)break;evnt(24235,20570,"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(24235,20572,"ide_methods.bas");}while(r);
S_60954:;
if ((*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST)||is_error_pending()){
if(qbevent){evnt(24235,20573,"ide_methods.bas");if(r)goto S_60954;}
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(24235,20574,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEMPTY=(-(func_lof(*_FUNC_FINDHELPTOPIC_LONG_FH)== 0 ));
if(!qbevent)break;evnt(24235,20575,"ide_methods.bas");}while(r);
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(24235,20575,"ide_methods.bas");}while(r);
}
S_60959:;
if (((~(*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST))|*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEMPTY)||is_error_pending()){
if(qbevent){evnt(24235,20577,"ide_methods.bas");if(r)goto S_60959;}
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(24235,20578,"ide_methods.bas");}while(r);
do{
sub_pcopy( 3 , 0 );
if(!qbevent)break;evnt(24235,20579,"ide_methods.bas");}while(r);
do{
qbg_screen(NULL,NULL, 3 , 0 ,NULL,12);
if(!qbevent)break;evnt(24235,20579,"ide_methods.bas");}while(r);
S_60963:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_Q,qbs_new_txt_len("N",1))))||is_error_pending()){
if(qbevent){evnt(24235,20580,"ide_methods.bas");if(r)goto S_60963;}
do{
goto LABEL_NOLINKSFILE;
if(!qbevent)break;evnt(24235,20580,"ide_methods.bas");}while(r);
}
do{
*__LONG_HELP_IGNORECACHE= 1 ;
if(!qbevent)break;evnt(24235,20581,"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(24235,20582,"ide_methods.bas");}while(r);
do{
*__LONG_HELP_IGNORECACHE= 0 ;
if(!qbevent)break;evnt(24235,20583,"ide_methods.bas");}while(r);
S_60969:;
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(24235,20584,"ide_methods.bas");if(r)goto S_60969;}
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS= 1 ;
if(!qbevent)break;evnt(24235,20585,"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(24235,20585,"ide_methods.bas");}while(r);
do{
goto LABEL_NOLINKSFILE;
if(!qbevent)break;evnt(24235,20586,"ide_methods.bas");}while(r);
}
do{
*__LONG_HELP_WW= 78 ;
if(!qbevent)break;evnt(24235,20588,"ide_methods.bas");}while(r);
do{
SUB_WIKIPARSE(_FUNC_FINDHELPTOPIC_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20588,"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(24235,20591,"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(24235,20592,"ide_methods.bas");}while(r);
S_60979:;
while((!(func_eof(*_FUNC_FINDHELPTOPIC_LONG_FH)))||is_error_pending()){
if(qbevent){evnt(24235,20593,"ide_methods.bas");if(r)goto S_60979;}
do{
tmp_fileno=*_FUNC_FINDHELPTOPIC_LONG_FH;
if (is_error_pending()) goto skip6794;
sub_file_line_input_string(tmp_fileno,_FUNC_FINDHELPTOPIC_STRING_L);
if (is_error_pending()) goto skip6794;
skip6794:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20594,"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(24235,20595,"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(24235,20595,"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(24235,20595,"ide_methods.bas");}while(r);
S_60984:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_A2,qbs_ucase(_FUNC_FINDHELPTOPIC_STRING_L1))))||is_error_pending()){
if(qbevent){evnt(24235,20596,"ide_methods.bas");if(r)goto S_60984;}
S_60985:;
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(24235,20597,"ide_methods.bas");if(r)goto S_60985;}
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS=*_FUNC_FINDHELPTOPIC_LONG_LNKS+ 1 ;
if(!qbevent)break;evnt(24235,20598,"ide_methods.bas");}while(r);
S_60987:;
if ((*_FUNC_FINDHELPTOPIC_BYTE_FIRSTONLY)||is_error_pending()){
if(qbevent){evnt(24235,20599,"ide_methods.bas");if(r)goto S_60987;}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_FINDHELPTOPIC,_FUNC_FINDHELPTOPIC_STRING_L2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24235,20599,"ide_methods.bas");}while(r);
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(24235,20599,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24235,20599,"ide_methods.bas");}while(r);
}
S_60992:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_L2,_FUNC_FINDHELPTOPIC_STRING_L1)))||is_error_pending()){
if(qbevent){evnt(24235,20600,"ide_methods.bas");if(r)goto S_60992;}
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(24235,20601,"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(24235,20603,"ide_methods.bas");}while(r);
}
}
}
dl_continue_6793:;
}
dl_exit_6793:;
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(24235,20608,"ide_methods.bas");}while(r);
LABEL_NOLINKSFILE:;
if(qbevent){evnt(24235,20609,"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(24235,20610,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free367.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;
}
