FreeBASIC  0.91.0
fb.bas File Reference
#include "fb.bi"
#include "fbint.bi"
#include "parser.bi"
#include "lex.bi"
#include "rtl.bi"
#include "ast.bi"
#include "ir.bi"
#include "objinfo.bi"
Include dependency graph for fb.bas:

Go to the source code of this file.

Data Structures

class  FB_LANG_INFO
 
class  FBCPUTYPEINFO
 

Functions

sub parserInit ()
 
sub parserEnd ()
 
sub parserSetCtx ()
 
private function_as_zstring_ptr hFindIncFile (byval_as_THASH_ptr incfilehash, byval_as_zstring_ptr filename)
 
private function_as_zstring_ptr hAddIncFile (byval_as_THASH_ptr incfilehash, byval_as_zstring_ptr filename)
 
function_as_FB_LANG_OPT fbGetLangOptions (byval_as_FB_LANG lang)
 
function_as_string fbGetLangName (byval_as_FB_LANG lang)
 
sub fbInit (byval_as_integer ismain, byval_as_integer restarts)
 
sub fbEnd ()
 
private sub hUpdateLangOptions ()
 
private sub hUpdateTargetOptions ()
 
private sub hUpdateBackendOptions ()
 
sub fbGlobalInit ()
 
sub fbAddIncludePath (byref_as_string path)
 
sub fbAddPreDefine (byref_as_string def)
 
sub fbAddPreInclude (byref_as_string file)
 
sub fbSetOption (byval_as_integer opt, byval_as_integer value)
 
function_as_integer fbGetOption (byval_as_integer opt)
 
sub fbChangeOption (byval_as_integer opt, byval_as_integer value)
 
function_as_integer fbIsCrossComp ()
 
function_as_zstring_ptr fbGetTargetId ()
 
function_as_zstring_ptr fbGetGccArch ()
 
function_as_zstring_ptr fbGetFbcArch ()
 
function_as_integer fbCpuTypeIs64bit ()
 
function_as_integer fbCpuTypeIsX86 ()
 
function_as_integer fbIdentifyFbcArch (byref_as_string fbcarch)
 
function_as_string fbGetEntryPoint ()
 
function_as_string fbGetModuleEntry ()
 
function_as_string fbGetInputFileParentDir ()
 
sub fbAddLib (byval_as_zstring_ptr libname)
 
sub fbAddLibPath (byval_as_zstring_ptr path)
 
private sub fbParsePreDefines ()
 
private sub fbParsePreIncludes ()
 
private sub hAppendFbctinf (byval_as_zstring_ptr value)
 
private sub hEmitObjinfo ()
 
sub fbCompile (byval_as_zstring_ptr infname, byval_as_zstring_ptr outfname, byref_as_string pponlyfile, byval_as_integer ismain)
 
function_as_integer fbShouldRestart ()
 
function_as_integer fbShouldContinue ()
 
sub fbSetLibs (byval_as_TSTRSET_ptr libs, byval_as_TSTRSET_ptr libpaths)
 
sub fbGetLibs (byval_as_TSTRSET_ptr libs, byval_as_TSTRSET_ptr libpaths)
 
sub fbPragmaOnce ()
 
private function_as_integer is_rootpath (byref_as_zstring_ptr path)
 
private function_as_integer get_rootpath_len (byval_as_zstring_ptr path)
 
private function_as_integer solve_path (byval_as_zstring_ptr path)
 
sub fbIncludeFile (byval_as_zstring_ptr filename, byval_as_integer isonce)
 
function_as_FB_LANG fbGetLangId (byval_as_zstring_ptr txt)
 

Variables

FBFILE infileTb [+1]
 
FB_LANG_INFO langTb [toFB_LANGS+1] =
 
FBTARGET targetinfo [toFB_COMPTARGETS+1] =
 
FBCPUTYPEINFO cputypeinfo [toFB_CPUTYPE__COUNT+1] =
 

Function Documentation

sub fbAddIncludePath ( byref_as_string  path)

Definition at line 457 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbAddLib ( byval_as_zstring_ptr  libname)

Definition at line 759 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbAddLibPath ( byval_as_zstring_ptr  path)

Definition at line 763 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbAddPreDefine ( byref_as_string  def)

Definition at line 461 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbAddPreInclude ( byref_as_string  file)

Definition at line 465 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbChangeOption ( byval_as_integer  opt,
byval_as_integer  value 
)

Definition at line 603 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbCompile ( byval_as_zstring_ptr  infname,
byval_as_zstring_ptr  outfname,
byref_as_string  pponlyfile,
byval_as_integer  ismain 
)

Definition at line 857 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer fbCpuTypeIs64bit ( )

Definition at line 675 of file fb.bas.

function_as_integer fbCpuTypeIsX86 ( )

Definition at line 679 of file fb.bas.

sub fbEnd ( )

Definition at line 378 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_string fbGetEntryPoint ( )

Definition at line 723 of file fb.bas.

Here is the caller graph for this function:

function_as_zstring_ptr fbGetFbcArch ( )

Definition at line 671 of file fb.bas.

Here is the caller graph for this function:

function_as_zstring_ptr fbGetGccArch ( )

Definition at line 667 of file fb.bas.

Here is the caller graph for this function:

function_as_string fbGetInputFileParentDir ( )

Definition at line 746 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_FB_LANG fbGetLangId ( byval_as_zstring_ptr  txt)

Definition at line 1233 of file fb.bas.

Here is the caller graph for this function:

function_as_string fbGetLangName ( byval_as_FB_LANG  lang)

Definition at line 300 of file fb.bas.

Here is the caller graph for this function:

function_as_FB_LANG_OPT fbGetLangOptions ( byval_as_FB_LANG  lang)

Definition at line 290 of file fb.bas.

Here is the caller graph for this function:

sub fbGetLibs ( byval_as_TSTRSET_ptr  libs,
byval_as_TSTRSET_ptr  libpaths 
)

Definition at line 955 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_string fbGetModuleEntry ( )

Definition at line 735 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer fbGetOption ( byval_as_integer  opt)

Definition at line 537 of file fb.bas.

Here is the caller graph for this function:

function_as_zstring_ptr fbGetTargetId ( )

Definition at line 663 of file fb.bas.

Here is the caller graph for this function:

sub fbGlobalInit ( )

Definition at line 415 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer fbIdentifyFbcArch ( byref_as_string  fbcarch)

Definition at line 683 of file fb.bas.

Here is the caller graph for this function:

sub fbIncludeFile ( byval_as_zstring_ptr  filename,
byval_as_integer  isonce 
)

Definition at line 1120 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbInit ( byval_as_integer  ismain,
byval_as_integer  restarts 
)

Definition at line 308 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer fbIsCrossComp ( )

Definition at line 656 of file fb.bas.

Here is the caller graph for this function:

private sub fbParsePreDefines ( )

Definition at line 767 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub fbParsePreIncludes ( )

Definition at line 793 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbPragmaOnce ( )

Definition at line 960 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbSetLibs ( byval_as_TSTRSET_ptr  libs,
byval_as_TSTRSET_ptr  libpaths 
)

Definition at line 950 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub fbSetOption ( byval_as_integer  opt,
byval_as_integer  value 
)

Definition at line 469 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer fbShouldContinue ( )

Definition at line 946 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

function_as_integer fbShouldRestart ( )

Definition at line 942 of file fb.bas.

Here is the caller graph for this function:

private function_as_integer get_rootpath_len ( byval_as_zstring_ptr  path)

Definition at line 997 of file fb.bas.

Here is the caller graph for this function:

private function_as_zstring_ptr hAddIncFile ( byval_as_THASH_ptr  incfilehash,
byval_as_zstring_ptr  filename 
)

Definition at line 259 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hAppendFbctinf ( byval_as_zstring_ptr  value)

Definition at line 801 of file fb.bas.

Here is the caller graph for this function:

private sub hEmitObjinfo ( )

Definition at line 809 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_zstring_ptr hFindIncFile ( byval_as_THASH_ptr  incfilehash,
byval_as_zstring_ptr  filename 
)

Definition at line 240 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private sub hUpdateBackendOptions ( )

Definition at line 405 of file fb.bas.

Here is the caller graph for this function:

private sub hUpdateLangOptions ( )

Definition at line 397 of file fb.bas.

Here is the caller graph for this function:

private sub hUpdateTargetOptions ( )

Definition at line 401 of file fb.bas.

Here is the caller graph for this function:

private function_as_integer is_rootpath ( byref_as_zstring_ptr  path)

Definition at line 969 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub parserEnd ( )

Definition at line 67 of file parser-toplevel.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub parserInit ( )

Definition at line 56 of file parser-toplevel.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

sub parserSetCtx ( )

Definition at line 32 of file parser-toplevel.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

private function_as_integer solve_path ( byval_as_zstring_ptr  path)

Definition at line 1032 of file fb.bas.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

FBCPUTYPEINFO cputypeinfo[toFB_CPUTYPE__COUNT+1] =

Definition at line 213 of file fb.bas.

FBFILE infileTb[+1]

Definition at line 27 of file fb.bas.

FB_LANG_INFO langTb[toFB_LANGS+1] =

Definition at line 29 of file fb.bas.

FBTARGET targetinfo[toFB_COMPTARGETS+1] =

Definition at line 105 of file fb.bas.