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.
108 lines
4.6 KiB
Text
108 lines
4.6 KiB
Text
qbs*oldstr3120=NULL;
|
|
if(_SUB_PARSEEXPRESSION_STRING_EXP->tmp||_SUB_PARSEEXPRESSION_STRING_EXP->fixed||_SUB_PARSEEXPRESSION_STRING_EXP->readonly){
|
|
oldstr3120=_SUB_PARSEEXPRESSION_STRING_EXP;
|
|
if (oldstr3120->cmem_descriptor){
|
|
_SUB_PARSEEXPRESSION_STRING_EXP=qbs_new_cmem(oldstr3120->len,0);
|
|
}else{
|
|
_SUB_PARSEEXPRESSION_STRING_EXP=qbs_new(oldstr3120->len,0);
|
|
}
|
|
memcpy(_SUB_PARSEEXPRESSION_STRING_EXP->chr,oldstr3120->chr,oldstr3120->len);
|
|
}
|
|
ptrszint *_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM=NULL;
|
|
if (!_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM){
|
|
_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM=(ptrszint*)mem_static_malloc(9*ptrsz);
|
|
new_mem_lock();
|
|
mem_lock_tmp->type=4;
|
|
((ptrszint*)_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM)[8]=(ptrszint)mem_lock_tmp;
|
|
_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM[2]=0;
|
|
_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM[4]=2147483647;
|
|
_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM[5]=0;
|
|
_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM[6]=0;
|
|
_SUB_PARSEEXPRESSION_ARRAY_STRING_NUM[0]=(ptrszint)¬hingstring;
|
|
}
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_J=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_J==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_J=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_J=0;
|
|
}
|
|
int64 fornext_value3122;
|
|
int64 fornext_finalvalue3122;
|
|
int64 fornext_step3122;
|
|
uint8 fornext_step_negative3122;
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_LOWEST=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_LOWEST==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_LOWEST=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_LOWEST=0;
|
|
}
|
|
byte_element_struct *byte_element_3123=NULL;
|
|
if (!byte_element_3123){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3123=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3123=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3125=NULL;
|
|
if (!byte_element_3125){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3125=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3125=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_OPON=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_OPON==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_OPON=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_OPON=0;
|
|
}
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_P=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_P==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_P=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_P=0;
|
|
}
|
|
int64 fornext_value3127;
|
|
int64 fornext_finalvalue3127;
|
|
int64 fornext_step3127;
|
|
uint8 fornext_step_negative3127;
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_OP=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_OP==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_OP=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_OP=0;
|
|
}
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_NUMSET=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_NUMSET==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_NUMSET=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_NUMSET=0;
|
|
}
|
|
static qbs *sc_3128=qbs_new(0,0);
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_C=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_C==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_C=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_C=0;
|
|
}
|
|
byte_element_struct *byte_element_3129=NULL;
|
|
if (!byte_element_3129){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3129=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3129=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
static qbs *sc_3131=qbs_new(0,0);
|
|
byte_element_struct *byte_element_3132=NULL;
|
|
if (!byte_element_3132){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3132=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3132=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
static qbs *sc_3134=qbs_new(0,0);
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_C1=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_C1==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_C1=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_C1=0;
|
|
}
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_BAD=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_BAD==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_BAD=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_BAD=0;
|
|
}
|
|
static qbs *sc_3136=qbs_new(0,0);
|
|
int32 *_SUB_PARSEEXPRESSION_LONG_S=NULL;
|
|
if(_SUB_PARSEEXPRESSION_LONG_S==NULL){
|
|
_SUB_PARSEEXPRESSION_LONG_S=(int32*)mem_static_malloc(4);
|
|
*_SUB_PARSEEXPRESSION_LONG_S=0;
|
|
}
|
|
byte_element_struct *byte_element_3137=NULL;
|
|
if (!byte_element_3137){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3137=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3137=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_3138=NULL;
|
|
if (!byte_element_3138){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3138=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3138=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|