mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-16 03:54:01 +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.
48 lines
2.2 KiB
Text
48 lines
2.2 KiB
Text
qbs *_FUNC_TYP2CTYP_STRING_TYP2CTYP=NULL;
|
|
if (!_FUNC_TYP2CTYP_STRING_TYP2CTYP)_FUNC_TYP2CTYP_STRING_TYP2CTYP=qbs_new(0,0);
|
|
qbs*oldstr2759=NULL;
|
|
if(_FUNC_TYP2CTYP_STRING_TSTR->tmp||_FUNC_TYP2CTYP_STRING_TSTR->fixed||_FUNC_TYP2CTYP_STRING_TSTR->readonly){
|
|
oldstr2759=_FUNC_TYP2CTYP_STRING_TSTR;
|
|
if (oldstr2759->cmem_descriptor){
|
|
_FUNC_TYP2CTYP_STRING_TSTR=qbs_new_cmem(oldstr2759->len,0);
|
|
}else{
|
|
_FUNC_TYP2CTYP_STRING_TSTR=qbs_new(oldstr2759->len,0);
|
|
}
|
|
memcpy(_FUNC_TYP2CTYP_STRING_TSTR->chr,oldstr2759->chr,oldstr2759->len);
|
|
}
|
|
qbs *_FUNC_TYP2CTYP_STRING_CTYP=NULL;
|
|
if (!_FUNC_TYP2CTYP_STRING_CTYP)_FUNC_TYP2CTYP_STRING_CTYP=qbs_new(0,0);
|
|
int32 *_FUNC_TYP2CTYP_LONG_B=NULL;
|
|
if(_FUNC_TYP2CTYP_LONG_B==NULL){
|
|
_FUNC_TYP2CTYP_LONG_B=(int32*)mem_static_malloc(4);
|
|
*_FUNC_TYP2CTYP_LONG_B=0;
|
|
}
|
|
int32 *_FUNC_TYP2CTYP_LONG_TYP=NULL;
|
|
if(_FUNC_TYP2CTYP_LONG_TYP==NULL){
|
|
_FUNC_TYP2CTYP_LONG_TYP=(int32*)mem_static_malloc(4);
|
|
*_FUNC_TYP2CTYP_LONG_TYP=0;
|
|
}
|
|
qbs *_FUNC_TYP2CTYP_STRING_TS=NULL;
|
|
if (!_FUNC_TYP2CTYP_STRING_TS)_FUNC_TYP2CTYP_STRING_TS=qbs_new(0,0);
|
|
int32 *_FUNC_TYP2CTYP_LONG_UNSGN=NULL;
|
|
if(_FUNC_TYP2CTYP_LONG_UNSGN==NULL){
|
|
_FUNC_TYP2CTYP_LONG_UNSGN=(int32*)mem_static_malloc(4);
|
|
*_FUNC_TYP2CTYP_LONG_UNSGN=0;
|
|
}
|
|
byte_element_struct *byte_element_2760=NULL;
|
|
if (!byte_element_2760){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2760=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2760=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_TYP2CTYP_STRING_N=NULL;
|
|
if (!_FUNC_TYP2CTYP_STRING_N)_FUNC_TYP2CTYP_STRING_N=qbs_new(0,0);
|
|
byte_element_struct *byte_element_2761=NULL;
|
|
if (!byte_element_2761){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2761=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2761=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
qbs *_FUNC_TYP2CTYP_STRING_S=NULL;
|
|
if (!_FUNC_TYP2CTYP_STRING_S)_FUNC_TYP2CTYP_STRING_S=qbs_new(0,0);
|
|
byte_element_struct *byte_element_2762=NULL;
|
|
if (!byte_element_2762){
|
|
if ((mem_static_pointer+=12)<mem_static_limit) byte_element_2762=(byte_element_struct*)(mem_static_pointer-12); else byte_element_2762=(byte_element_struct*)mem_static_malloc(12);
|
|
}
|
|
int32 pass2763;
|