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 "data87.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_LINEINPUT3_LONG_L=__STRING_LINEINPUT3BUFFER->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(27445);}while(r);
S_35850:;
if ((-(*__LONG_LINEINPUT3INDEX>*_FUNC_LINEINPUT3_LONG_L))||is_error_pending()){
if(qbevent){evnt(27446);if(r)goto S_35850;}
do{
qbs_set(_FUNC_LINEINPUT3_STRING_LINEINPUT3,func_chr( 13 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(27446);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(27446);}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(27447);}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(27448);}while(r);
S_35856:;
if (((-(*_FUNC_LINEINPUT3_LONG_C10== 0 ))&(-(*_FUNC_LINEINPUT3_LONG_C13== 0 )))||is_error_pending()){
if(qbevent){evnt(27449);if(r)goto S_35856;}
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(27450);}while(r);
do{
*__LONG_LINEINPUT3INDEX=*_FUNC_LINEINPUT3_LONG_L+ 1 ;
if(!qbevent)break;evnt(27451);}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(27452);}while(r);
}
S_35861:;
if ((-(*_FUNC_LINEINPUT3_LONG_C10== 0 ))||is_error_pending()){
if(qbevent){evnt(27454);if(r)goto S_35861;}
do{
*_FUNC_LINEINPUT3_LONG_C10= 2147483647 ;
if(!qbevent)break;evnt(27454);}while(r);
}
S_35864:;
if ((-(*_FUNC_LINEINPUT3_LONG_C13== 0 ))||is_error_pending()){
if(qbevent){evnt(27455);if(r)goto S_35864;}
do{
*_FUNC_LINEINPUT3_LONG_C13= 2147483647 ;
if(!qbevent)break;evnt(27455);}while(r);
}
S_35867:;
if ((-(*_FUNC_LINEINPUT3_LONG_C10<*_FUNC_LINEINPUT3_LONG_C13))||is_error_pending()){
if(qbevent){evnt(27456);if(r)goto S_35867;}
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(27458);}while(r);
do{
*__LONG_LINEINPUT3INDEX=*_FUNC_LINEINPUT3_LONG_C10+ 1 ;
if(!qbevent)break;evnt(27459);}while(r);
S_35870:;
if ((-(*__LONG_LINEINPUT3INDEX<=*_FUNC_LINEINPUT3_LONG_L))||is_error_pending()){
if(qbevent){evnt(27460);if(r)goto S_35870;}
S_35871:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX, 1 ,0|1))== 13 )))||is_error_pending()){
if(qbevent){evnt(27461);if(r)goto S_35871;}
do{
*__LONG_LINEINPUT3INDEX=*__LONG_LINEINPUT3INDEX+ 1 ;
if(!qbevent)break;evnt(27461);}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(27465);}while(r);
do{
*__LONG_LINEINPUT3INDEX=*_FUNC_LINEINPUT3_LONG_C13+ 1 ;
if(!qbevent)break;evnt(27466);}while(r);
S_35878:;
if ((-(*__LONG_LINEINPUT3INDEX<=*_FUNC_LINEINPUT3_LONG_L))||is_error_pending()){
if(qbevent){evnt(27467);if(r)goto S_35878;}
S_35879:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(func_mid(__STRING_LINEINPUT3BUFFER,*__LONG_LINEINPUT3INDEX, 1 ,0|1))== 10 )))||is_error_pending()){
if(qbevent){evnt(27468);if(r)goto S_35879;}
do{
*__LONG_LINEINPUT3INDEX=*__LONG_LINEINPUT3INDEX+ 1 ;
if(!qbevent)break;evnt(27468);}while(r);
}
}
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free87.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;
}
