#include "list.bi"
#include "hash.bi"
#include "error.bi"
Go to the source code of this file.
|
enum | FB_COMPOPT {
FB_COMPOPT_OUTTYPE,
FB_COMPOPT_PPONLY,
FB_COMPOPT_BACKEND,
FB_COMPOPT_TARGET,
FB_COMPOPT_CPUTYPE,
FB_COMPOPT_FPUTYPE,
FB_COMPOPT_FPMODE,
FB_COMPOPT_VECTORIZE,
FB_COMPOPT_OPTIMIZELEVEL,
FB_COMPOPT_ASMSYNTAX,
FB_COMPOPT_LANG,
FB_COMPOPT_FORCELANG,
FB_COMPOPT_DEBUG,
FB_COMPOPT_ERRORCHECK,
FB_COMPOPT_RESUMEERROR,
FB_COMPOPT_EXTRAERRCHECK,
FB_COMPOPT_PROFILE,
FB_COMPOPT_WARNINGLEVEL,
FB_COMPOPT_SHOWERROR,
FB_COMPOPT_MAXERRORS,
FB_COMPOPT_PEDANTICCHK,
FB_COMPOPT_GOSUBSETJMP,
FB_COMPOPT_EXPORT,
FB_COMPOPT_MSBITFIELDS,
FB_COMPOPT_MULTITHREADED,
FB_COMPOPT_STACKSIZE,
FB_COMPOPTIONS
} |
|
enum | FB_PDCHECK {
FB_PDCHECK_NONE = &h00000000,
FB_PDCHECK_ESCSEQ = &h00000001,
FB_PDCHECK_PARAMMODE = &h00000002,
FB_PDCHECK_PARAMSIZE = &h00000004,
FB_PDCHECK_NEXTVAR = &h00000008,
FB_PDCHECK_CASTTONONPTR = &h00000010,
FB_PDCHECK_SIGNEDNESS = &h00000020,
FB_PDCHECK_ALL = &hffffffff,
FB_PDCHECK_DEFAULT = FB_PDCHECK_ALL xor ( FB_PDCHECK_NEXTVAR or FB_PDCHECK_SIGNEDNESS )
} |
|
enum | FB_CPUTYPE {
FB_CPUTYPE_386 = 0,
FB_CPUTYPE_486,
FB_CPUTYPE_586,
FB_CPUTYPE_686,
FB_CPUTYPE_ATHLON,
FB_CPUTYPE_ATHLONXP,
FB_CPUTYPE_ATHLONFX,
FB_CPUTYPE_ATHLONSSE3,
FB_CPUTYPE_PENTIUMMMX,
FB_CPUTYPE_PENTIUM2,
FB_CPUTYPE_PENTIUM3,
FB_CPUTYPE_PENTIUM4,
FB_CPUTYPE_PENTIUMSSE3,
FB_CPUTYPE_X86_64,
FB_CPUTYPE_32,
FB_CPUTYPE_64,
FB_CPUTYPE_NATIVE,
FB_CPUTYPE__COUNT
} |
|
enum | FB_FPUTYPE { FB_FPUTYPE_FPU,
FB_FPUTYPE_SSE
} |
|
enum | FB_FPMODE { FB_FPMODE_PRECISE,
FB_FPMODE_FAST
} |
|
enum | FB_VECTORIZELEVEL { FB_VECTORIZE_NONE,
FB_VECTORIZE_NORMAL,
FB_VECTORIZE_INTRATREE,
FB_VECTORIZE_SUBEXPRESSION
} |
|
enum | FB_OUTTYPE { FB_OUTTYPE_EXECUTABLE,
FB_OUTTYPE_STATICLIB,
FB_OUTTYPE_DYNAMICLIB,
FB_OUTTYPE_OBJECT
} |
|
enum | FB_COMPTARGET {
FB_COMPTARGET_WIN32,
FB_COMPTARGET_CYGWIN,
FB_COMPTARGET_LINUX,
FB_COMPTARGET_DOS,
FB_COMPTARGET_XBOX,
FB_COMPTARGET_FREEBSD,
FB_COMPTARGET_OPENBSD,
FB_COMPTARGET_DARWIN,
FB_COMPTARGET_NETBSD,
FB_COMPTARGETS
} |
|
enum | FB_LANG {
FB_LANG_INVALID = -1,
FB_LANG_FB = 0,
FB_LANG_FB_DEPRECATED,
FB_LANG_FB_FBLITE,
FB_LANG_QB,
FB_LANGS,
FB_LANG_FB,
FB_LANG_FB_DEPRECATED,
FB_LANG_FB_FBLITE,
FB_LANG_QB,
FB_LANGS
} |
|
enum | FB_BACKEND { FB_BACKEND_GAS,
FB_BACKEND_GCC,
FB_BACKEND_LLVM,
FB_BACKENDS
} |
|
enum | FB_ASMSYNTAX { FB_ASMSYNTAX_INTEL = 0,
FB_ASMSYNTAX_ATT
} |
|
enum | FB_LANG_OPT {
FB_LANG_OPT_MT = &h00000001,
FB_LANG_OPT_SCOPE = &h00000002,
FB_LANG_OPT_NAMESPC = &h00000004,
FB_LANG_OPT_EXTERN = &h00000008,
FB_LANG_OPT_FUNCOVL = &h00000010,
FB_LANG_OPT_OPEROVL = &h00000020,
FB_LANG_OPT_CLASS = &h00000040,
FB_LANG_OPT_INITIALIZER = &h00000080,
FB_LANG_OPT_SINGERRLINE = &h00000100,
FB_LANG_OPT_ALWAYSOVL = &h00000400,
FB_LANG_OPT_AUTOVAR = &h00000800,
FB_LANG_OPT_GOSUB = &h00010000,
FB_LANG_OPT_CALL = &h00020000,
FB_LANG_OPT_LET = &h00040000,
FB_LANG_OPT_PERIODS = &h00080000,
FB_LANG_OPT_NUMLABEL = &h00100000,
FB_LANG_OPT_IMPLICIT = &h00200000,
FB_LANG_OPT_DEFTYPE = &h00400000,
FB_LANG_OPT_SUFFIX = &h00800000,
FB_LANG_OPT_METACMD = &h01000000,
FB_LANG_OPT_OPTION = &h02000000,
FB_LANG_OPT_ONERROR = &h08000000,
FB_LANG_OPT_QUIRKFUNC = &h20000000
} |
|
|
sub | fbInit (byval_as_integer ismain, byval_as_integer restarts) |
|
sub | fbEnd () |
|
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 | 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) |
|
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 () |
|
sub | fbIncludeFile (byval_as_zstring_ptr filename, byval_as_integer isonce) |
|
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_integer | fbIsCrossComp () |
|
sub | fbGetDefaultLibs (byval_as_TLIST_ptr dstlist, byval_as_THASH_ptr dsthash) |
|
sub | fbMainBegin () |
|
sub | fbMainEnd () |
|
function_as_FB_LANG_OPT | fbGetLangOptions (byval_as_FB_LANG lang) |
|
function_as_string | fbGetLangName (byval_as_FB_LANG lang) |
|
function_as_FB_LANG | fbGetLangId (byval_as_zstring_ptr txt) |
|
Definition at line 2 of file fb.bi.
#define ESCCHAR /* !"\27" */ |
#define fbLangIsSet |
( |
|
op) | |
/* (env.clopt.lang = op) */ |
#define fbLangOptIsSet |
( |
|
op) | |
/* ((env.lang.opt and (op)) <> 0) */ |
#define fbPdCheckIsSet |
( |
|
op) | |
/* ((env.clopt.pdcheckopt and (op)) <> 0) */ |
#define LFCHAR /* !"\n" */ |
#define NEWLINE /* !"\r\n" */ |
#define NEWLINE /* !"\n" */ |
#define QUOTE /* !"\"" */ |
#define RSLASH /* !"\\" */ |
#define TABCHAR /* !"\t" */ |
Enumerator |
---|
FB_ASMSYNTAX_INTEL |
|
FB_ASMSYNTAX_ATT |
|
Definition at line 650 of file fb.bi.
Enumerator |
---|
FB_BACKEND_GAS |
|
FB_BACKEND_GCC |
|
FB_BACKEND_LLVM |
|
FB_BACKENDS |
|
Definition at line 642 of file fb.bi.
Enumerator |
---|
FB_COMPOPT_OUTTYPE |
|
FB_COMPOPT_PPONLY |
|
FB_COMPOPT_BACKEND |
|
FB_COMPOPT_TARGET |
|
FB_COMPOPT_CPUTYPE |
|
FB_COMPOPT_FPUTYPE |
|
FB_COMPOPT_FPMODE |
|
FB_COMPOPT_VECTORIZE |
|
FB_COMPOPT_OPTIMIZELEVEL |
|
FB_COMPOPT_ASMSYNTAX |
|
FB_COMPOPT_LANG |
|
FB_COMPOPT_FORCELANG |
|
FB_COMPOPT_DEBUG |
|
FB_COMPOPT_ERRORCHECK |
|
FB_COMPOPT_RESUMEERROR |
|
FB_COMPOPT_EXTRAERRCHECK |
|
FB_COMPOPT_PROFILE |
|
FB_COMPOPT_WARNINGLEVEL |
|
FB_COMPOPT_SHOWERROR |
|
FB_COMPOPT_MAXERRORS |
|
FB_COMPOPT_PEDANTICCHK |
|
FB_COMPOPT_GOSUBSETJMP |
|
FB_COMPOPT_EXPORT |
|
FB_COMPOPT_MSBITFIELDS |
|
FB_COMPOPT_MULTITHREADED |
|
FB_COMPOPT_STACKSIZE |
|
FB_COMPOPTIONS |
|
Definition at line 498 of file fb.bi.
Enumerator |
---|
FB_COMPTARGET_WIN32 |
|
FB_COMPTARGET_CYGWIN |
|
FB_COMPTARGET_LINUX |
|
FB_COMPTARGET_DOS |
|
FB_COMPTARGET_XBOX |
|
FB_COMPTARGET_FREEBSD |
|
FB_COMPTARGET_OPENBSD |
|
FB_COMPTARGET_DARWIN |
|
FB_COMPTARGET_NETBSD |
|
FB_COMPTARGETS |
|
Definition at line 614 of file fb.bi.
Enumerator |
---|
FB_CPUTYPE_386 |
|
FB_CPUTYPE_486 |
|
FB_CPUTYPE_586 |
|
FB_CPUTYPE_686 |
|
FB_CPUTYPE_ATHLON |
|
FB_CPUTYPE_ATHLONXP |
|
FB_CPUTYPE_ATHLONFX |
|
FB_CPUTYPE_ATHLONSSE3 |
|
FB_CPUTYPE_PENTIUMMMX |
|
FB_CPUTYPE_PENTIUM2 |
|
FB_CPUTYPE_PENTIUM3 |
|
FB_CPUTYPE_PENTIUM4 |
|
FB_CPUTYPE_PENTIUMSSE3 |
|
FB_CPUTYPE_X86_64 |
|
FB_CPUTYPE_32 |
|
FB_CPUTYPE_64 |
|
FB_CPUTYPE_NATIVE |
|
FB_CPUTYPE__COUNT |
|
Definition at line 558 of file fb.bi.
Enumerator |
---|
FB_FPMODE_PRECISE |
|
FB_FPMODE_FAST |
|
Definition at line 586 of file fb.bi.
Enumerator |
---|
FB_FPUTYPE_FPU |
|
FB_FPUTYPE_SSE |
|
Definition at line 580 of file fb.bi.
Enumerator |
---|
FB_LANG_INVALID |
|
FB_LANG_FB |
|
FB_LANG_FB_DEPRECATED |
|
FB_LANG_FB_FBLITE |
|
FB_LANG_QB |
|
FB_LANGS |
|
FB_LANG_FB |
|
FB_LANG_FB_DEPRECATED |
|
FB_LANG_FB_FBLITE |
|
FB_LANG_QB |
|
FB_LANGS |
|
Definition at line 628 of file fb.bi.
Enumerator |
---|
FB_LANG_OPT_MT |
|
FB_LANG_OPT_SCOPE |
|
FB_LANG_OPT_NAMESPC |
|
FB_LANG_OPT_EXTERN |
|
FB_LANG_OPT_FUNCOVL |
|
FB_LANG_OPT_OPEROVL |
|
FB_LANG_OPT_CLASS |
|
FB_LANG_OPT_INITIALIZER |
|
FB_LANG_OPT_SINGERRLINE |
|
FB_LANG_OPT_ALWAYSOVL |
|
FB_LANG_OPT_AUTOVAR |
|
FB_LANG_OPT_GOSUB |
|
FB_LANG_OPT_CALL |
|
FB_LANG_OPT_LET |
|
FB_LANG_OPT_PERIODS |
|
FB_LANG_OPT_NUMLABEL |
|
FB_LANG_OPT_IMPLICIT |
|
FB_LANG_OPT_DEFTYPE |
|
FB_LANG_OPT_SUFFIX |
|
FB_LANG_OPT_METACMD |
|
FB_LANG_OPT_OPTION |
|
FB_LANG_OPT_ONERROR |
|
FB_LANG_OPT_QUIRKFUNC |
|
Definition at line 697 of file fb.bi.
Enumerator |
---|
FB_OUTTYPE_EXECUTABLE |
|
FB_OUTTYPE_STATICLIB |
|
FB_OUTTYPE_DYNAMICLIB |
|
FB_OUTTYPE_OBJECT |
|
Definition at line 604 of file fb.bi.
Enumerator |
---|
FB_PDCHECK_NONE |
|
FB_PDCHECK_ESCSEQ |
|
FB_PDCHECK_PARAMMODE |
|
FB_PDCHECK_PARAMSIZE |
|
FB_PDCHECK_NEXTVAR |
|
FB_PDCHECK_CASTTONONPTR |
|
FB_PDCHECK_SIGNEDNESS |
|
FB_PDCHECK_ALL |
|
FB_PDCHECK_DEFAULT |
|
Definition at line 541 of file fb.bi.
Enumerator |
---|
FB_VECTORIZE_NONE |
|
FB_VECTORIZE_NORMAL |
|
FB_VECTORIZE_INTRATREE |
|
FB_VECTORIZE_SUBEXPRESSION |
|
Definition at line 594 of file fb.bi.
sub fbAddIncludePath |
( |
byref_as_string |
path) | |
|
sub fbAddPreDefine |
( |
byref_as_string |
def) | |
|
sub fbAddPreInclude |
( |
byref_as_string |
file) | |
|
sub fbCompile |
( |
byval_as_zstring_ptr |
infname, |
|
|
byval_as_zstring_ptr |
outfname, |
|
|
byref_as_string |
pponlyfile, |
|
|
byval_as_integer |
ismain |
|
) |
| |
function_as_integer fbCpuTypeIs64bit |
( |
) | |
|
function_as_integer fbCpuTypeIsX86 |
( |
) | |
|
sub fbGetDefaultLibs |
( |
byval_as_TLIST_ptr |
dstlist, |
|
|
byval_as_THASH_ptr |
dsthash |
|
) |
| |
function_as_string fbGetEntryPoint |
( |
) | |
|
function_as_zstring_ptr fbGetFbcArch |
( |
) | |
|
function_as_zstring_ptr fbGetGccArch |
( |
) | |
|
function_as_FB_LANG fbGetLangId |
( |
byval_as_zstring_ptr |
txt) | |
|
function_as_string fbGetLangName |
( |
byval_as_FB_LANG |
lang) | |
|
function_as_FB_LANG_OPT fbGetLangOptions |
( |
byval_as_FB_LANG |
lang) | |
|
sub fbGetLibs |
( |
byval_as_TSTRSET_ptr |
libs, |
|
|
byval_as_TSTRSET_ptr |
libpaths |
|
) |
| |
function_as_string fbGetModuleEntry |
( |
) | |
|
function_as_zstring_ptr fbGetTargetId |
( |
) | |
|
function_as_integer fbIdentifyFbcArch |
( |
byref_as_string |
fbcarch) | |
|
function_as_integer fbIsCrossComp |
( |
) | |
|
sub fbSetLibs |
( |
byval_as_TSTRSET_ptr |
libs, |
|
|
byval_as_TSTRSET_ptr |
libpaths |
|
) |
| |
function_as_integer fbShouldContinue |
( |
) | |
|
function_as_integer fbShouldRestart |
( |
) | |
|
const VAR FB_BUILD_DATE = __DATE_ |
const VAR FB_DEFAULT_MAXERRORS = 10 |
const VAR FB_ERR_INFINITE = &h7fffffff |
const VAR FB_HOST = "win32" |
const VAR FB_HOST_EXEEXT = ".exe" |
const VAR FB_INFOSEC_BASNAME = "__fb_ct.bas" |
const VAR FB_INFOSEC_NAME = "fbctinf" |
const VAR FB_INFOSEC_OBJNAME = "__fb_ct.inf" |
const VAR FB_MAXARGRECLEVEL = 8 |
const VAR FB_MAXARRAYDIMS = 8 |
const VAR FB_MAXDEFINEARGS = 32 |
const VAR FB_MAXINCRECLEVEL = 16 |
const VAR FB_MAXLITLEN = 1024 |
const VAR FB_MAXNAMELEN = 64 |
const VAR FB_MAXNAMESPCRECLEVEL = 64 |
const VAR FB_MAXNUMLEN = 64 |
const VAR FB_MAXPATHLEN = 260 |
const VAR FB_MAXPRAGMARECLEVEL = 8 |
const VAR FB_MAXSCOPEDEPTH = 128 |
const VAR FB_SIGN = "FreeBASIC " & FB_VERSION |
const VAR FB_VER_MAJOR = 0 |
const VAR FB_VER_MINOR = 91 |
const VAR FB_VER_PATCH = 0 |