mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-19 16:45:06 +00:00
b586eafd3b
LINE INPUT will now use the faster method if passed a file handle that has been opened FOR BINARY. As such, the _BLINEINPUT command has been removed. qb64.bas now takes advantage of this for reading from '$include files, at least in Include Manager 1. Some tweaking of internal/source/main.txt was required to get things into a sane state, so I'm holing off changing the compiler any further so the auto-builder can make sure everything's smoothed over. Note: Everything should still compile as normal; I'm just being overcautious.
108 lines
4.6 KiB
Text
108 lines
4.6 KiB
Text
qbs*oldstr4762=NULL;
|
|
if(_SUB_PARSEEXPRESSION_STRING_EXP->tmp||_SUB_PARSEEXPRESSION_STRING_EXP->fixed||_SUB_PARSEEXPRESSION_STRING_EXP->readonly){
|
|
oldstr4762=_SUB_PARSEEXPRESSION_STRING_EXP;
|
|
if (oldstr4762->cmem_descriptor){
|
|
_SUB_PARSEEXPRESSION_STRING_EXP=qbs_new_cmem(oldstr4762->len,0);
|
|
}else{
|
|
_SUB_PARSEEXPRESSION_STRING_EXP=qbs_new(oldstr4762->len,0);
|
|
}
|
|
memcpy(_SUB_PARSEEXPRESSION_STRING_EXP->chr,oldstr4762->chr,oldstr4762->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_value4764;
|
|
int64 fornext_finalvalue4764;
|
|
int64 fornext_step4764;
|
|
uint8 fornext_step_negative4764;
|
|
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_4765=NULL;
|
|
if (!byte_element_4765){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4765=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4765=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4767=NULL;
|
|
if (!byte_element_4767){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4767=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4767=(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_value4769;
|
|
int64 fornext_finalvalue4769;
|
|
int64 fornext_step4769;
|
|
uint8 fornext_step_negative4769;
|
|
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_4770=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_4771=NULL;
|
|
if (!byte_element_4771){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4771=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4771=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
static qbs *sc_4773=qbs_new(0,0);
|
|
byte_element_struct *byte_element_4774=NULL;
|
|
if (!byte_element_4774){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4774=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4774=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
static qbs *sc_4776=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_4778=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_4779=NULL;
|
|
if (!byte_element_4779){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4779=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4779=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
byte_element_struct *byte_element_4780=NULL;
|
|
if (!byte_element_4780){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_4780=(byte_element_struct*)(mem_static_pointer-12); else byte_element_4780=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|