int32 FUNC_COUNTFUNCTIONELEMENTS(qbs*_FUNC_COUNTFUNCTIONELEMENTS_STRING_A){
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 "data108.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{
if(!qbevent)break;evnt(24218,207,"elements.bas");}while(r);
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_P= 1 ;
if(!qbevent)break;evnt(24218,208,"elements.bas");}while(r);
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_LVL= 1 ;
if(!qbevent)break;evnt(24218,209,"elements.bas");}while(r);
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_I= 0 ;
if(!qbevent)break;evnt(24218,210,"elements.bas");}while(r);
S_32759:;
if ((qbs_cleanup(qbs_tmp_base,-(_FUNC_COUNTFUNCTIONELEMENTS_STRING_A->len== 0 )))||is_error_pending()){
if(qbevent){evnt(24218,212,"elements.bas");if(r)goto S_32759;}
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_COUNTFUNCTIONELEMENTS= 0 ;
if(!qbevent)break;evnt(24218,213,"elements.bas");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24218,214,"elements.bas");}while(r);
}
S_32763:;
do{
if(qbevent){evnt(24218,217,"elements.bas");if(r)goto S_32763;}
S_32764:;
sc_3782=qbs_asc(_FUNC_COUNTFUNCTIONELEMENTS_STRING_A,*_FUNC_COUNTFUNCTIONELEMENTS_LONG_I+ 1 );
qbs_cleanup(qbs_tmp_base,0);
if(qbevent){evnt(24218,218,"elements.bas");if(r)goto S_32764;}
S_32765:;
if ((qbs_cleanup(qbs_tmp_base,(sc_3782==(qbs_asc(qbs_new_txt_len("(",1))))))||is_error_pending()){
if(qbevent){evnt(24218,219,"elements.bas");if(r)goto S_32765;}
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_LVL=*_FUNC_COUNTFUNCTIONELEMENTS_LONG_LVL+ 1 ;
if(!qbevent)break;evnt(24218,220,"elements.bas");}while(r);
sc_ec_109_end:;
goto sc_3782_end;
}
S_32767:;
if ((qbs_cleanup(qbs_tmp_base,(sc_3782==(qbs_asc(qbs_new_txt_len(")",1))))))||is_error_pending()){
if(qbevent){evnt(24218,222,"elements.bas");if(r)goto S_32767;}
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_LVL=*_FUNC_COUNTFUNCTIONELEMENTS_LONG_LVL- 1 ;
if(!qbevent)break;evnt(24218,223,"elements.bas");}while(r);
sc_ec_110_end:;
goto sc_3782_end;
}
S_32769:;
if ((qbs_cleanup(qbs_tmp_base,(sc_3782==(qbs_asc(qbs_new_txt_len(",",1))))))||is_error_pending()){
if(qbevent){evnt(24218,225,"elements.bas");if(r)goto S_32769;}
S_32770:;
if ((-(*_FUNC_COUNTFUNCTIONELEMENTS_LONG_LVL== 1 ))||is_error_pending()){
if(qbevent){evnt(24218,226,"elements.bas");if(r)goto S_32770;}
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_COUNT=*_FUNC_COUNTFUNCTIONELEMENTS_LONG_COUNT+ 1 ;
if(!qbevent)break;evnt(24218,227,"elements.bas");}while(r);
}
sc_ec_111_end:;
goto sc_3782_end;
}
sc_3782_end:;
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_I=func_instr(*_FUNC_COUNTFUNCTIONELEMENTS_LONG_P,_FUNC_COUNTFUNCTIONELEMENTS_STRING_A,__STRING1_SP,0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24218,232,"elements.bas");}while(r);
S_32775:;
if ((-(*_FUNC_COUNTFUNCTIONELEMENTS_LONG_I== 0 ))||is_error_pending()){
if(qbevent){evnt(24218,233,"elements.bas");if(r)goto S_32775;}
do{
goto dl_exit_3781;
if(!qbevent)break;evnt(24218,234,"elements.bas");}while(r);
}
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_P=*_FUNC_COUNTFUNCTIONELEMENTS_LONG_I+ 1 ;
if(!qbevent)break;evnt(24218,237,"elements.bas");}while(r);
dl_continue_3781:;
}while(1);
dl_exit_3781:;
do{
*_FUNC_COUNTFUNCTIONELEMENTS_LONG_COUNTFUNCTIONELEMENTS=*_FUNC_COUNTFUNCTIONELEMENTS_LONG_COUNT+ 1 ;
if(!qbevent)break;evnt(24218,241,"elements.bas");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free108.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;
return *_FUNC_COUNTFUNCTIONELEMENTS_LONG_COUNTFUNCTIONELEMENTS;
}
