dereferencing function pointers
This commit is contained in:
parent
3e6cacfb7c
commit
fd02968c23
3 changed files with 15 additions and 8 deletions
|
@ -1620,10 +1620,13 @@ function parse_expression
|
|||
return out
|
||||
:unary_dereference
|
||||
type_decay_array_to_pointer(*4a)
|
||||
; @TODO : dereferencing a function (annoyingly, p is the same as *p for function pointers)
|
||||
if *2p == TYPE2_FUNCTION_POINTER goto type_deref_fpointer
|
||||
if *1p != TYPE_POINTER goto unary_bad_type
|
||||
*4type = *4a + 1
|
||||
return out
|
||||
:type_deref_fpointer
|
||||
*4type = *4a
|
||||
return out
|
||||
:unary_type_logical_not
|
||||
type_decay_array_to_pointer(*4a)
|
||||
if *1p > TYPE_POINTER goto unary_bad_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue