mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 04:02:25 +00:00
Accept all SET types in INCL.
This commit is contained in:
parent
1fa182c7ce
commit
2e02f9204c
18 changed files with 22 additions and 64 deletions
|
|
@ -1879,7 +1879,7 @@ void OPB_StPar0 (OPT_Node *par0, int16 fctno)
|
|||
case 15: case 16:
|
||||
if (OPB_NotVar(x)) {
|
||||
OPB_err(112);
|
||||
} else if (x->typ != OPT_settyp) {
|
||||
} else if (x->typ->form != 7) {
|
||||
OPB_err(111);
|
||||
x->typ = OPT_settyp;
|
||||
} else if (x->readonly) {
|
||||
|
|
@ -2044,7 +2044,7 @@ void OPB_StPar1 (OPT_Node *par0, OPT_Node x, int8 fctno)
|
|||
if (x->class == 8 || x->class == 9) {
|
||||
OPB_err(126);
|
||||
} else if (f == 4) {
|
||||
if ((x->class == 7 && (0 > x->conval->intval || x->conval->intval > (int64)OPM_MaxSet))) {
|
||||
if ((x->class == 7 && (0 > x->conval->intval || x->conval->intval >= (int64)__ASHL(p->typ->size, 3)))) {
|
||||
OPB_err(202);
|
||||
}
|
||||
p = NewOp__54(19, fctno, p, x);
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ 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);
|
||||
|
|
@ -759,11 +758,6 @@ int64 OPM_SymRInt64 (void)
|
|||
return _o_result;
|
||||
}
|
||||
|
||||
void OPM_SymRSet64 (uint64 *s)
|
||||
{
|
||||
Files_ReadNum(&OPM_oldSF, Files_Rider__typ, (void*)&*s, 8);
|
||||
}
|
||||
|
||||
void OPM_SymRSet (uint32 *s)
|
||||
{
|
||||
Files_ReadNum(&OPM_oldSF, Files_Rider__typ, (void*)&*s, 4);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ import int64 OPM_SymRInt64 (void);
|
|||
import void OPM_SymRLReal (LONGREAL *lr);
|
||||
import void OPM_SymRReal (REAL *r);
|
||||
import void OPM_SymRSet (uint32 *s);
|
||||
import void OPM_SymRSet64 (uint64 *s);
|
||||
import void OPM_SymWCh (CHAR ch);
|
||||
import void OPM_SymWInt (int64 i);
|
||||
import void OPM_SymWLReal (LONGREAL lr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue