mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 17:54:16 +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.
36 lines
1.5 KiB
Text
36 lines
1.5 KiB
Text
qbs*oldstr2473=NULL;
|
|
if(_SUB_INSERTELEMENTS_STRING_A->tmp||_SUB_INSERTELEMENTS_STRING_A->fixed||_SUB_INSERTELEMENTS_STRING_A->readonly){
|
|
oldstr2473=_SUB_INSERTELEMENTS_STRING_A;
|
|
if (oldstr2473->cmem_descriptor){
|
|
_SUB_INSERTELEMENTS_STRING_A=qbs_new_cmem(oldstr2473->len,0);
|
|
}else{
|
|
_SUB_INSERTELEMENTS_STRING_A=qbs_new(oldstr2473->len,0);
|
|
}
|
|
memcpy(_SUB_INSERTELEMENTS_STRING_A->chr,oldstr2473->chr,oldstr2473->len);
|
|
}
|
|
qbs*oldstr2474=NULL;
|
|
if(_SUB_INSERTELEMENTS_STRING_ELEMENTS->tmp||_SUB_INSERTELEMENTS_STRING_ELEMENTS->fixed||_SUB_INSERTELEMENTS_STRING_ELEMENTS->readonly){
|
|
oldstr2474=_SUB_INSERTELEMENTS_STRING_ELEMENTS;
|
|
if (oldstr2474->cmem_descriptor){
|
|
_SUB_INSERTELEMENTS_STRING_ELEMENTS=qbs_new_cmem(oldstr2474->len,0);
|
|
}else{
|
|
_SUB_INSERTELEMENTS_STRING_ELEMENTS=qbs_new(oldstr2474->len,0);
|
|
}
|
|
memcpy(_SUB_INSERTELEMENTS_STRING_ELEMENTS->chr,oldstr2474->chr,oldstr2474->len);
|
|
}
|
|
qbs *_SUB_INSERTELEMENTS_STRING_A2=NULL;
|
|
if (!_SUB_INSERTELEMENTS_STRING_A2)_SUB_INSERTELEMENTS_STRING_A2=qbs_new(0,0);
|
|
int32 *_SUB_INSERTELEMENTS_LONG_N=NULL;
|
|
if(_SUB_INSERTELEMENTS_LONG_N==NULL){
|
|
_SUB_INSERTELEMENTS_LONG_N=(int32*)mem_static_malloc(4);
|
|
*_SUB_INSERTELEMENTS_LONG_N=0;
|
|
}
|
|
int32 *_SUB_INSERTELEMENTS_LONG_I2=NULL;
|
|
if(_SUB_INSERTELEMENTS_LONG_I2==NULL){
|
|
_SUB_INSERTELEMENTS_LONG_I2=(int32*)mem_static_malloc(4);
|
|
*_SUB_INSERTELEMENTS_LONG_I2=0;
|
|
}
|
|
int64 fornext_value2476;
|
|
int64 fornext_finalvalue2476;
|
|
int64 fornext_step2476;
|
|
uint8 fornext_step_negative2476;
|