mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 07:55:07 +00:00
21 lines
1.1 KiB
Text
21 lines
1.1 KiB
Text
qbs *_FUNC_IDECLEARHISTORY_STRING_IDECLEARHISTORY=NULL;
|
|
if (!_FUNC_IDECLEARHISTORY_STRING_IDECLEARHISTORY)_FUNC_IDECLEARHISTORY_STRING_IDECLEARHISTORY=qbs_new(0,0);
|
|
qbs*oldstr4970=NULL;
|
|
if(_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY->tmp||_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY->fixed||_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY->readonly){
|
|
oldstr4970=_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY;
|
|
if (oldstr4970->cmem_descriptor){
|
|
_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY=qbs_new_cmem(oldstr4970->len,0);
|
|
}else{
|
|
_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY=qbs_new(oldstr4970->len,0);
|
|
}
|
|
memcpy(_FUNC_IDECLEARHISTORY_STRING_WHICHHISTORY->chr,oldstr4970->chr,oldstr4970->len);
|
|
}
|
|
qbs *_FUNC_IDECLEARHISTORY_STRING_T=NULL;
|
|
if (!_FUNC_IDECLEARHISTORY_STRING_T)_FUNC_IDECLEARHISTORY_STRING_T=qbs_new(0,0);
|
|
qbs *_FUNC_IDECLEARHISTORY_STRING_M=NULL;
|
|
if (!_FUNC_IDECLEARHISTORY_STRING_M)_FUNC_IDECLEARHISTORY_STRING_M=qbs_new(0,0);
|
|
int32 *_FUNC_IDECLEARHISTORY_LONG_RESULT=NULL;
|
|
if(_FUNC_IDECLEARHISTORY_LONG_RESULT==NULL){
|
|
_FUNC_IDECLEARHISTORY_LONG_RESULT=(int32*)mem_static_malloc(4);
|
|
*_FUNC_IDECLEARHISTORY_LONG_RESULT=0;
|
|
}
|