void SUB_INSERTATCURSOR(qbs*_SUB_INSERTATCURSOR_STRING_TEMPK){
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 "data441.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_67298:;
if ((*__LONG_IDESELECT)||is_error_pending()){
if(qbevent){evnt(28182,21081,"ide_methods.bas");if(r)goto S_67298;}
do{
SUB_DELSELECT();
if(!qbevent)break;evnt(28182,21081,"ide_methods.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTATCURSOR_STRING_A,FUNC_IDEGETLINE(__LONG_IDECY));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21082,"ide_methods.bas");}while(r);
S_67302:;
if ((qbs_cleanup(qbs_tmp_base,-((_SUB_INSERTATCURSOR_STRING_A->len)<(*__LONG_IDECX- 1 ))))||is_error_pending()){
if(qbevent){evnt(28182,21083,"ide_methods.bas");if(r)goto S_67302;}
do{
qbs_set(_SUB_INSERTATCURSOR_STRING_A,qbs_add(_SUB_INSERTATCURSOR_STRING_A,func_space(*__LONG_IDECX- 1 -_SUB_INSERTATCURSOR_STRING_A->len)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21083,"ide_methods.bas");}while(r);
}
do{
qbs_set(_SUB_INSERTATCURSOR_STRING_A,qbs_add(qbs_add(qbs_left(_SUB_INSERTATCURSOR_STRING_A,*__LONG_IDECX- 1 ),_SUB_INSERTATCURSOR_STRING_TEMPK),qbs_right(_SUB_INSERTATCURSOR_STRING_A,_SUB_INSERTATCURSOR_STRING_A->len-*__LONG_IDECX+ 1 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21084,"ide_methods.bas");}while(r);
do{
SUB_IDESETLINE(__LONG_IDECY,FUNC_CONVERTTABS(_SUB_INSERTATCURSOR_STRING_A));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21085,"ide_methods.bas");}while(r);
S_67307:;
if ((*__BYTE_PASTECURSORATEND)||is_error_pending()){
if(qbevent){evnt(28182,21087,"ide_methods.bas");if(r)goto S_67307;}
do{
*__LONG_IDECX=*__LONG_IDECX+_SUB_INSERTATCURSOR_STRING_TEMPK->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28182,21089,"ide_methods.bas");}while(r);
}
do{
*__INTEGER_IDECHANGEMADE= 1 ;
if(!qbevent)break;evnt(28182,21092,"ide_methods.bas");}while(r);
do{
*__BYTE_STARTPAUSEDPENDING= 0 ;
if(!qbevent)break;evnt(28182,21093,"ide_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free441.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;
}
