FreeBASIC  0.91.0
ast-node-conv.bas File Reference
#include "fb.bi"
#include "fbint.bi"
#include "ir.bi"
#include "rtl.bi"
#include "ast.bi"
Include dependency graph for ast-node-conv.bas:

Go to the source code of this file.

Macros

#define hDoGlobOpOverload(to_dtype, to_subtype, node)
 

Functions

private sub hConstConv (byval_as_integer todtype, byval_as_ASTNODE_ptr l)
 
private function_as_integer hGetTypeMismatchErrMsg (byval_as_AST_CONVOPT options)
 
private function_as_integer hCheckPtr (byval_as_integer to_dtype, byval_as_FBSYMBOL_ptr to_subtype, byval_as_integer expr_dtype, byval_as_ASTNODE_ptr expr, byval_as_AST_CONVOPT options)
 
function_as_integer astCheckCONV (byval_as_integer to_dtype, byval_as_FBSYMBOL_ptr to_subtype, byval_as_ASTNODE_ptr l)
 
function_as_ASTNODE_ptr astNewCONV (byval_as_integer to_dtype, byval_as_FBSYMBOL_ptr to_subtype, byval_as_ASTNODE_ptr l, byval_as_AST_CONVOPT options, byval_as_integer_ptr perrmsg)
 
function_as_ASTNODE_ptr astNewOvlCONV (byval_as_integer to_dtype, byval_as_FBSYMBOL_ptr to_subtype, byval_as_ASTNODE_ptr l)
 
sub astUpdateCONVFD2FS (byval_as_ASTNODE_ptr n, byval_as_integer to_dtype, byval_as_integer is_expr)
 
function_as_IRVREG_ptr astLoadCONV (byval_as_ASTNODE_ptr n)
 

Macro Definition Documentation

#define hDoGlobOpOverload (   to_dtype,
  to_subtype,
  node 
)
Value:
/* (multi line FreeBasic #MACRO)
scope
dim as FBSYMBOL ptr proc = any
dim as FB_ERRMSG err_num = any
proc = symbFindCastOvlProc( to_dtype, to_subtype, node, @err_num )
if( proc <> NULL ) then
'' build a proc call
return astBuildCall( proc, l )
else
if( err_num <> FB_ERRMSG_OK ) then
return NULL
end if
end if
end scope
#endmacro */

Definition at line 271 of file ast-node-conv.bas.

Function Documentation

function_as_integer astCheckCONV ( byval_as_integer  to_dtype,
byval_as_FBSYMBOL_ptr  to_subtype,
byval_as_ASTNODE_ptr  l 
)

Definition at line 224 of file ast-node-conv.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_IRVREG_ptr astLoadCONV ( byval_as_ASTNODE_ptr  n)

Definition at line 546 of file ast-node-conv.bas.

Here is the call graph for this function:

function_as_ASTNODE_ptr astNewCONV ( byval_as_integer  to_dtype,
byval_as_FBSYMBOL_ptr  to_subtype,
byval_as_ASTNODE_ptr  l,
byval_as_AST_CONVOPT  options,
byval_as_integer_ptr  perrmsg 
)

Definition at line 290 of file ast-node-conv.bas.

Here is the call graph for this function:

function_as_ASTNODE_ptr astNewOvlCONV ( byval_as_integer  to_dtype,
byval_as_FBSYMBOL_ptr  to_subtype,
byval_as_ASTNODE_ptr  l 
)

Definition at line 489 of file ast-node-conv.bas.

Here is the caller graph for this function:

sub astUpdateCONVFD2FS ( byval_as_ASTNODE_ptr  n,
byval_as_integer  to_dtype,
byval_as_integer  is_expr 
)

Definition at line 504 of file ast-node-conv.bas.

private function_as_integer hCheckPtr ( byval_as_integer  to_dtype,
byval_as_FBSYMBOL_ptr  to_subtype,
byval_as_integer  expr_dtype,
byval_as_ASTNODE_ptr  expr,
byval_as_AST_CONVOPT  options 
)

Definition at line 108 of file ast-node-conv.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hConstConv ( byval_as_integer  todtype,
byval_as_ASTNODE_ptr  l 
)

Definition at line 12 of file ast-node-conv.bas.

Here is the caller graph for this function:

private function_as_integer hGetTypeMismatchErrMsg ( byval_as_AST_CONVOPT  options)

Definition at line 99 of file ast-node-conv.bas.

Here is the caller graph for this function: