mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-12 15:30:31 +00:00
25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
int32 *_FUNC_OPERATORUSAGE_LONG_OPERATORUSAGE=NULL;
|
|
if(_FUNC_OPERATORUSAGE_LONG_OPERATORUSAGE==NULL){
|
|
_FUNC_OPERATORUSAGE_LONG_OPERATORUSAGE=(int32*)mem_static_malloc(4);
|
|
*_FUNC_OPERATORUSAGE_LONG_OPERATORUSAGE=0;
|
|
}
|
|
qbs*oldstr3029=NULL;
|
|
if(_FUNC_OPERATORUSAGE_STRING_OPERATOR->tmp||_FUNC_OPERATORUSAGE_STRING_OPERATOR->fixed||_FUNC_OPERATORUSAGE_STRING_OPERATOR->readonly){
|
|
oldstr3029=_FUNC_OPERATORUSAGE_STRING_OPERATOR;
|
|
if (oldstr3029->cmem_descriptor){
|
|
_FUNC_OPERATORUSAGE_STRING_OPERATOR=qbs_new_cmem(oldstr3029->len,0);
|
|
}else{
|
|
_FUNC_OPERATORUSAGE_STRING_OPERATOR=qbs_new(oldstr3029->len,0);
|
|
}
|
|
memcpy(_FUNC_OPERATORUSAGE_STRING_OPERATOR->chr,oldstr3029->chr,oldstr3029->len);
|
|
}
|
|
qbs*oldstr3030=NULL;
|
|
if(_FUNC_OPERATORUSAGE_STRING_INFO->tmp||_FUNC_OPERATORUSAGE_STRING_INFO->fixed||_FUNC_OPERATORUSAGE_STRING_INFO->readonly){
|
|
oldstr3030=_FUNC_OPERATORUSAGE_STRING_INFO;
|
|
if (oldstr3030->cmem_descriptor){
|
|
_FUNC_OPERATORUSAGE_STRING_INFO=qbs_new_cmem(oldstr3030->len,0);
|
|
}else{
|
|
_FUNC_OPERATORUSAGE_STRING_INFO=qbs_new(oldstr3030->len,0);
|
|
}
|
|
memcpy(_FUNC_OPERATORUSAGE_STRING_INFO->chr,oldstr3030->chr,oldstr3030->len);
|
|
}
|