FreeBASIC  0.91.0
parser-decl-var.bas File Reference
#include "fb.bi"
#include "fbint.bi"
#include "parser.bi"
#include "rtl.bi"
#include "ast.bi"
Include dependency graph for parser-decl-var.bas:

Go to the source code of this file.

Functions

sub hComplainIfAbstractClass (byval_as_integer dtype, byval_as_FBSYMBOL_ptr subtype)
 
sub hSymbolType (byref_as_integer dtype, byref_as_FBSYMBOL_ptr subtype, byref_as_longint lgt)
 
function_as_integer hCheckScope ()
 
function_as_integer cVariableDecl (byval_as_FB_SYMBATTRIB attrib)
 
private function_as_integer hIsConst (byval_as_integer dimensions, as_ASTNODE_ptr exprTB[+1])
 
private sub hVarExtToPub (byval_as_FBSYMBOL_ptr sym, byval_as_FB_SYMBATTRIB attrib)
 
private sub hCheckExternArrayDimensions (byval_as_FBSYMBOL_ptr sym, byval_as_zstring_ptr id, byval_as_integer dimensions, as_FBARRAYDIM dTB[+1])
 
private function_as_FBSYMBOL_ptr hDeclExternVar (byval_as_FBSYMBOL_ptr sym, byval_as_zstring_ptr id, byval_as_integer dtype, byval_as_FBSYMBOL_ptr subtype, byval_as_integer attrib, byval_as_integer addsuffix, byval_as_integer dimensions, as_FBARRAYDIM dTB[+1])
 
private function_as_FBSYMBOL_ptr hDeclStaticVar (byval_as_FBSYMBOL_ptr sym, byval_as_zstring_ptr id, byval_as_zstring_ptr idalias, byval_as_integer dtype, byval_as_FBSYMBOL_ptr subtype, byval_as_longint lgt, byval_as_integer addsuffix, byval_as_integer attrib, byval_as_integer dimensions, as_FBARRAYDIM dTB[+1])
 
private function_as_FBSYMBOL_ptr hDeclDynArray (byval_as_FBSYMBOL_ptr sym, byval_as_zstring_ptr id, byval_as_zstring_ptr idalias, byval_as_integer dtype, byval_as_FBSYMBOL_ptr subtype, byval_as_integer is_typeless, byval_as_longint lgt, byval_as_integer addsuffix, byval_as_integer attrib, byval_as_integer dimensions, byval_as_integer token)
 
private function_as_FBSYMCHAIN_ptr hGetId (byval_as_FBSYMBOL_ptr parent, byval_as_zstring_ptr id, byref_as_integer suffix, byval_as_FB_IDOPT options)
 
private function_as_FBSYMBOL_ptr hLookupVar (byval_as_FBSYMCHAIN_ptr chain_, byval_as_integer dtype, byval_as_integer is_typeless, byval_as_integer has_suffix)
 
private function_as_FBSYMBOL_ptr hLookupVarAndCheckParent (byval_as_FBSYMBOL_ptr parent, byval_as_FBSYMCHAIN_ptr chain_, byval_as_integer dtype, byval_as_integer is_typeless, byval_as_integer has_suffix, byval_as_integer is_decl)
 
private sub hMakeArrayDimTB (byval_as_integer dimensions, as_ASTNODE_ptr exprTB[+1], as_FBARRAYDIM dTB[+1])
 
private function_as_ASTNODE_ptr hVarInitDefault (byval_as_FBSYMBOL_ptr sym, byval_as_integer is_decl, byval_as_integer has_defctor)
 
function_as_integer hHasEllipsis (byval_as_FBSYMBOL_ptr sym)
 
private function_as_ASTNODE_ptr hVarInit (byval_as_FBSYMBOL_ptr sym, byval_as_integer isdecl)
 
function_as_ASTNODE_ptr hFlushDecl (byval_as_ASTNODE_ptr var_decl)
 
private function_as_ASTNODE_ptr hWrapInStaticFlag (byval_as_ASTNODE_ptr code)
 
private function_as_ASTNODE_ptr hCallStaticCtor (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr var_decl, byval_as_ASTNODE_ptr initree, byval_as_integer has_dtor)
 
private function_as_ASTNODE_ptr hCallGlobalCtor (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr var_decl, byval_as_ASTNODE_ptr initree, byval_as_integer has_dtor)
 
private function_as_ASTNODE_ptr hFlushInitializer (byval_as_FBSYMBOL_ptr sym, byval_as_ASTNODE_ptr var_decl, byval_as_ASTNODE_ptr initree, byval_as_integer has_dtor)
 
function_as_FBSYMBOL_ptr cVarDecl (byval_as_integer attrib, byval_as_integer dopreserve, byval_as_integer token, byval_as_integer is_fordecl)
 
private function_as_integer hMatchEllipsis ()
 
function_as_integer cStaticArrayDecl (byref_as_integer dimensions, as_FBARRAYDIM dTB[+1], byval_as_integer checkprnts[+1], byval_as_integer allow_ellipsis[+1])
 
private function_as_ASTNODE_ptr hIntExpr (byval_as_ASTNODE_ptr defaultexpr)
 
sub cArrayDecl (byref_as_integer dimensions, as_ASTNODE_ptr exprTB[+1])
 
sub cAutoVarDecl (byval_as_FB_SYMBATTRIB attrib)
 

Function Documentation

sub cArrayDecl ( byref_as_integer  dimensions,
as_ASTNODE_ptr  exprTB[+1] 
)

Definition at line 1775 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub cAutoVarDecl ( byval_as_FB_SYMBATTRIB  attrib)

Definition at line 1835 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer cStaticArrayDecl ( byref_as_integer  dimensions,
as_FBARRAYDIM  dTB[+1],
byval_as_integer  checkprnts[+1],
byval_as_integer  allow_ellipsis[+1] 
)

Definition at line 1635 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_FBSYMBOL_ptr cVarDecl ( byval_as_integer  attrib,
byval_as_integer  dopreserve,
byval_as_integer  token,
byval_as_integer  is_fordecl 
)

Definition at line 1173 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer cVariableDecl ( byval_as_FB_SYMBATTRIB  attrib)

Definition at line 71 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hCallGlobalCtor ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  var_decl,
byval_as_ASTNODE_ptr  initree,
byval_as_integer  has_dtor 
)

Definition at line 1064 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hCallStaticCtor ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  var_decl,
byval_as_ASTNODE_ptr  initree,
byval_as_integer  has_dtor 
)

Definition at line 1026 of file parser-decl-var.bas.

Here is the call graph for this function:

private sub hCheckExternArrayDimensions ( byval_as_FBSYMBOL_ptr  sym,
byval_as_zstring_ptr  id,
byval_as_integer  dimensions,
as_FBARRAYDIM  dTB[+1] 
)

Definition at line 267 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer hCheckScope ( )

Definition at line 53 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub hComplainIfAbstractClass ( byval_as_integer  dtype,
byval_as_FBSYMBOL_ptr  subtype 
)

Definition at line 13 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_FBSYMBOL_ptr hDeclDynArray ( byval_as_FBSYMBOL_ptr  sym,
byval_as_zstring_ptr  id,
byval_as_zstring_ptr  idalias,
byval_as_integer  dtype,
byval_as_FBSYMBOL_ptr  subtype,
byval_as_integer  is_typeless,
byval_as_longint  lgt,
byval_as_integer  addsuffix,
byval_as_integer  attrib,
byval_as_integer  dimensions,
byval_as_integer  token 
)

Definition at line 425 of file parser-decl-var.bas.

Here is the call graph for this function:

private function_as_FBSYMBOL_ptr hDeclExternVar ( byval_as_FBSYMBOL_ptr  sym,
byval_as_zstring_ptr  id,
byval_as_integer  dtype,
byval_as_FBSYMBOL_ptr  subtype,
byval_as_integer  attrib,
byval_as_integer  addsuffix,
byval_as_integer  dimensions,
as_FBARRAYDIM  dTB[+1] 
)

Definition at line 307 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_FBSYMBOL_ptr hDeclStaticVar ( byval_as_FBSYMBOL_ptr  sym,
byval_as_zstring_ptr  id,
byval_as_zstring_ptr  idalias,
byval_as_integer  dtype,
byval_as_FBSYMBOL_ptr  subtype,
byval_as_longint  lgt,
byval_as_integer  addsuffix,
byval_as_integer  attrib,
byval_as_integer  dimensions,
as_FBARRAYDIM  dTB[+1] 
)

Definition at line 373 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_ASTNODE_ptr hFlushDecl ( byval_as_ASTNODE_ptr  var_decl)

Definition at line 980 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hFlushInitializer ( byval_as_FBSYMBOL_ptr  sym,
byval_as_ASTNODE_ptr  var_decl,
byval_as_ASTNODE_ptr  initree,
byval_as_integer  has_dtor 
)

Definition at line 1090 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_FBSYMCHAIN_ptr hGetId ( byval_as_FBSYMBOL_ptr  parent,
byval_as_zstring_ptr  id,
byref_as_integer  suffix,
byval_as_FB_IDOPT  options 
)

Definition at line 565 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer hHasEllipsis ( byval_as_FBSYMBOL_ptr  sym)

Definition at line 818 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hIntExpr ( byval_as_ASTNODE_ptr  defaultexpr)

Definition at line 1736 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_integer hIsConst ( byval_as_integer  dimensions,
as_ASTNODE_ptr  exprTB[+1] 
)

Definition at line 211 of file parser-decl-var.bas.

Here is the caller graph for this function:

private function_as_FBSYMBOL_ptr hLookupVar ( byval_as_FBSYMCHAIN_ptr  chain_,
byval_as_integer  dtype,
byval_as_integer  is_typeless,
byval_as_integer  has_suffix 
)

Definition at line 655 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_FBSYMBOL_ptr hLookupVarAndCheckParent ( byval_as_FBSYMBOL_ptr  parent,
byval_as_FBSYMCHAIN_ptr  chain_,
byval_as_integer  dtype,
byval_as_integer  is_typeless,
byval_as_integer  has_suffix,
byval_as_integer  is_decl 
)

Definition at line 684 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hMakeArrayDimTB ( byval_as_integer  dimensions,
as_ASTNODE_ptr  exprTB[+1],
as_FBARRAYDIM  dTB[+1] 
)

Definition at line 733 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_integer hMatchEllipsis ( )

Definition at line 1610 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub hSymbolType ( byref_as_integer  dtype,
byref_as_FBSYMBOL_ptr  subtype,
byref_as_longint  lgt 
)

Definition at line 27 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hVarExtToPub ( byval_as_FBSYMBOL_ptr  sym,
byval_as_FB_SYMBATTRIB  attrib 
)

Definition at line 232 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hVarInit ( byval_as_FBSYMBOL_ptr  sym,
byval_as_integer  isdecl 
)

Definition at line 836 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hVarInitDefault ( byval_as_FBSYMBOL_ptr  sym,
byval_as_integer  is_decl,
byval_as_integer  has_defctor 
)

Definition at line 772 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_ASTNODE_ptr hWrapInStaticFlag ( byval_as_ASTNODE_ptr  code)

Definition at line 997 of file parser-decl-var.bas.

Here is the call graph for this function:

Here is the caller graph for this function: