qbs* FUNC_LINEINPUT3(){
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 "data52.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_LINEINPUT3_LONG_L=__STRING_LINEINPUT3BUFFER->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23500);}while(r);
S_31625:;
if ((-(*__LONG_LINEINPUT3INDEX>*_FUNC_LINEINPUT3_LONG_L))||is_error_pending()){
if(qbevent){evnt(23501);if(r)goto S_31625;}
do{
qbs_set(_FUNC_LINEINPUT3_STRING_LINEINPUT3,func_chr( 13 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23501);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(23501);}while(r);
}
do{
*_FUNC_LINEINPUT3_LONG_C13=func_instr(*__LONG_LINEINPUT3INDEX,__STRING_LINEINPUT3BUFFER,func_chr( 13 ),0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23502);}while(r);
do{
*_FUNC_LINEINPUT3_LONG_C10=func_instr(*__LONG_LINEINPUT3INDEX,__STRING_LINEINPUT3BUFFER,func_chr( 10 ),0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23503);}while(r);
S_31631:;
if (((-(*_FUNC_LINEINPUT3_LONG_C10== 0 ))&(-(*_FUNC_LINEINPUT3_LONG_C13== 0 )))||is_error_pending()){
if(qbevent){evnt(23504);if(r)goto S_31631;}
do{
qbs_set(_FUNC_LINEINPUT3_STRING_LINEINPUT3,func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX,*_FUNC_LINEINPUT3_LONG_L-*__LONG_LINEINPUT3INDEX+ 1 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23505);}while(r);
do{
*__LONG_LINEINPUT3INDEX=*_FUNC_LINEINPUT3_LONG_L+ 1 ;
if(!qbevent)break;evnt(23506);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(23507);}while(r);
}
S_31636:;
if ((-(*_FUNC_LINEINPUT3_LONG_C10== 0 ))||is_error_pending()){
if(qbevent){evnt(23509);if(r)goto S_31636;}
do{
*_FUNC_LINEINPUT3_LONG_C10= 2147483647 ;
if(!qbevent)break;evnt(23509);}while(r);
}
S_31639:;
if ((-(*_FUNC_LINEINPUT3_LONG_C13== 0 ))||is_error_pending()){
if(qbevent){evnt(23510);if(r)goto S_31639;}
do{
*_FUNC_LINEINPUT3_LONG_C13= 2147483647 ;
if(!qbevent)break;evnt(23510);}while(r);
}
S_31642:;
if ((-(*_FUNC_LINEINPUT3_LONG_C10<*_FUNC_LINEINPUT3_LONG_C13))||is_error_pending()){
if(qbevent){evnt(23511);if(r)goto S_31642;}
do{
qbs_set(_FUNC_LINEINPUT3_STRING_LINEINPUT3,func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX,*_FUNC_LINEINPUT3_LONG_C10-*__LONG_LINEINPUT3INDEX,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23513);}while(r);
do{
*__LONG_LINEINPUT3INDEX=*_FUNC_LINEINPUT3_LONG_C10+ 1 ;
if(!qbevent)break;evnt(23514);}while(r);
S_31645:;
if ((-(*__LONG_LINEINPUT3INDEX<=*_FUNC_LINEINPUT3_LONG_L))||is_error_pending()){
if(qbevent){evnt(23515);if(r)goto S_31645;}
S_31646:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX, 1 ,0|1))== 13 )))||is_error_pending()){
if(qbevent){evnt(23516);if(r)goto S_31646;}
do{
*__LONG_LINEINPUT3INDEX=*__LONG_LINEINPUT3INDEX+ 1 ;
if(!qbevent)break;evnt(23516);}while(r);
}
}
}else{
do{
qbs_set(_FUNC_LINEINPUT3_STRING_LINEINPUT3,func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX,*_FUNC_LINEINPUT3_LONG_C13-*__LONG_LINEINPUT3INDEX,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(23520);}while(r);
do{
*__LONG_LINEINPUT3INDEX=*_FUNC_LINEINPUT3_LONG_C13+ 1 ;
if(!qbevent)break;evnt(23521);}while(r);
S_31653:;
if ((-(*__LONG_LINEINPUT3INDEX<=*_FUNC_LINEINPUT3_LONG_L))||is_error_pending()){
if(qbevent){evnt(23522);if(r)goto S_31653;}
S_31654:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX, 1 ,0|1))== 10 )))||is_error_pending()){
if(qbevent){evnt(23523);if(r)goto S_31654;}
do{
*__LONG_LINEINPUT3INDEX=*__LONG_LINEINPUT3INDEX+ 1 ;
if(!qbevent)break;evnt(23523);}while(r);
}
}
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free52.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_LINEINPUT3_STRING_LINEINPUT3);return _FUNC_LINEINPUT3_STRING_LINEINPUT3;
}
