qbs* FUNC_READCHUNK(qbs*_FUNC_READCHUNK_STRING_A,qbs*_FUNC_READCHUNK_STRING_LAST_CHARACTER){
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 "data155.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{
qbs_set(_FUNC_READCHUNK_STRING_A,qbs_ltrim(qbs_rtrim(_FUNC_READCHUNK_STRING_A)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,58,"opengl_methods.bas");}while(r);
S_37408:;
fornext_value4494= 1 ;
fornext_finalvalue4494=_FUNC_READCHUNK_STRING_A->len;
fornext_step4494= 1 ;
if (fornext_step4494<0) fornext_step_negative4494=1; else fornext_step_negative4494=0;
if (is_error_pending()) goto fornext_error4494;
goto fornext_entrylabel4494;
while(1){
fornext_value4494=fornext_step4494+(*_FUNC_READCHUNK_LONG_X);
fornext_entrylabel4494:
*_FUNC_READCHUNK_LONG_X=fornext_value4494;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative4494){
if (fornext_value4494<fornext_finalvalue4494) break;
}else{
if (fornext_value4494>fornext_finalvalue4494) break;
}
fornext_error4494:;
if(qbevent){evnt(28166,59,"opengl_methods.bas");if(r)goto S_37408;}
do{
*_FUNC_READCHUNK_LONG_C=qbs_asc(_FUNC_READCHUNK_STRING_A,*_FUNC_READCHUNK_LONG_X);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,60,"opengl_methods.bas");}while(r);
S_37410:;
if (((-(*_FUNC_READCHUNK_LONG_C== 32 ))|(-(*_FUNC_READCHUNK_LONG_C== 44 ))|(-(*_FUNC_READCHUNK_LONG_C== 40 ))|(-(*_FUNC_READCHUNK_LONG_C== 41 )))||is_error_pending()){
if(qbevent){evnt(28166,61,"opengl_methods.bas");if(r)goto S_37410;}
do{
qbs_set(_FUNC_READCHUNK_STRING_LAST_CHARACTER,func_chr(*_FUNC_READCHUNK_LONG_C));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,61,"opengl_methods.bas");}while(r);
do{
qbs_set(_FUNC_READCHUNK_STRING_READCHUNK,qbs_left(_FUNC_READCHUNK_STRING_A,*_FUNC_READCHUNK_LONG_X- 1 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,61,"opengl_methods.bas");}while(r);
do{
qbs_set(_FUNC_READCHUNK_STRING_A,qbs_ltrim(qbs_right(_FUNC_READCHUNK_STRING_A,_FUNC_READCHUNK_STRING_A->len-*_FUNC_READCHUNK_LONG_X)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,61,"opengl_methods.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28166,61,"opengl_methods.bas");}while(r);
}
fornext_continue_4493:;
}
fornext_exit_4493:;
do{
qbs_set(_FUNC_READCHUNK_STRING_READCHUNK,_FUNC_READCHUNK_STRING_A);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,63,"opengl_methods.bas");}while(r);
do{
qbs_set(_FUNC_READCHUNK_STRING_LAST_CHARACTER,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,63,"opengl_methods.bas");}while(r);
do{
qbs_set(_FUNC_READCHUNK_STRING_A,qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28166,63,"opengl_methods.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free155.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_READCHUNK_STRING_READCHUNK);return _FUNC_READCHUNK_STRING_READCHUNK;
}
