mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-09 12:50:17 +00:00
46 lines
2 KiB
Text
46 lines
2 KiB
Text
int32 *_FUNC_COPYFILE_LONG_COPYFILE=NULL;
|
|
if(_FUNC_COPYFILE_LONG_COPYFILE==NULL){
|
|
_FUNC_COPYFILE_LONG_COPYFILE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_COPYFILE_LONG_COPYFILE=0;
|
|
}
|
|
qbs*oldstr3796=NULL;
|
|
if(_FUNC_COPYFILE_STRING_SOURCEFILE->tmp||_FUNC_COPYFILE_STRING_SOURCEFILE->fixed||_FUNC_COPYFILE_STRING_SOURCEFILE->readonly){
|
|
oldstr3796=_FUNC_COPYFILE_STRING_SOURCEFILE;
|
|
if (oldstr3796->cmem_descriptor){
|
|
_FUNC_COPYFILE_STRING_SOURCEFILE=qbs_new_cmem(oldstr3796->len,0);
|
|
}else{
|
|
_FUNC_COPYFILE_STRING_SOURCEFILE=qbs_new(oldstr3796->len,0);
|
|
}
|
|
memcpy(_FUNC_COPYFILE_STRING_SOURCEFILE->chr,oldstr3796->chr,oldstr3796->len);
|
|
}
|
|
qbs*oldstr3797=NULL;
|
|
if(_FUNC_COPYFILE_STRING_DESTFILE->tmp||_FUNC_COPYFILE_STRING_DESTFILE->fixed||_FUNC_COPYFILE_STRING_DESTFILE->readonly){
|
|
oldstr3797=_FUNC_COPYFILE_STRING_DESTFILE;
|
|
if (oldstr3797->cmem_descriptor){
|
|
_FUNC_COPYFILE_STRING_DESTFILE=qbs_new_cmem(oldstr3797->len,0);
|
|
}else{
|
|
_FUNC_COPYFILE_STRING_DESTFILE=qbs_new(oldstr3797->len,0);
|
|
}
|
|
memcpy(_FUNC_COPYFILE_STRING_DESTFILE->chr,oldstr3797->chr,oldstr3797->len);
|
|
}
|
|
int32 *_FUNC_COPYFILE_LONG_SOURCEFILENO=NULL;
|
|
if(_FUNC_COPYFILE_LONG_SOURCEFILENO==NULL){
|
|
_FUNC_COPYFILE_LONG_SOURCEFILENO=(int32*)mem_static_malloc(4);
|
|
*_FUNC_COPYFILE_LONG_SOURCEFILENO=0;
|
|
}
|
|
int32 *_FUNC_COPYFILE_LONG_DESTFILENO=NULL;
|
|
if(_FUNC_COPYFILE_LONG_DESTFILENO==NULL){
|
|
_FUNC_COPYFILE_LONG_DESTFILENO=(int32*)mem_static_malloc(4);
|
|
*_FUNC_COPYFILE_LONG_DESTFILENO=0;
|
|
}
|
|
int64 *_FUNC_COPYFILE_INTEGER64_FILELENGTH=NULL;
|
|
if(_FUNC_COPYFILE_INTEGER64_FILELENGTH==NULL){
|
|
_FUNC_COPYFILE_INTEGER64_FILELENGTH=(int64*)mem_static_malloc(8);
|
|
*_FUNC_COPYFILE_INTEGER64_FILELENGTH=0;
|
|
}
|
|
qbs *_FUNC_COPYFILE_STRING_BUFFER=NULL;
|
|
if (!_FUNC_COPYFILE_STRING_BUFFER)_FUNC_COPYFILE_STRING_BUFFER=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3798=NULL;
|
|
if (!byte_element_3798){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3798=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3798=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|