mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-08-21 06:29:07 +00:00
Better extern access
This commit is contained in:
parent
eb0c669452
commit
17fc60618a
@ -415,6 +415,11 @@ def id_lookup(nameptr, len)
|
||||
idptr = idmatch(nameptr, len, idlocal_tbl, locals)
|
||||
if not idptr
|
||||
idptr = idmatch(nameptr, len, idglobal_tbl, globals)
|
||||
if idptr
|
||||
if idptr=>idtype & EXTERN_TYPE
|
||||
idptr=>idtype = idptr=>idtype | ACCESSED_TYPE
|
||||
fin
|
||||
fin
|
||||
fin
|
||||
return idptr
|
||||
end
|
||||
@ -422,6 +427,11 @@ def idglobal_lookup(nameptr, len)
|
||||
word idptr
|
||||
|
||||
idptr = idmatch(nameptr, len, idglobal_tbl, globals)
|
||||
if idptr
|
||||
if idptr=>idtype & EXTERN_TYPE
|
||||
idptr=>idtype = idptr=>idtype | ACCESSED_TYPE
|
||||
fin
|
||||
fin
|
||||
return idptr
|
||||
end
|
||||
def iddata_add(namestr, len, type, size)#0
|
||||
|
@ -283,9 +283,6 @@ def parse_value(codeseq, rvalue)#2
|
||||
if type & FUNC_TYPE
|
||||
cfnparms = idptr->funcparms
|
||||
cfnvals = idptr->funcvals
|
||||
if type & EXTERN_TYPE
|
||||
idptr=>idtype = idptr=>idtype | ACCESSED_TYPE
|
||||
fin
|
||||
fin
|
||||
break
|
||||
is INT_TKN
|
||||
|
Loading…
Reference in New Issue
Block a user