mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-19 15:35:01 +00:00
6e01fc8dce
Added new _STRCMP and _STRICMP commands for quick string comparisons. Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders. Altered UCASE and LCASE routines to be faster in some situations for us.
64 lines
3.1 KiB
Text
64 lines
3.1 KiB
Text
int32 *_FUNC_FINDARRAY_LONG_FINDARRAY=NULL;
|
|
if(_FUNC_FINDARRAY_LONG_FINDARRAY==NULL){
|
|
_FUNC_FINDARRAY_LONG_FINDARRAY=(int32*)mem_static_malloc(4);
|
|
*_FUNC_FINDARRAY_LONG_FINDARRAY=0;
|
|
}
|
|
qbs*oldstr2328=NULL;
|
|
if(_FUNC_FINDARRAY_STRING_SECURE->tmp||_FUNC_FINDARRAY_STRING_SECURE->fixed||_FUNC_FINDARRAY_STRING_SECURE->readonly){
|
|
oldstr2328=_FUNC_FINDARRAY_STRING_SECURE;
|
|
if (oldstr2328->cmem_descriptor){
|
|
_FUNC_FINDARRAY_STRING_SECURE=qbs_new_cmem(oldstr2328->len,0);
|
|
}else{
|
|
_FUNC_FINDARRAY_STRING_SECURE=qbs_new(oldstr2328->len,0);
|
|
}
|
|
memcpy(_FUNC_FINDARRAY_STRING_SECURE->chr,oldstr2328->chr,oldstr2328->len);
|
|
}
|
|
qbs *_FUNC_FINDARRAY_STRING_N=NULL;
|
|
if (!_FUNC_FINDARRAY_STRING_N)_FUNC_FINDARRAY_STRING_N=qbs_new(0,0);
|
|
int32 *_FUNC_FINDARRAY_LONG_I=NULL;
|
|
if(_FUNC_FINDARRAY_LONG_I==NULL){
|
|
_FUNC_FINDARRAY_LONG_I=(int32*)mem_static_malloc(4);
|
|
*_FUNC_FINDARRAY_LONG_I=0;
|
|
}
|
|
qbs *_FUNC_FINDARRAY_STRING_SC=NULL;
|
|
if (!_FUNC_FINDARRAY_STRING_SC)_FUNC_FINDARRAY_STRING_SC=qbs_new(0,0);
|
|
byte_element_struct *byte_element_2330=NULL;
|
|
if (!byte_element_2330){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2330=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2330=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2331=NULL;
|
|
if (!byte_element_2331){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2331=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2331=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2332=NULL;
|
|
if (!byte_element_2332){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2332=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2332=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2333=NULL;
|
|
if (!byte_element_2333){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2333=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2333=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2334=NULL;
|
|
if (!byte_element_2334){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2334=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2334=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2335=NULL;
|
|
if (!byte_element_2335){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2335=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2335=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_2336=NULL;
|
|
if (!byte_element_2336){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2336=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2336=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_FINDARRAY_STRING_N2=NULL;
|
|
if (!_FUNC_FINDARRAY_STRING_N2)_FUNC_FINDARRAY_STRING_N2=qbs_new(0,0);
|
|
int32 *_FUNC_FINDARRAY_LONG_TRY=NULL;
|
|
if(_FUNC_FINDARRAY_LONG_TRY==NULL){
|
|
_FUNC_FINDARRAY_LONG_TRY=(int32*)mem_static_malloc(4);
|
|
*_FUNC_FINDARRAY_LONG_TRY=0;
|
|
}
|
|
int32 *_FUNC_FINDARRAY_LONG_A=NULL;
|
|
if(_FUNC_FINDARRAY_LONG_A==NULL){
|
|
_FUNC_FINDARRAY_LONG_A=(int32*)mem_static_malloc(4);
|
|
*_FUNC_FINDARRAY_LONG_A=0;
|
|
}
|