1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-21 07:17:03 +00:00

Better extern access

This commit is contained in:
David Schmenk
2018-01-03 18:37:38 -08:00
parent eb0c669452
commit 17fc60618a
2 changed files with 10 additions and 3 deletions
+10
View File
@@ -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