1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-16 17:54:16 +00:00
QB64-PE/internal/source/data57.txt
Luke Ceddia b586eafd3b Integrated _BLINEINPUT into regular LINE INPUT for BINARY files
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.
2014-07-27 00:06:17 +10:00

60 lines
2.1 KiB
Text

qbs*oldstr3017=NULL;
if(_SUB_XWRITE_STRING_CA->tmp||_SUB_XWRITE_STRING_CA->fixed||_SUB_XWRITE_STRING_CA->readonly){
oldstr3017=_SUB_XWRITE_STRING_CA;
if (oldstr3017->cmem_descriptor){
_SUB_XWRITE_STRING_CA=qbs_new_cmem(oldstr3017->len,0);
}else{
_SUB_XWRITE_STRING_CA=qbs_new(oldstr3017->len,0);
}
memcpy(_SUB_XWRITE_STRING_CA->chr,oldstr3017->chr,oldstr3017->len);
}
qbs *_SUB_XWRITE_STRING_L=NULL;
if (!_SUB_XWRITE_STRING_L)_SUB_XWRITE_STRING_L=qbs_new(0,0);
qbs *_SUB_XWRITE_STRING_U=NULL;
if (!_SUB_XWRITE_STRING_U)_SUB_XWRITE_STRING_U=qbs_new(0,0);
int32 pass3018;
int32 *_SUB_XWRITE_LONG_B=NULL;
if(_SUB_XWRITE_LONG_B==NULL){
_SUB_XWRITE_LONG_B=(int32*)mem_static_malloc(4);
*_SUB_XWRITE_LONG_B=0;
}
qbs *_SUB_XWRITE_STRING_E=NULL;
if (!_SUB_XWRITE_STRING_E)_SUB_XWRITE_STRING_E=qbs_new(0,0);
int32 *_SUB_XWRITE_LONG_LAST=NULL;
if(_SUB_XWRITE_LONG_LAST==NULL){
_SUB_XWRITE_LONG_LAST=(int32*)mem_static_malloc(4);
*_SUB_XWRITE_LONG_LAST=0;
}
int32 *_SUB_XWRITE_LONG_I=NULL;
if(_SUB_XWRITE_LONG_I==NULL){
_SUB_XWRITE_LONG_I=(int32*)mem_static_malloc(4);
*_SUB_XWRITE_LONG_I=0;
}
int64 fornext_value3021;
int64 fornext_finalvalue3021;
int64 fornext_step3021;
uint8 fornext_step_negative3021;
qbs *_SUB_XWRITE_STRING_A2=NULL;
if (!_SUB_XWRITE_STRING_A2)_SUB_XWRITE_STRING_A2=qbs_new(0,0);
int32 *_SUB_XWRITE_LONG_NEWLINE=NULL;
if(_SUB_XWRITE_LONG_NEWLINE==NULL){
_SUB_XWRITE_LONG_NEWLINE=(int32*)mem_static_malloc(4);
*_SUB_XWRITE_LONG_NEWLINE=0;
}
qbs *_SUB_XWRITE_STRING_EBAK=NULL;
if (!_SUB_XWRITE_STRING_EBAK)_SUB_XWRITE_STRING_EBAK=qbs_new(0,0);
int32 *_SUB_XWRITE_LONG_REEVALED=NULL;
if(_SUB_XWRITE_LONG_REEVALED==NULL){
_SUB_XWRITE_LONG_REEVALED=(int32*)mem_static_malloc(4);
*_SUB_XWRITE_LONG_REEVALED=0;
}
int32 *_SUB_XWRITE_LONG_TYP=NULL;
if(_SUB_XWRITE_LONG_TYP==NULL){
_SUB_XWRITE_LONG_TYP=(int32*)mem_static_malloc(4);
*_SUB_XWRITE_LONG_TYP=0;
}
int32 pass3022;
byte_element_struct *byte_element_3027=NULL;
if (!byte_element_3027){
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_3027=(byte_element_struct*)(mem_static_pointer-12); else byte_element_3027=(byte_element_struct*)mem_static_malloc(12);
}