mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 09:04:43 +00:00
26 lines
1.1 KiB
Text
26 lines
1.1 KiB
Text
qbs*oldstr3839=NULL;
|
|
if(_SUB_BUFTOFILE_STRING_FILESPEC->tmp||_SUB_BUFTOFILE_STRING_FILESPEC->fixed||_SUB_BUFTOFILE_STRING_FILESPEC->readonly){
|
|
oldstr3839=_SUB_BUFTOFILE_STRING_FILESPEC;
|
|
if (oldstr3839->cmem_descriptor){
|
|
_SUB_BUFTOFILE_STRING_FILESPEC=qbs_new_cmem(oldstr3839->len,0);
|
|
}else{
|
|
_SUB_BUFTOFILE_STRING_FILESPEC=qbs_new(oldstr3839->len,0);
|
|
}
|
|
memcpy(_SUB_BUFTOFILE_STRING_FILESPEC->chr,oldstr3839->chr,oldstr3839->len);
|
|
}
|
|
int32 *_SUB_BUFTOFILE_LONG_BUF=NULL;
|
|
if(_SUB_BUFTOFILE_LONG_BUF==NULL){
|
|
_SUB_BUFTOFILE_LONG_BUF=(int32*)mem_static_malloc(4);
|
|
*_SUB_BUFTOFILE_LONG_BUF=0;
|
|
}
|
|
int16 *_SUB_BUFTOFILE_INTEGER_FF=NULL;
|
|
if(_SUB_BUFTOFILE_INTEGER_FF==NULL){
|
|
_SUB_BUFTOFILE_INTEGER_FF=(int16*)mem_static_malloc(2);
|
|
*_SUB_BUFTOFILE_INTEGER_FF=0;
|
|
}
|
|
qbs *_SUB_BUFTOFILE_STRING_DAT=NULL;
|
|
if (!_SUB_BUFTOFILE_STRING_DAT)_SUB_BUFTOFILE_STRING_DAT=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3840=NULL;
|
|
if (!byte_element_3840){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3840=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3840=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|