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 "data442.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
libqb_check_stack();
if (is_error_pending()) goto exit_subfunc;
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS= 0 ;
if(!qbevent)break;evnt(28182,21100,"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(28182,21100,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_FH=func_freefile();
if(!qbevent)break;evnt(28182,21101,"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(28182,21103,"ide_methods.bas");}while(r);
S_67316:;
if ((*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST)||is_error_pending()){
if(qbevent){evnt(28182,21104,"ide_methods.bas");if(r)goto S_67316;}
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(28182,21105,"ide_methods.bas");}while(r);
do{
*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEMPTY=(-(func_lof(*_FUNC_FINDHELPTOPIC_LONG_FH)== 0 ));
if(!qbevent)break;evnt(28182,21106,"ide_methods.bas");}while(r);
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(28182,21106,"ide_methods.bas");}while(r);
}
S_67321:;
if (((~(*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEXIST))|*_FUNC_FINDHELPTOPIC_LONG_LINKSFILEEMPTY)||is_error_pending()){
if(qbevent){evnt(28182,21108,"ide_methods.bas");if(r)goto S_67321;}
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(28182,21109,"ide_methods.bas");}while(r);
do{
sub_pcopy( 3 , 0 );
if(!qbevent)break;evnt(28182,21110,"ide_methods.bas");}while(r);
do{
qbg_screen(NULL,NULL, 3 , 0 ,NULL,12);
if(!qbevent)break;evnt(28182,21110,"ide_methods.bas");}while(r);
S_67325:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_Q,qbs_new_txt_len("N",1))))||is_error_pending()){
if(qbevent){evnt(28182,21111,"ide_methods.bas");if(r)goto S_67325;}
do{
goto LABEL_NOLINKSFILE;
if(!qbevent)break;evnt(28182,21111,"ide_methods.bas");}while(r);
}
do{
*__LONG_HELP_IGNORECACHE= 1 ;
if(!qbevent)break;evnt(28182,21112,"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(28182,21113,"ide_methods.bas");}while(r);
do{
*__LONG_HELP_IGNORECACHE= 0 ;
if(!qbevent)break;evnt(28182,21114,"ide_methods.bas");}while(r);
S_67331:;
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(28182,21115,"ide_methods.bas");if(r)goto S_67331;}
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS= 1 ;
if(!qbevent)break;evnt(28182,21116,"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(28182,21116,"ide_methods.bas");}while(r);
do{
goto LABEL_NOLINKSFILE;
if(!qbevent)break;evnt(28182,21117,"ide_methods.bas");}while(r);
}
do{
*__LONG_HELP_WW=*__LONG_IDEWX- 2 ;
if(!qbevent)break;evnt(28182,21119,"ide_methods.bas");}while(r);
do{
SUB_WIKIPARSE(_FUNC_FINDHELPTOPIC_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21119,"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(28182,21122,"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(28182,21123,"ide_methods.bas");}while(r);
S_67341:;
while((!(func_eof(*_FUNC_FINDHELPTOPIC_LONG_FH)))||is_error_pending()){
if(qbevent){evnt(28182,21124,"ide_methods.bas");if(r)goto S_67341;}
do{
tmp_fileno=*_FUNC_FINDHELPTOPIC_LONG_FH;
if (is_error_pending()) goto skip7736;
sub_file_line_input_string(tmp_fileno,_FUNC_FINDHELPTOPIC_STRING_L);
if (is_error_pending()) goto skip7736;
skip7736:
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21125,"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(28182,21126,"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(28182,21126,"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(28182,21126,"ide_methods.bas");}while(r);
S_67346:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_A2,qbs_ucase(_FUNC_FINDHELPTOPIC_STRING_L1))))||is_error_pending()){
if(qbevent){evnt(28182,21127,"ide_methods.bas");if(r)goto S_67346;}
S_67347:;
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(28182,21128,"ide_methods.bas");if(r)goto S_67347;}
do{
*_FUNC_FINDHELPTOPIC_LONG_LNKS=*_FUNC_FINDHELPTOPIC_LONG_LNKS+ 1 ;
if(!qbevent)break;evnt(28182,21129,"ide_methods.bas");}while(r);
S_67349:;
if ((*_FUNC_FINDHELPTOPIC_BYTE_FIRSTONLY)||is_error_pending()){
if(qbevent){evnt(28182,21130,"ide_methods.bas");if(r)goto S_67349;}
do{
qbs_set(_FUNC_FINDHELPTOPIC_STRING_FINDHELPTOPIC,_FUNC_FINDHELPTOPIC_STRING_L2);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21130,"ide_methods.bas");}while(r);
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(28182,21130,"ide_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28182,21130,"ide_methods.bas");}while(r);
}
S_67354:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_FINDHELPTOPIC_STRING_L2,_FUNC_FINDHELPTOPIC_STRING_L1)))||is_error_pending()){
if(qbevent){evnt(28182,21131,"ide_methods.bas");if(r)goto S_67354;}
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(28182,21132,"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(28182,21134,"ide_methods.bas");}while(r);
}
}
}
dl_continue_7735:;
}
dl_exit_7735:;
do{
sub_close(*_FUNC_FINDHELPTOPIC_LONG_FH,1);
if(!qbevent)break;evnt(28182,21139,"ide_methods.bas");}while(r);
LABEL_NOLINKSFILE:;
if(qbevent){evnt(28182,21140,"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(28182,21141,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free442.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;
}
