mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
Stepping toward generalised ReadNum.
This commit is contained in:
parent
6dedf34785
commit
3dc5049d5a
24 changed files with 156 additions and 32 deletions
|
|
@ -82,6 +82,7 @@ export int64 OPM_SymRInt64 (void);
|
|||
export void OPM_SymRLReal (LONGREAL *lr);
|
||||
export void OPM_SymRReal (REAL *r);
|
||||
export void OPM_SymRSet (uint32 *s);
|
||||
export void OPM_SymRSet64 (uint64 *s);
|
||||
export void OPM_SymWCh (CHAR ch);
|
||||
export void OPM_SymWInt (int64 i);
|
||||
export void OPM_SymWLReal (LONGREAL lr);
|
||||
|
|
@ -752,10 +753,17 @@ int32 OPM_SymRInt (void)
|
|||
int64 OPM_SymRInt64 (void)
|
||||
{
|
||||
int64 _o_result;
|
||||
_o_result = OPM_SymRInt();
|
||||
int64 k;
|
||||
Files_ReadNum64(&OPM_oldSF, Files_Rider__typ, (void*)&k, 8);
|
||||
_o_result = k;
|
||||
return _o_result;
|
||||
}
|
||||
|
||||
void OPM_SymRSet64 (uint64 *s)
|
||||
{
|
||||
Files_ReadNum64(&OPM_oldSF, Files_Rider__typ, (void*)&*s, 8);
|
||||
}
|
||||
|
||||
void OPM_SymRSet (uint32 *s)
|
||||
{
|
||||
Files_ReadNum(&OPM_oldSF, Files_Rider__typ, (int32*)&*s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue