qbs* FUNC_GETSELECTEDTEXT(int8*_FUNC_GETSELECTEDTEXT_BYTE_MULTILINE){
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 "data439.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;
S_67218:;
if ((*__LONG_IDESELECT)||is_error_pending()){
if(qbevent){evnt(28182,21024,"ide_methods.bas");if(r)goto S_67218;}
do{
*_FUNC_GETSELECTEDTEXT_LONG_SY1=*__LONG_IDESELECTY1;
if(!qbevent)break;evnt(28182,21025,"ide_methods.bas");}while(r);
do{
*_FUNC_GETSELECTEDTEXT_LONG_SY2=*__LONG_IDECY;
if(!qbevent)break;evnt(28182,21026,"ide_methods.bas");}while(r);
S_67221:;
if ((-(*_FUNC_GETSELECTEDTEXT_LONG_SY1>*_FUNC_GETSELECTEDTEXT_LONG_SY2))||is_error_pending()){
if(qbevent){evnt(28182,21027,"ide_methods.bas");if(r)goto S_67221;}
do{
swap_32(&*_FUNC_GETSELECTEDTEXT_LONG_SY1,&*_FUNC_GETSELECTEDTEXT_LONG_SY2);
if(!qbevent)break;evnt(28182,21027,"ide_methods.bas");}while(r);
}
do{
*_FUNC_GETSELECTEDTEXT_LONG_SX1=*__LONG_IDESELECTX1;
if(!qbevent)break;evnt(28182,21028,"ide_methods.bas");}while(r);
do{
*_FUNC_GETSELECTEDTEXT_LONG_SX2=*__LONG_IDECX;
if(!qbevent)break;evnt(28182,21029,"ide_methods.bas");}while(r);
S_67226:;
if ((-(*_FUNC_GETSELECTEDTEXT_LONG_SX1>*_FUNC_GETSELECTEDTEXT_LONG_SX2))||is_error_pending()){
if(qbevent){evnt(28182,21030,"ide_methods.bas");if(r)goto S_67226;}
do{
swap_32(&*_FUNC_GETSELECTEDTEXT_LONG_SX1,&*_FUNC_GETSELECTEDTEXT_LONG_SX2);
if(!qbevent)break;evnt(28182,21030,"ide_methods.bas");}while(r);
}
S_67229:;
fornext_value7718=*_FUNC_GETSELECTEDTEXT_LONG_SY1;
fornext_finalvalue7718=*_FUNC_GETSELECTEDTEXT_LONG_SY2;
fornext_step7718= 1 ;
if (fornext_step7718<0) fornext_step_negative7718=1; else fornext_step_negative7718=0;
if (is_error_pending()) goto fornext_error7718;
goto fornext_entrylabel7718;
while(1){
fornext_value7718=fornext_step7718+(*_FUNC_GETSELECTEDTEXT_LONG_Y);
fornext_entrylabel7718:
*_FUNC_GETSELECTEDTEXT_LONG_Y=fornext_value7718;
if (fornext_step_negative7718){
if (fornext_value7718<fornext_finalvalue7718) break;
}else{
if (fornext_value7718>fornext_finalvalue7718) break;
}
fornext_error7718:;
if(qbevent){evnt(28182,21031,"ide_methods.bas");if(r)goto S_67229;}
S_67230:;
if ((-(*_FUNC_GETSELECTEDTEXT_LONG_Y<=*__LONG_IDEN))||is_error_pending()){
if(qbevent){evnt(28182,21032,"ide_methods.bas");if(r)goto S_67230;}
do{
qbs_set(_FUNC_GETSELECTEDTEXT_STRING_A,FUNC_IDEGETLINE(_FUNC_GETSELECTEDTEXT_LONG_Y));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21033,"ide_methods.bas");}while(r);
S_67232:;
if ((-(*_FUNC_GETSELECTEDTEXT_LONG_SY1==*_FUNC_GETSELECTEDTEXT_LONG_SY2))||is_error_pending()){
if(qbevent){evnt(28182,21034,"ide_methods.bas");if(r)goto S_67232;}
S_67233:;
fornext_value7720=*_FUNC_GETSELECTEDTEXT_LONG_SX1;
fornext_finalvalue7720=*_FUNC_GETSELECTEDTEXT_LONG_SX2- 1 ;
fornext_step7720= 1 ;
if (fornext_step7720<0) fornext_step_negative7720=1; else fornext_step_negative7720=0;
if (is_error_pending()) goto fornext_error7720;
goto fornext_entrylabel7720;
while(1){
fornext_value7720=fornext_step7720+(*_FUNC_GETSELECTEDTEXT_LONG_X);
fornext_entrylabel7720:
*_FUNC_GETSELECTEDTEXT_LONG_X=fornext_value7720;
if (fornext_step_negative7720){
if (fornext_value7720<fornext_finalvalue7720) break;
}else{
if (fornext_value7720>fornext_finalvalue7720) break;
}
fornext_error7720:;
if(qbevent){evnt(28182,21035,"ide_methods.bas");if(r)goto S_67233;}
S_67234:;
if ((qbs_cleanup(qbs_tmp_base,-(*_FUNC_GETSELECTEDTEXT_LONG_X<=_FUNC_GETSELECTEDTEXT_STRING_A->len)))||is_error_pending()){
if(qbevent){evnt(28182,21036,"ide_methods.bas");if(r)goto S_67234;}
do{
qbs_set(_FUNC_GETSELECTEDTEXT_STRING_CLIP,qbs_add(_FUNC_GETSELECTEDTEXT_STRING_CLIP,func_mid(_FUNC_GETSELECTEDTEXT_STRING_A,*_FUNC_GETSELECTEDTEXT_LONG_X, 1 ,0|1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21036,"ide_methods.bas");}while(r);
}else{
do{
qbs_set(_FUNC_GETSELECTEDTEXT_STRING_CLIP,qbs_add(_FUNC_GETSELECTEDTEXT_STRING_CLIP,qbs_new_txt_len(" ",1)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21036,"ide_methods.bas");}while(r);
}
fornext_continue_7719:;
}
fornext_exit_7719:;
}else{
S_67241:;
if ((~(*_FUNC_GETSELECTEDTEXT_BYTE_MULTILINE))||is_error_pending()){
if(qbevent){evnt(28182,21039,"ide_methods.bas");if(r)goto S_67241;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28182,21039,"ide_methods.bas");}while(r);
}
S_67244:;
if (((-(*__LONG_IDECX== 1 ))&(-(*_FUNC_GETSELECTEDTEXT_LONG_Y==*_FUNC_GETSELECTEDTEXT_LONG_SY2))&(-(*__LONG_IDECY>*_FUNC_GETSELECTEDTEXT_LONG_SY1)))||is_error_pending()){
if(qbevent){evnt(28182,21040,"ide_methods.bas");if(r)goto S_67244;}
do{
goto LABEL_NOFINALCOPY;
if(!qbevent)break;evnt(28182,21040,"ide_methods.bas");}while(r);
}
do{
qbs_set(_FUNC_GETSELECTEDTEXT_STRING_CLIP,qbs_add(qbs_add(qbs_add(_FUNC_GETSELECTEDTEXT_STRING_CLIP,_FUNC_GETSELECTEDTEXT_STRING_A),func_chr( 13 )),func_chr( 10 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21041,"ide_methods.bas");}while(r);
LABEL_NOFINALCOPY:;
if(qbevent){evnt(28182,21042,"ide_methods.bas");r=0;}
S_67248:;
if ((qbs_cleanup(qbs_tmp_base,(-(*_FUNC_GETSELECTEDTEXT_LONG_Y==*_FUNC_GETSELECTEDTEXT_LONG_SY2))&(-(*__LONG_IDECX> 1 ))&(-(_FUNC_GETSELECTEDTEXT_STRING_A->len> 0 ))))||is_error_pending()){
if(qbevent){evnt(28182,21043,"ide_methods.bas");if(r)goto S_67248;}
do{
qbs_set(_FUNC_GETSELECTEDTEXT_STRING_CLIP,qbs_left(_FUNC_GETSELECTEDTEXT_STRING_CLIP,_FUNC_GETSELECTEDTEXT_STRING_CLIP->len- 2 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21043,"ide_methods.bas");}while(r);
}
}
}
fornext_continue_7717:;
}
fornext_exit_7717:;
do{
qbs_set(_FUNC_GETSELECTEDTEXT_STRING_GETSELECTEDTEXT,_FUNC_GETSELECTEDTEXT_STRING_CLIP);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21047,"ide_methods.bas");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free439.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_GETSELECTEDTEXT_STRING_GETSELECTEDTEXT);return _FUNC_GETSELECTEDTEXT_STRING_GETSELECTEDTEXT;
}
