mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-08-21 21:29:08 +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)
|
idptr = idmatch(nameptr, len, idlocal_tbl, locals)
|
||||||
if not idptr
|
if not idptr
|
||||||
idptr = idmatch(nameptr, len, idglobal_tbl, globals)
|
idptr = idmatch(nameptr, len, idglobal_tbl, globals)
|
||||||
|
if idptr
|
||||||
|
if idptr=>idtype & EXTERN_TYPE
|
||||||
|
idptr=>idtype = idptr=>idtype | ACCESSED_TYPE
|
||||||
|
fin
|
||||||
|
fin
|
||||||
fin
|
fin
|
||||||
return idptr
|
return idptr
|
||||||
end
|
end
|
||||||
@ -422,6 +427,11 @@ def idglobal_lookup(nameptr, len)
|
|||||||
word idptr
|
word idptr
|
||||||
|
|
||||||
idptr = idmatch(nameptr, len, idglobal_tbl, globals)
|
idptr = idmatch(nameptr, len, idglobal_tbl, globals)
|
||||||
|
if idptr
|
||||||
|
if idptr=>idtype & EXTERN_TYPE
|
||||||
|
idptr=>idtype = idptr=>idtype | ACCESSED_TYPE
|
||||||
|
fin
|
||||||
|
fin
|
||||||
return idptr
|
return idptr
|
||||||
end
|
end
|
||||||
def iddata_add(namestr, len, type, size)#0
|
def iddata_add(namestr, len, type, size)#0
|
||||||
|
@ -283,9 +283,6 @@ def parse_value(codeseq, rvalue)#2
|
|||||||
if type & FUNC_TYPE
|
if type & FUNC_TYPE
|
||||||
cfnparms = idptr->funcparms
|
cfnparms = idptr->funcparms
|
||||||
cfnvals = idptr->funcvals
|
cfnvals = idptr->funcvals
|
||||||
if type & EXTERN_TYPE
|
|
||||||
idptr=>idtype = idptr=>idtype | ACCESSED_TYPE
|
|
||||||
fin
|
|
||||||
fin
|
fin
|
||||||
break
|
break
|
||||||
is INT_TKN
|
is INT_TKN
|
||||||
|
Loading…
Reference in New Issue
Block a user