mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 03:15:07 +00:00
35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
int32 *_FUNC_COUNTITEMS_LONG_COUNTITEMS=NULL;
|
|
if(_FUNC_COUNTITEMS_LONG_COUNTITEMS==NULL){
|
|
_FUNC_COUNTITEMS_LONG_COUNTITEMS=(int32*)mem_static_malloc(4);
|
|
*_FUNC_COUNTITEMS_LONG_COUNTITEMS=0;
|
|
}
|
|
qbs*oldstr5380=NULL;
|
|
if(_FUNC_COUNTITEMS_STRING_SEARCHSTRING->tmp||_FUNC_COUNTITEMS_STRING_SEARCHSTRING->fixed||_FUNC_COUNTITEMS_STRING_SEARCHSTRING->readonly){
|
|
oldstr5380=_FUNC_COUNTITEMS_STRING_SEARCHSTRING;
|
|
if (oldstr5380->cmem_descriptor){
|
|
_FUNC_COUNTITEMS_STRING_SEARCHSTRING=qbs_new_cmem(oldstr5380->len,0);
|
|
}else{
|
|
_FUNC_COUNTITEMS_STRING_SEARCHSTRING=qbs_new(oldstr5380->len,0);
|
|
}
|
|
memcpy(_FUNC_COUNTITEMS_STRING_SEARCHSTRING->chr,oldstr5380->chr,oldstr5380->len);
|
|
}
|
|
qbs*oldstr5381=NULL;
|
|
if(_FUNC_COUNTITEMS_STRING_ITEM->tmp||_FUNC_COUNTITEMS_STRING_ITEM->fixed||_FUNC_COUNTITEMS_STRING_ITEM->readonly){
|
|
oldstr5381=_FUNC_COUNTITEMS_STRING_ITEM;
|
|
if (oldstr5381->cmem_descriptor){
|
|
_FUNC_COUNTITEMS_STRING_ITEM=qbs_new_cmem(oldstr5381->len,0);
|
|
}else{
|
|
_FUNC_COUNTITEMS_STRING_ITEM=qbs_new(oldstr5381->len,0);
|
|
}
|
|
memcpy(_FUNC_COUNTITEMS_STRING_ITEM->chr,oldstr5381->chr,oldstr5381->len);
|
|
}
|
|
int32 *_FUNC_COUNTITEMS_LONG_FOUND=NULL;
|
|
if(_FUNC_COUNTITEMS_LONG_FOUND==NULL){
|
|
_FUNC_COUNTITEMS_LONG_FOUND=(int32*)mem_static_malloc(4);
|
|
*_FUNC_COUNTITEMS_LONG_FOUND=0;
|
|
}
|
|
int32 *_FUNC_COUNTITEMS_LONG_TOTAL=NULL;
|
|
if(_FUNC_COUNTITEMS_LONG_TOTAL==NULL){
|
|
_FUNC_COUNTITEMS_LONG_TOTAL=(int32*)mem_static_malloc(4);
|
|
*_FUNC_COUNTITEMS_LONG_TOTAL=0;
|
|
}
|