void SUB_PATH_SLASH_CORRECT(qbs*_SUB_PATH_SLASH_CORRECT_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 "data123.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_36767:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(__STRING_OS,qbs_new_txt_len("WIN",3))))||is_error_pending()){
if(qbevent){evnt(28163,74,"file.bas");if(r)goto S_36767;}
S_36768:;
fornext_value4395= 1 ;
fornext_finalvalue4395=_SUB_PATH_SLASH_CORRECT_STRING_A->len;
fornext_step4395= 1 ;
if (fornext_step4395<0) fornext_step_negative4395=1; else fornext_step_negative4395=0;
if (is_error_pending()) goto fornext_error4395;
goto fornext_entrylabel4395;
while(1){
fornext_value4395=fornext_step4395+(*_SUB_PATH_SLASH_CORRECT_LONG_X);
fornext_entrylabel4395:
*_SUB_PATH_SLASH_CORRECT_LONG_X=fornext_value4395;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative4395){
if (fornext_value4395<fornext_finalvalue4395) break;
}else{
if (fornext_value4395>fornext_finalvalue4395) break;
}
fornext_error4395:;
if(qbevent){evnt(28163,75,"file.bas");if(r)goto S_36768;}
S_36769:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(_SUB_PATH_SLASH_CORRECT_STRING_A,*_SUB_PATH_SLASH_CORRECT_LONG_X)== 47 )))||is_error_pending()){
if(qbevent){evnt(28163,76,"file.bas");if(r)goto S_36769;}
do{
tqbs=_SUB_PATH_SLASH_CORRECT_STRING_A; if (!is_error_pending()){
tmp_fileno=*_SUB_PATH_SLASH_CORRECT_LONG_X; if (!is_error_pending()){
tmp_long= 92 ; if (!is_error_pending()){
if ((tmp_fileno>0)&&(tmp_fileno<=tqbs->len)){tqbs->chr[tmp_fileno-1]=tmp_long;}else{error(5);}
}}}
if(!qbevent)break;evnt(28163,76,"file.bas");}while(r);
}
fornext_continue_4394:;
}
fornext_exit_4394:;
}else{
S_36774:;
fornext_value4398= 1 ;
fornext_finalvalue4398=_SUB_PATH_SLASH_CORRECT_STRING_A->len;
fornext_step4398= 1 ;
if (fornext_step4398<0) fornext_step_negative4398=1; else fornext_step_negative4398=0;
if (is_error_pending()) goto fornext_error4398;
goto fornext_entrylabel4398;
while(1){
fornext_value4398=fornext_step4398+(*_SUB_PATH_SLASH_CORRECT_LONG_X);
fornext_entrylabel4398:
*_SUB_PATH_SLASH_CORRECT_LONG_X=fornext_value4398;
qbs_cleanup(qbs_tmp_base,0);
if (fornext_step_negative4398){
if (fornext_value4398<fornext_finalvalue4398) break;
}else{
if (fornext_value4398>fornext_finalvalue4398) break;
}
fornext_error4398:;
if(qbevent){evnt(28163,79,"file.bas");if(r)goto S_36774;}
S_36775:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(_SUB_PATH_SLASH_CORRECT_STRING_A,*_SUB_PATH_SLASH_CORRECT_LONG_X)== 92 )))||is_error_pending()){
if(qbevent){evnt(28163,80,"file.bas");if(r)goto S_36775;}
do{
tqbs=_SUB_PATH_SLASH_CORRECT_STRING_A; if (!is_error_pending()){
tmp_fileno=*_SUB_PATH_SLASH_CORRECT_LONG_X; if (!is_error_pending()){
tmp_long= 47 ; if (!is_error_pending()){
if ((tmp_fileno>0)&&(tmp_fileno<=tqbs->len)){tqbs->chr[tmp_fileno-1]=tmp_long;}else{error(5);}
}}}
if(!qbevent)break;evnt(28163,80,"file.bas");}while(r);
}
fornext_continue_4397:;
}
fornext_exit_4397:;
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free123.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;
}
