mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-24 20:31:12 +00:00
Clarify pointers returning from functions
This commit is contained in:
parent
06a7f9d0e3
commit
ee04be4c5a
@ -692,7 +692,9 @@ int parse_value(int rvalue)
|
||||
{
|
||||
if (type & PTR_TYPE)
|
||||
{
|
||||
if (type & LOCAL_TYPE)
|
||||
if (type & FUNC_TYPE)
|
||||
emit_call(value, ref_type);
|
||||
else if (type & LOCAL_TYPE)
|
||||
(type & BYTE_TYPE) ? emit_llb(value + ref_offset) : emit_llw(value + ref_offset);
|
||||
else
|
||||
(type & BYTE_TYPE) ? emit_lab(value, ref_offset, ref_type) : emit_law(value, ref_offset, ref_type);
|
||||
|
@ -3406,7 +3406,9 @@ def parse_value(rvalue)
|
||||
emit_const(value)
|
||||
elsif type & ADDR_TYPE
|
||||
if type & PTR_TYPE
|
||||
if type & LOCAL_TYPE
|
||||
if type & FUNC_TYPE
|
||||
emit_call(value)
|
||||
elsif type & LOCAL_TYPE
|
||||
if type & BYTE_TYPE
|
||||
emit_llb(value + ref_offset)
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user