Skip to content

Instantly share code, notes, and snippets.

@jayrm
Created January 4, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayrm/edcc8fa4e41339be3e3f71c2c561a87a to your computer and use it in GitHub Desktop.
Save jayrm/edcc8fa4e41339be3e3f71c2c561a87a to your computer and use it in GitHub Desktop.
FreeBASIC 1.06.0 run time library API as of 2019-01-04
'' FreeBASIC 1.06.0 run time library API as of 2019-01-04
#define fbcall
#define wchar wstring
#define wchar_ret wstring
#define bydesc ()
'' -------- rtlArray --------
declare function fb_ArrayRedimEx cdecl ( bydesc as any, byval as const uinteger, byval as const long, byval as const long, byval as const uinteger, ... ) as long
declare function fb_ArrayRedimPresvEx cdecl ( bydesc as any, byval as const uinteger, byval as const long, byval as const long, byval as const uinteger, ... ) as long
declare function fb_ArrayRedimObj cdecl ( bydesc as any, byval as const uinteger, byval as any ptr, byval as any ptr, byval as const uinteger, ... ) as long
declare function fb_ArrayRedimPresvObj cdecl ( bydesc as any, byval as const uinteger, byval as any ptr, byval as any ptr, byval as const uinteger, ... ) as long
declare function fb_ArrayRedimTo fbcall ( bydesc as any, bydesc as any, byval as const long, byval as any ptr, byval as any ptr ) as long
declare sub fb_ArrayDestructObj fbcall ( bydesc as any, byval as any ptr )
declare sub fb_ArrayDestructStr fbcall ( bydesc as any )
declare function fb_ArrayClear fbcall ( bydesc as any, byval as const long ) as long
declare function fb_ArrayClearObj fbcall ( bydesc as any, byval as any ptr, byval as any ptr, byval as const long ) as long
declare function fb_ArrayErase fbcall ( bydesc as any, byval as const long ) as long
declare function fb_ArrayEraseObj fbcall ( bydesc as any, byval as any ptr ) as long
declare sub fb_ArrayStrErase fbcall ( bydesc as any )
declare function fb_ArrayLBound fbcall ( bydesc as const any, byval as const integer ) as integer
declare function fb_ArrayUBound fbcall ( bydesc as const any, byval as const integer ) as integer
declare function fb_ArraySngBoundChk fbcall ( byval as const uinteger, byval as const uinteger, byval as const long, byval as const zstring ptr ) as any ptr
declare function fb_ArrayBoundChk fbcall ( byval as const integer, byval as const integer, byval as const integer, byval as const long, byval as const zstring ptr ) as any ptr
'' -------- rtlConsole --------
declare function fb_ConsoleView fbcall ( byval as const long = 0, byval as const long = 0 ) as long
declare function fb_ReadXY fbcall ( byval as const long, byval as const long, byval as const long = 0 ) as ulong
declare function fb_Width fbcall ( byval as const long = -1, byval as const long = -1 ) as long
declare function fb_WidthDev fbcall ( byref as const string, byval as const long = -1 ) as long
declare function fb_WidthFile fbcall ( byval as const long, byval as const long = -1 ) as long
declare function locate alias "fb_Locate" fbcall ( byval as const long = 0, byval as const long = 0, byval as const long = -1, byval as const long = 0, byval as const long = 0 ) as long
declare function pos alias "fb_GetX" fbcall ( ) as long
declare function pos alias "fb_Pos" fbcall ( byval as const long ) as long
declare function csrlin alias "fb_GetY" fbcall ( ) as long
declare sub cls alias "fb_Cls" fbcall ( byval as const long = -65536 )
declare function fb_Color fbcall ( byval as const long, byval as const long, byval as const long ) as long
declare function inkey alias "fb_Inkey" fbcall ( ) as string
#if __FB_LANG__ = "qb"
declare function inkey alias "fb_InkeyQB" fbcall ( ) as string
#endif
declare function getkey alias "fb_Getkey" fbcall ( ) as long
declare function pcopy alias "fb_PageCopy" fbcall ( byval as const long = -1, byval as const long = -1 ) as long
declare function fb_PageSet fbcall ( byval as const long = -1, byval as const long = -1 ) as long
'' -------- rtlData --------
declare sub fb_DataRestore fbcall ( byval as any ptr )
declare sub fb_DataReadStr fbcall ( byref as any, byval as const integer, byval as const long = 1 )
declare sub fb_DataReadWstr fbcall ( byval as wchar ptr, byval as const integer )
declare sub fb_DataReadBool fbcall ( byref as boolean )
declare sub fb_DataReadByte fbcall ( byref as byte )
declare sub fb_DataReadShort fbcall ( byref as short )
declare sub fb_DataReadInt fbcall ( byref as long )
declare sub fb_DataReadLongint fbcall ( byref as longint )
declare sub fb_DataReadUByte fbcall ( byref as ubyte )
declare sub fb_DataReadUShort fbcall ( byref as ushort )
declare sub fb_DataReadUInt fbcall ( byref as ulong )
declare sub fb_DataReadULongint fbcall ( byref as ulongint )
declare sub fb_DataReadSingle fbcall ( byref as single )
declare sub fb_DataReadDouble fbcall ( byref as double )
'' -------- rtlError --------
declare function fb_ErrorThrowAt cdecl ( byval as const long, byval as const zstring ptr, byval as const any ptr, byval as const any ptr ) as any ptr
declare function fb_ErrorThrowEx cdecl ( byval as const long, byval as const long, byval as const zstring ptr, byval as const any ptr, byval as const any ptr ) as any ptr
declare function fb_ErrorSetHandler fbcall ( byval as any ptr ) as any ptr
declare function fb_ErrorGetNum fbcall ( ) as long
declare function fb_ErrorSetNum fbcall ( byval as const long ) as long
declare function fb_ErrorResume cdecl ( ) as any ptr
declare function fb_ErrorResumeNext cdecl ( ) as any ptr
declare function erl alias "fb_ErrorGetLineNum" fbcall ( ) as long
declare function erfn alias "fb_ErrorGetFuncName" fbcall ( ) as zstring ptr
declare function ermn alias "fb_ErrorGetModName" fbcall ( ) as zstring ptr
declare function fb_ErrorSetModName fbcall ( byval as const zstring ptr ) as zstring ptr
declare function fb_ErrorSetFuncName fbcall ( byval as const zstring ptr ) as zstring ptr
declare sub fb_Assert fbcall ( byval as const zstring ptr, byval as const integer, byval as const zstring ptr, byval as const zstring ptr )
declare sub fb_Assert alias "fb_AssertW" fbcall ( byval as const zstring ptr, byval as const long, byval as const zstring ptr, byval as const wchar ptr )
declare sub fb_AssertWarn fbcall ( byval as const zstring ptr, byval as const long, byval as const zstring ptr, byval as const zstring ptr )
declare sub fb_AssertWarn alias "fb_AssertWarnW" fbcall ( byval as const zstring ptr, byval as const long, byval as const zstring ptr, byval as const wchar ptr )
'' -------- rtlFile --------
declare function fb_FileOpen fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long ) as long
declare function fb_FileOpenEncod fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenShort fbcall ( byref as const string, byval as const long, byref as const string, byval as const long, byref as const string, byref as const string ) as long
declare function fb_FileOpenCons fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenErr fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenPipe fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenScrn fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenLpt fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenCom fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long, byval as const zstring ptr ) as long
declare function fb_FileOpenQB fbcall ( byref as const string, byval as const ulong, byval as const ulong, byval as const ulong, byval as const long, byval as const long ) as long
declare function fb_FileClose fbcall ( byval as const long ) as long
declare function fb_FileCloseAll fbcall ( ) as long
declare function fb_FilePut fbcall ( byval as const long, byval as const long, byref as const any, byval as const uinteger ) as long
declare function fb_FilePutLarge fbcall ( byval as const long, byval as const longint, byref as const any, byval as const uinteger ) as long
declare function fb_FilePutStr fbcall ( byval as const long, byval as const long, byref as const any, byval as const integer ) as long
declare function fb_FilePutStrLarge fbcall ( byval as const long, byval as const longint, byref as const any, byval as const integer ) as long
declare function fb_FilePutArray fbcall ( byval as const long, byval as const long, bydesc as const any ) as long
declare function fb_FilePutArrayLarge fbcall ( byval as const long, byval as const longint, bydesc as const any ) as long
declare function fb_FileGet fbcall ( byval as const long, byval as const long, byref as any, byval as const uinteger ) as long
declare function fb_FileGetLarge fbcall ( byval as const long, byval as const longint, byref as any, byval as const uinteger ) as long
declare function fb_FileGetStr fbcall ( byval as const long, byval as const long, byref as any, byval as const integer ) as long
declare function fb_FileGetWstr fbcall ( byval as const long, byval as const long, byref as wchar, byval as const integer ) as long
declare function fb_FileGetStrLarge fbcall ( byval as const long, byval as const longint, byref as any, byval as const integer ) as long
declare function fb_FileGetWstrLarge fbcall ( byval as const long, byval as const longint, byref as wchar, byval as const integer ) as long
declare function fb_FileGetArray fbcall ( byval as const long, byval as const long, bydesc as any ) as long
declare function fb_FileGetArrayLarge fbcall ( byval as const long, byval as const longint, bydesc as any ) as long
declare function fb_FileGetIOB fbcall ( byval as const long, byval as const long, byref as any, byval as const uinteger, byref as uinteger ) as long
declare function fb_FileGetLargeIOB fbcall ( byval as const long, byval as const longint, byref as any, byval as const uinteger, byref as uinteger ) as long
declare function fb_FileGetStrIOB fbcall ( byval as const long, byval as const long, byref as any, byval as const integer, byref as uinteger ) as long
declare function fb_FileGetWstrIOB fbcall ( byval as const long, byval as const long, byref as wchar, byval as const integer, byref as uinteger ) as long
declare function fb_FileGetStrLargeIOB fbcall ( byval as const long, byval as const longint, byref as any, byval as const integer, byref as uinteger ) as long
declare function fb_FileGetWstrLargeIOB fbcall ( byval as const long, byval as const longint, byref as wchar, byval as const integer, byref as uinteger ) as long
declare function fb_FileGetArrayIOB fbcall ( byval as const long, byval as const long, bydesc as any, byref as uinteger ) as long
declare function fb_FileGetArrayLargeIOB fbcall ( byval as const long, byval as const longint, bydesc as any, byref as uinteger ) as long
declare function fb_FileTell fbcall ( byval as const long ) as longint
declare function fb_FileSeek fbcall ( byval as const long, byval as const long ) as long
declare function fb_FileSeekLarge fbcall ( byval as const long, byval as const longint ) as long
declare function fb_FileStrInput fbcall ( byval as const integer, byval as const long = 0 ) as string
declare function fb_FileLineInput fbcall ( byval as const long, byref as any, byval as const integer, byval as const long = 1 ) as long
declare function fb_FileLineInputWstr fbcall ( byval as const long, byval as wchar ptr, byval as const integer ) as long
declare function fb_LineInput fbcall ( byref as const string, byref as any, byval as const integer, byval as const long, byval as const long, byval as const long = 1 ) as long
declare function fb_LineInputWstr fbcall ( byval as const wchar ptr, byval as wchar ptr, byval as const integer, byval as const long, byval as const long ) as long
declare function fb_FileInput fbcall ( byval as const long ) as long
declare function fb_ConsoleInput fbcall ( byref as const string, byval as const long, byval as const long ) as long
declare function fb_InputBool fbcall ( byref as boolean ) as long
declare function fb_InputByte fbcall ( byref as byte ) as long
declare function fb_InputUbyte fbcall ( byref as ubyte ) as long
declare function fb_InputShort fbcall ( byref as short ) as long
declare function fb_InputUshort fbcall ( byref as ushort ) as long
declare function fb_InputInt fbcall ( byref as long ) as long
declare function fb_InputUint fbcall ( byref as ulong ) as long
declare function fb_InputLongint fbcall ( byref as longint ) as long
declare function fb_InputUlongint fbcall ( byref as ulongint ) as long
declare function fb_InputSingle fbcall ( byref as single ) as long
declare function fb_InputDouble fbcall ( byref as double ) as long
declare function fb_InputString fbcall ( byref as any, byval as const integer, byval as const long = 1 ) as long
declare function fb_InputWstr fbcall ( byval as wchar ptr, byval as const integer ) as long
declare function fb_FileLock fbcall ( byval as const long, byval as const ulong, byval as const ulong = 0 ) as long
declare function fb_FileLockLarge fbcall ( byval as const long, byval as const longint, byval as const longint = 0 ) as long
declare function fb_FileUnlock fbcall ( byval as const long, byval as const ulong, byval as const ulong = 0 ) as long
declare function fb_FileUnlockLarge fbcall ( byval as const long, byval as const longint, byval as const longint = 0 ) as long
declare function fb_rename alias "rename" cdecl ( byval as const zstring ptr, byval as const zstring ptr ) as long
declare function fb_FileWstrInput fbcall ( byval as const integer, byval as const long = 0 ) as wchar_ret
declare function freefile alias "fb_FileFree" fbcall ( ) as long
declare function eof alias "fb_FileEof" fbcall ( byval as const long ) as long
declare function kill alias "fb_FileKill" fbcall ( byref as const string ) as long
declare sub reset alias "fb_FileReset" fbcall ( )
declare sub reset alias "fb_FileResetEx" fbcall ( byval as const long )
declare function lof alias "fb_FileSize" fbcall ( byval as const long ) as longint
declare function loc alias "fb_FileLocation" fbcall ( byval as const long ) as longint
declare function lpos alias "fb_LPos" fbcall ( byval as const long ) as long
'' -------- rtlGfx --------
declare sub fb_GfxPset fbcall ( byval as any ptr = 0, byval as const single, byval as const single, byval as const ulong, byval as const long, byval as const long )
declare function fb_GfxPoint fbcall ( byval as any ptr = 0, byval as const single, byval as const single ) as integer
declare sub fb_GfxLine fbcall ( byval as any ptr = 0, byval as const single, byval as const single, byval as const single, byval as const single, byval as const ulong, byval as const long, byval as const ulong = 65535, byval as const long )
declare sub fb_GfxEllipse fbcall ( byval as any ptr = 0, byval as const single, byval as const single, byval as const single, byval as const ulong, byval as const single, byval as const single, byval as const single, byval as const long, byval as const long )
declare sub fb_GfxPaint fbcall ( byval as any ptr = 0, byval as const single, byval as const single, byval as const ulong, byval as const ulong, byref as const string, byval as const long, byval as const long )
declare sub fb_GfxDraw fbcall ( byval as any ptr = 0, byref as const string )
declare function fb_GfxDrawString fbcall ( byval as any ptr = 0, byval as const single, byval as const single, byval as const long, byref as const string, byval as const ulong, byval as const any ptr = 0, byval as const long, byval as any ptr, byval as any ptr = 0, byval as any ptr ) as integer
declare sub fb_GfxView fbcall ( byval as const long = -32768, byval as const long = -32768, byval as const long = -32768, byval as const long = -32768, byval as const ulong = 0, byval as const ulong = 0, byval as const long )
declare sub fb_GfxWindow fbcall ( byval as const single = 0, byval as const single = 0, byval as const single = 0, byval as const single = 0, byval as const long = 0 )
declare sub fb_GfxPalette fbcall ( byval as const long = -1, byval as const long = -1, byval as const long = -1, byval as const long = -1 )
declare sub fb_GfxPaletteUsing fbcall ( byval as const long ptr )
declare sub fb_GfxPaletteUsing64 fbcall ( byval as const longint ptr )
declare sub fb_GfxPaletteGet fbcall ( byval as const long = -1, byref as long, byref as long, byref as long )
declare sub fb_GfxPaletteGet64 fbcall ( byval as const long = -1, byref as longint, byref as longint, byref as longint )
declare sub fb_GfxPaletteGetUsing fbcall ( byval as long ptr )
declare sub fb_GfxPaletteGetUsing64 fbcall ( byval as longint ptr )
declare function fb_GfxPut fbcall ( byval as any ptr = 0, byval as const single, byval as const single, byval as const any ptr, byval as const long = -65536, byval as const long = -65536, byval as const long = -65536, byval as const long = -65536, byval as const long, byval as const long, byval as any ptr, byval as const long = -1, byval as any ptr = 0, byval as any ptr = 0 ) as long
declare function fb_GfxGet fbcall ( byval as const any ptr = 0, byval as const single, byval as const single, byval as const single, byval as const single, byval as any ptr, byval as const long, bydesc as const any ) as long
#if __FB_LANG__ <> "fb"
declare function fb_GfxGetQB fbcall ( byval as const any ptr = 0, byval as const single, byval as const single, byval as const single, byval as const single, byval as any ptr, byval as const long, bydesc as any ) as long
#endif
declare function fb_GfxScreen fbcall ( byval as const long, byval as const long = 8, byval as const long = 0, byval as const long = 0, byval as const long = 0 ) as long
declare function fb_GfxScreenQB fbcall ( byval as const long, byval as const long = -1, byval as const long = -1 ) as long
declare function screenres alias "fb_GfxScreenRes" fbcall ( byval as const long, byval as const long, byval as const long = 8, byval as const long = 1, byval as const long = 0, byval as const long = 0 ) as long
declare function bload alias "fb_GfxBload" fbcall ( byref as const string, byval as any ptr = 0, byval as any ptr = 0 ) as long
#if __FB_LANG__ <> "fb"
declare function bload alias "fb_GfxBloadQB" fbcall ( byref as const string, byval as any ptr = 0, byval as any ptr = 0 ) as long
#endif
declare function bsave alias "fb_GfxBsave" fbcall ( byref as const string, byval as const any ptr, byval as const ulong = 0, byval as const any ptr = 0 ) as long
declare function bsave alias "fb_GfxBsaveEx" fbcall ( byref as const string, byval as const any ptr, byval as const ulong = 0, byval as const any ptr, byval as const long ) as long
declare function flip alias "fb_GfxFlip" fbcall ( byval as const long = -1, byval as const long = -1 ) as long
declare function screencopy alias "fb_GfxFlip" fbcall ( byval as const long = -1, byval as const long = -1 ) as long
declare function pointcoord alias "fb_GfxCursor" fbcall ( byval as const long ) as single
declare function pmap alias "fb_GfxPMap" fbcall ( byval as const single, byval as const long ) as single
declare function out alias "fb_Out" fbcall ( byval as const ushort, byval as const ubyte ) as long
declare function inp alias "fb_In" fbcall ( byval as const ushort ) as long
declare function wait alias "fb_Wait" fbcall ( byval as const ushort, byval as const long, byval as const long = 0 ) as long
declare function screensync alias "fb_GfxWaitVSync" fbcall ( ) as long
declare function screenset alias "fb_GfxPageSet" cdecl ( byval as const long = -1, byval as const long = -1 ) as long
declare sub screenlock alias "fb_GfxLock" fbcall ( )
declare sub screenunlock alias "fb_GfxUnlock" fbcall ( byval as const long = -1, byval as const long = -1 )
declare function screenptr alias "fb_GfxScreenPtr" fbcall ( ) as any ptr
declare sub windowtitle alias "fb_GfxSetWindowTitle" fbcall ( byref as const string )
declare function multikey alias "fb_Multikey" fbcall ( byval as const long ) as long
declare function getmouse alias "fb_GetMouse" fbcall ( byref as long, byref as long, byref as long = 0, byref as long = 0, byref as long = 0 ) as long
declare function getmouse alias "fb_GetMouse64" fbcall ( byref as longint, byref as longint, byref as longint = 0, byref as longint = 0, byref as longint = 0 ) as long
declare function setmouse alias "fb_SetMouse" fbcall ( byval as const long = -2147483648, byval as const long = -2147483648, byval as const long = -1, byval as const long = -1 ) as long
declare function getjoystick alias "fb_GfxGetJoystick" fbcall ( byval as const long, byref as integer = 0, byref as single = 0, byref as single = 0, byref as single = 0, byref as single = 0, byref as single = 0, byref as single = 0, byref as single = 0, byref as single = 0 ) as long
#if __FB_LANG__ = "qb"
declare function stick alias "fb_GfxStickQB" fbcall ( byval as const long ) as long
declare function strig alias "fb_GfxStrigQB" fbcall ( byval as const long ) as long
#endif
declare sub screeninfo alias "fb_GfxScreenInfo" fbcall ( byref as integer = 0, byref as integer = 0, byref as integer = 0, byref as integer = 0, byref as integer = 0, byref as integer = 0, byref as string = "" )
declare function screenlist alias "fb_GfxScreenList" fbcall ( byval as const long = 0 ) as long
declare function fb_GfxImageCreate fbcall ( byval as const long, byval as const long, byval as const ulong = 0, byval as const long = 0, byval as const long = 0 ) as any ptr
declare function fb_GfxImageCreateQB fbcall ( byval as const long, byval as const long, byval as const ulong = 0, byval as const long = 0, byval as const long = 0 ) as any ptr
declare sub imagedestroy alias "fb_GfxImageDestroy" fbcall ( byval as const any ptr )
declare function imageinfo alias "fb_GfxImageInfo" fbcall ( byval as const any ptr, byref as integer = 0, byref as integer = 0, byref as integer = 0, byref as integer = 0, byref as any ptr = 0, byref as integer = 0 ) as long
declare sub imageconvertrow alias "fb_GfxImageConvertRow" fbcall ( byval as const any ptr, byval as const long, byval as any ptr, byval as const long, byval as const long, byval as const long = 1 )
declare function screenevent alias "fb_GfxEvent" fbcall ( byval as any ptr = 0 ) as long
declare sub screencontrol alias "fb_GfxControl_s" fbcall ( byval as const long, byref as string )
declare sub screencontrol alias "fb_GfxControl_i" fbcall ( byval as const long, byref as integer = -2147483648, byref as integer = -2147483648, byref as integer = -2147483648, byref as integer = -2147483648 )
declare function screenglproc alias "fb_GfxGetGLProcAddress" fbcall ( byval as const zstring ptr ) as any ptr
declare sub fb_hPutTrans cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutPSet cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutPReset cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutAnd cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutOr cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutXor cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutAlpha cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutBlend cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutAdd cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
declare sub fb_hPutCustom cdecl ( byval as const ubyte ptr, byval as ubyte ptr, byval as const long, byval as const long, byval as const long, byval as const long, byval as const long, byval as any ptr, byval as any ptr )
'' -------- rtlMath --------
declare function fb___divdi3 alias "__divdi3" cdecl ( byval as longint, byval as longint ) as longint
declare function fb___udivdi3 alias "__udivdi3" cdecl ( byval as ulongint, byval as ulongint ) as ulongint
declare function fb___moddi3 alias "__moddi3" cdecl ( byval as longint, byval as longint ) as longint
declare function fb___umoddi3 alias "__umoddi3" cdecl ( byval as ulongint, byval as ulongint ) as ulongint
declare function fb___fixunsdfdi alias "__fixunsdfdi" cdecl ( byval as double ) as ulongint
declare function fb_Pow alias "pow" cdecl ( byval as double, byval as double ) as double
declare sub randomize alias "fb_Randomize" fbcall ( byval as double = -1, byval as long = 0 )
declare function rnd alias "fb_Rnd" fbcall ( byval as single = 1 ) as double
#if 0
declare function {asin} alias "asinf" cdecl ( byval as single ) as single
declare function {asin} alias "asin" cdecl ( byval as double ) as double
declare function {acos} alias "acosf" cdecl ( byval as single ) as single
declare function {acos} alias "acos" cdecl ( byval as double ) as double
declare function {tan} alias "tanf" cdecl ( byval as single ) as single
declare function {tan} alias "tan" cdecl ( byval as double ) as double
declare function {atan} alias "atanf" cdecl ( byval as single ) as single
declare function {atan} alias "atan" cdecl ( byval as double ) as double
declare function {abs} alias "abs" cdecl ( byval as long ) as long
declare function {abs} alias "llabs" cdecl ( byval as longint ) as longint
declare function {abs} alias "fabsf" cdecl ( byval as single ) as single
declare function {abs} alias "fabs" cdecl ( byval as double ) as double
declare function {sgn} alias "fb_SGNi" fbcall ( byval as long ) as long
declare function {sgn} alias "fb_SGNl" fbcall ( byval as longint ) as long
declare function {sgn} alias "fb_SGNSingle" fbcall ( byval as single ) as long
declare function {sgn} alias "fb_SGNDouble" fbcall ( byval as double ) as long
declare function {fix} alias "fb_FIXSingle" fbcall ( byval as single ) as single
declare function {fix} alias "fb_FIXDouble" fbcall ( byval as double ) as double
declare function {frac} alias "fb_FRACf" fbcall ( byval as single ) as single
declare function {frac} alias "fb_FRACd" fbcall ( byval as double ) as double
declare function {atan2} alias "atan2f" cdecl ( byval as single, byval as single ) as single
declare function {atan2} alias "atan2" cdecl ( byval as double, byval as double ) as double
#endif
'' -------- rtlMem --------
declare function fb_NullPtrChk fbcall ( byval as const any ptr, byval as const long, byval as const zstring ptr ) as any ptr
declare sub fb_MemSwap fbcall ( byref as any, byref as any, byval as const integer )
declare sub fb_MemCopyClear fbcall ( byref as any, byval as const integer, byref as const any, byval as const integer )
declare function fre alias "fb_GetMemAvail" fbcall ( byval as const long = 0 ) as uinteger
declare function allocate alias "malloc" cdecl ( byval as const uinteger ) as any ptr
declare function callocate alias "calloc" cdecl ( byval as const uinteger, byval as const uinteger = 1 ) as any ptr
declare function reallocate alias "realloc" cdecl ( byval as const any ptr, byval as const uinteger ) as any ptr
declare sub deallocate alias "free" cdecl ( byval as const any ptr )
declare function clear alias "memset" cdecl ( byref as any, byval as const long = 0, byval as const uinteger ) as any ptr
'' -------- rtlPrint --------
declare sub fb_PrintVoid fbcall ( byval as const long = 0, byval as const long )
declare sub fb_PrintBool fbcall ( byval as const long = 0, byval as const boolean, byval as const long )
declare sub fb_PrintByte fbcall ( byval as const long = 0, byval as const byte, byval as const long )
declare sub fb_PrintUByte fbcall ( byval as const long = 0, byval as const ubyte, byval as const long )
declare sub fb_PrintShort fbcall ( byval as const long = 0, byval as const short, byval as const long )
declare sub fb_PrintUShort fbcall ( byval as const long = 0, byval as const ushort, byval as const long )
declare sub fb_PrintInt fbcall ( byval as const long = 0, byval as const long, byval as const long )
declare sub fb_PrintUInt fbcall ( byval as const long = 0, byval as const ulong, byval as const long )
declare sub fb_PrintLongint fbcall ( byval as const long = 0, byval as const longint, byval as const long )
declare sub fb_PrintULongint fbcall ( byval as const long = 0, byval as const ulongint, byval as const long )
declare sub fb_PrintSingle fbcall ( byval as const long = 0, byval as const single, byval as const long )
declare sub fb_PrintDouble fbcall ( byval as const long = 0, byval as const double, byval as const long )
declare sub fb_PrintString fbcall ( byval as const long = 0, byref as const string, byval as const long )
declare sub fb_PrintWstr fbcall ( byval as const long = 0, byval as const wchar ptr, byval as const long )
declare sub fb_LPrintVoid fbcall ( byval as const long = 0, byval as const long )
declare sub fb_LPrintBool fbcall ( byval as const long = 0, byval as const boolean, byval as const long )
declare sub fb_LPrintByte fbcall ( byval as const long = 0, byval as const byte, byval as const long )
declare sub fb_LPrintUByte fbcall ( byval as const long = 0, byval as const ubyte, byval as const long )
declare sub fb_LPrintShort fbcall ( byval as const long = 0, byval as const short, byval as const long )
declare sub fb_LPrintUShort fbcall ( byval as const long = 0, byval as const ushort, byval as const long )
declare sub fb_LPrintInt fbcall ( byval as const long = 0, byval as const long, byval as const long )
declare sub fb_LPrintUInt fbcall ( byval as const long = 0, byval as const ulong, byval as const long )
declare sub fb_LPrintLongint fbcall ( byval as const long = 0, byval as const longint, byval as const long )
declare sub fb_LPrintULongint fbcall ( byval as const long = 0, byval as const ulongint, byval as const long )
declare sub fb_LPrintSingle fbcall ( byval as const long = 0, byval as const single, byval as const long )
declare sub fb_LPrintDouble fbcall ( byval as const long = 0, byval as const double, byval as const long )
declare sub fb_LPrintString fbcall ( byval as const long = 0, byref as const string, byval as const long )
declare sub fb_LPrintWstr fbcall ( byval as const long = 0, byval as const wchar ptr, byval as const long )
declare sub fb_PrintSPC fbcall ( byval as const long = 0, byval as const integer )
declare sub fb_PrintTab fbcall ( byval as const long = 0, byval as const long )
declare sub fb_WriteVoid fbcall ( byval as const long = 0, byval as const long )
declare sub fb_WriteBool fbcall ( byval as const long = 0, byval as const boolean, byval as const long )
declare sub fb_WriteByte fbcall ( byval as const long = 0, byval as const byte, byval as const long )
declare sub fb_WriteUByte fbcall ( byval as const long = 0, byval as const ubyte, byval as const long )
declare sub fb_WriteShort fbcall ( byval as const long = 0, byval as const short, byval as const long )
declare sub fb_WriteUShort fbcall ( byval as const long = 0, byval as const ushort, byval as const long )
declare sub fb_WriteInt fbcall ( byval as const long = 0, byval as const long, byval as const long )
declare sub fb_WriteUInt fbcall ( byval as const long = 0, byval as const ulong, byval as const long )
declare sub fb_WriteLongint fbcall ( byval as const long = 0, byval as const longint, byval as const long )
declare sub fb_WriteULongint fbcall ( byval as const long = 0, byval as const ulongint, byval as const long )
declare sub fb_WriteSingle fbcall ( byval as const long = 0, byval as const single, byval as const long )
declare sub fb_WriteDouble fbcall ( byval as const long = 0, byval as const double, byval as const long )
declare sub fb_WriteString fbcall ( byval as const long = 0, byref as const string, byval as const long )
declare sub fb_WriteWstr fbcall ( byval as const long = 0, byval as const wchar ptr, byval as const long )
declare function fb_PrintUsingInit fbcall ( byref as const string ) as long
declare function fb_PrintUsingStr fbcall ( byval as const long, byref as const string, byval as const long ) as long
declare function fb_PrintUsingWstr fbcall ( byval as const long, byval as const wchar ptr, byval as const long ) as long
declare function fb_PrintUsingSingle fbcall ( byval as const long, byval as const single, byval as const long ) as long
declare function fb_PrintUsingDouble fbcall ( byval as const long, byval as const double, byval as const long ) as long
declare function fb_PrintUsingLongint fbcall ( byval as const long, byval as const longint, byval as const long ) as long
declare function fb_PrintUsingULongint fbcall ( byval as const long, byval as const ulongint, byval as const long ) as long
declare function fb_PrintUsingBoolean fbcall ( byval as const long, byval as const boolean, byval as const long ) as long
declare function fb_PrintUsingEnd fbcall ( byval as const long ) as long
declare function fb_LPrintUsingInit fbcall ( byref as const string ) as long
'' -------- rtlProfile --------
declare sub fb__monstartup alias "_monstartup" cdecl ( )
#ifdef __FB_64BIT__
declare sub fb_mcount alias "_mcount" cdecl ( )
#else
declare sub fb_mcount alias "mcount" cdecl ( )
#endif
'' -------- rtlString --------
declare function fb_StrInit fbcall ( byref as any, byval as const integer, byref as const any, byval as const integer, byval as const long = 1 ) as string
declare function fb_WstrAssignToA_Init fbcall ( byref as any, byval as const integer, byval as const wchar ptr, byval as const integer ) as string
declare function fb_StrAssign fbcall ( byref as any, byval as const integer, byref as const any, byval as const integer, byval as const long = 1 ) as string
declare function fb_WstrAssign fbcall ( byval as wchar ptr, byval as const integer, byval as const wchar ptr ) as wchar ptr
declare function fb_WstrAssignFromA fbcall ( byval as wchar ptr, byval as const integer, byref as const any, byval as const integer ) as wchar ptr
declare function fb_WstrAssignToA fbcall ( byref as any, byval as const integer, byval as const wchar ptr, byval as const long ) as string
declare sub fb_StrDelete fbcall ( byref as const string )
declare function fb_hStrDelTemp fbcall ( byref as const string ) as long
declare sub fb_WstrDelete fbcall ( byval as const wchar ptr )
declare function fb_StrConcat fbcall ( byref as string, byref as const any, byval as const integer, byref as const any, byval as const integer ) as string
declare function fb_WstrConcat fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare function fb_WstrConcatWA fbcall ( byval as const wchar ptr, byref as const any, byval as const integer ) as wchar_ret
declare function fb_WstrConcatAW fbcall ( byref as const any, byval as const integer, byval as const wchar ptr ) as wchar_ret
declare function fb_StrCompare fbcall ( byref as const any, byval as const integer, byref as const any, byval as const integer ) as long
declare function fb_WstrCompare fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as long
declare function fb_StrConcatAssign fbcall ( byref as any, byval as const integer, byref as const any, byval as const integer, byval as const long = 1 ) as string
declare function fb_WstrConcatAssign fbcall ( byval as wchar ptr, byval as const integer, byval as const wchar ptr ) as wchar ptr
declare function fb_StrAllocTempResult fbcall ( byref as const string ) as string
declare function fb_StrAllocTempDescF fbcall ( byref as const any, byval as const integer ) as string
declare function fb_StrAllocTempDescZ fbcall ( byval as const zstring ptr ) as string
declare function fb_StrAllocTempDescZEx fbcall ( byval as const zstring ptr, byval as const integer ) as string
declare function fb_WstrAlloc fbcall ( byval as const integer ) as wchar ptr
declare function fb_BoolToStr fbcall ( byval as const boolean ) as string
declare function fb_IntToStr fbcall ( byval as const long ) as string
#if __FB_LANG__ = "qb"
declare function fb_IntToStrQB fbcall ( byval as const long ) as string
declare function fb_UIntToStrQB fbcall ( byval as const ulong ) as string
declare function fb_LongintToStrQB fbcall ( byval as const longint ) as string
declare function fb_ULongintToStrQB fbcall ( byval as const ulongint ) as string
declare function fb_FloatToStrQB fbcall ( byval as const single ) as string
declare function fb_DoubleToStrQB fbcall ( byval as const double ) as string
#endif
declare function fb_BoolToWstr fbcall ( byval as const boolean ) as wchar_ret
declare function fb_IntToWstr fbcall ( byval as const long ) as wchar_ret
declare function fb_UIntToStr fbcall ( byval as const ulong ) as string
declare function fb_UIntToWstr fbcall ( byval as ulong ) as wchar_ret
declare function fb_LongintToStr fbcall ( byval as const longint ) as string
declare function fb_LongintToWstr fbcall ( byval as const longint ) as wchar_ret
declare function fb_ULongintToStr fbcall ( byval as const ulongint ) as string
declare function fb_ULongintToWstr fbcall ( byval as const ulongint ) as wchar_ret
declare function fb_FloatToStr fbcall ( byval as const single ) as string
declare function fb_FloatToWstr fbcall ( byval as const single ) as wchar_ret
declare function fb_DoubleToStr fbcall ( byval as const double ) as string
declare function fb_DoubleToWstr fbcall ( byval as const double ) as wchar_ret
declare function fb_WstrToStr fbcall ( byval as const wchar ptr ) as string
declare function fb_StrToWstr fbcall ( byval as const zstring ptr ) as wchar_ret
declare function fb_StrMid fbcall ( byref as const string, byval as const integer, byval as const integer ) as string
declare function fb_WstrMid fbcall ( byval as const wchar ptr, byval as const integer, byval as const integer ) as wchar_ret
declare sub fb_StrAssignMid fbcall ( byref as string, byval as const integer, byval as const integer, byref as const string )
declare sub fb_WstrAssignMid fbcall ( byval as wchar ptr, byval as const integer, byval as const integer, byval as const integer, byval as const wchar ptr )
declare function fb_StrFill1 fbcall ( byval as const integer, byval as const long ) as string
declare function fb_WstrFill1 fbcall ( byval as const integer, byval as const long ) as wchar_ret
declare function fb_StrFill2 fbcall ( byval as const integer, byref as const string ) as string
declare function fb_WstrFill2 fbcall ( byval as const integer, byval as const wchar ptr ) as wchar_ret
declare function fb_StrLen fbcall ( byref as const any, byval as const integer ) as integer
declare function fb_WstrLen fbcall ( byval as const wchar ptr ) as integer
declare sub fb_StrLset fbcall ( byref as string, byref as const string )
declare sub fb_WstrLset fbcall ( byval as wchar ptr, byval as const wchar ptr )
declare sub fb_StrRset fbcall ( byref as string, byref as const string )
declare sub fb_WstrRset fbcall ( byval as wchar ptr, byval as const wchar ptr )
declare function fb_ASC fbcall ( byref as const string, byval as const integer = 0 ) as ulong
declare function fb_WstrAsc fbcall ( byval as const wchar ptr, byval as const integer = 0 ) as ulong
declare function fb_CHR cdecl ( byval as const long, ... ) as string
declare function fb_WstrChr cdecl ( byval as const long, ... ) as wchar_ret
declare function fb_StrInstr fbcall ( byval as const integer, byref as const string, byref as const string ) as integer
declare function fb_WstrInstr fbcall ( byval as const integer, byval as const wchar ptr, byval as const wchar ptr ) as integer
declare function fb_StrInstrAny fbcall ( byval as const integer, byref as const string, byref as const string ) as integer
declare function fb_WstrInstrAny fbcall ( byval as const integer, byval as const wchar ptr, byval as const wchar ptr ) as integer
declare function fb_StrInstrRev fbcall ( byref as const string, byref as const string, byval as const integer ) as integer
declare function fb_WstrInstrRev fbcall ( byval as const wchar ptr, byval as const wchar ptr, byval as const integer ) as integer
declare function fb_StrInstrRevAny fbcall ( byref as const string, byref as const string, byval as const integer ) as integer
declare function fb_WstrInstrRevAny fbcall ( byval as const wchar ptr, byval as const wchar ptr, byval as const integer ) as integer
declare function fb_TRIM fbcall ( byref as const string ) as string
declare function fb_WstrTrim fbcall ( byval as const wchar ptr ) as wchar_ret
declare function fb_TrimAny fbcall ( byref as const string, byref as const string ) as string
declare function fb_WstrTrimAny fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare function fb_TrimEx fbcall ( byref as const string, byref as const string ) as string
declare function fb_WstrTrimEx fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare function fb_RTRIM fbcall ( byref as const string ) as string
declare function fb_WstrRTrim fbcall ( byval as const wchar ptr ) as wchar_ret
declare function fb_RTrimAny fbcall ( byref as const string, byref as const string ) as string
declare function fb_WstrRTrimAny fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare function fb_RTrimEx fbcall ( byref as const string, byref as const string ) as string
declare function fb_WstrRTrimEx fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare function fb_LTRIM fbcall ( byref as const string ) as string
declare function fb_WstrLTrim fbcall ( byval as const wchar ptr ) as wchar_ret
declare function fb_LTrimAny fbcall ( byref as const string, byref as const string ) as string
declare function fb_WstrLTrimAny fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare function fb_LTrimEx fbcall ( byref as const string, byref as const string ) as string
declare function fb_WstrLTrimEx fbcall ( byval as const wchar ptr, byval as const wchar ptr ) as wchar_ret
declare sub fb_StrSwap fbcall ( byref as any, byval as const integer, byval as const long, byref as any, byval as const integer, byval as const long )
declare sub fb_WstrSwap fbcall ( byval as wchar ptr, byval as const integer, byval as wchar ptr, byval as const integer )
declare function val alias "fb_VAL" fbcall ( byref as const string ) as double
declare function val alias "fb_WstrVal" fbcall ( byref as const wchar ) as double
declare function fb_VALBOOL fbcall ( byref as const string ) as boolean
declare function fb_VALBOOL alias "fb_WstrValBool" fbcall ( byref as const wchar ) as boolean
declare function valint alias "fb_VALINT" fbcall ( byref as const string ) as long
declare function valint alias "fb_WstrValInt" fbcall ( byref as const wchar ) as long
declare function valuint alias "fb_VALUINT" fbcall ( byref as const string ) as ulong
declare function valuint alias "fb_WstrValUInt" fbcall ( byref as const wchar ) as ulong
declare function vallng alias "fb_VALLNG" fbcall ( byref as const string ) as longint
declare function vallng alias "fb_WstrValLng" fbcall ( byref as const wchar ) as longint
declare function valulng alias "fb_VALULNG" fbcall ( byref as const string ) as ulongint
declare function valulng alias "fb_WstrValULng" fbcall ( byref as const wchar ) as ulongint
declare function hex alias "fb_HEX_b" fbcall ( byval as const ubyte ) as string
declare function hex alias "fb_HEX_s" fbcall ( byval as const ushort ) as string
declare function hex alias "fb_HEX_i" fbcall ( byval as const ulong ) as string
declare function hex alias "fb_HEX_l" fbcall ( byval as const ulongint ) as string
declare function hex alias "fb_HEX_p" fbcall ( byval as const any ptr ) as string
declare function hex alias "fb_HEXEx_b" fbcall ( byval as const ubyte, byval as const long ) as string
declare function hex alias "fb_HEXEx_s" fbcall ( byval as const ushort, byval as const long ) as string
declare function hex alias "fb_HEXEx_i" fbcall ( byval as const ulong, byval as const long ) as string
declare function hex alias "fb_HEXEx_l" fbcall ( byval as const ulongint, byval as const long ) as string
declare function hex alias "fb_HEXEx_p" fbcall ( byval as const any ptr, byval as const long ) as string
declare function whex alias "fb_WstrHex_b" fbcall ( byval as const ubyte ) as wchar_ret
declare function whex alias "fb_WstrHex_s" fbcall ( byval as const ushort ) as wchar_ret
declare function whex alias "fb_WstrHex_i" fbcall ( byval as const ulong ) as wchar_ret
declare function whex alias "fb_WstrHex_l" fbcall ( byval as const ulongint ) as wchar_ret
declare function whex alias "fb_WstrHex_p" fbcall ( byval as const any ptr ) as wchar_ret
declare function whex alias "fb_WstrHexEx_b" fbcall ( byval as const ubyte, byval as const long ) as wchar_ret
declare function whex alias "fb_WstrHexEx_s" fbcall ( byval as const ushort, byval as const long ) as wchar_ret
declare function whex alias "fb_WstrHexEx_i" fbcall ( byval as const ulong, byval as const long ) as wchar_ret
declare function whex alias "fb_WstrHexEx_l" fbcall ( byval as const ulongint, byval as const long ) as wchar_ret
declare function whex alias "fb_WstrHexEx_p" fbcall ( byval as const any ptr, byval as const long ) as wchar_ret
declare function oct alias "fb_OCT_b" fbcall ( byval as const ubyte ) as string
declare function oct alias "fb_OCT_s" fbcall ( byval as const ushort ) as string
declare function oct alias "fb_OCT_i" fbcall ( byval as const ulong ) as string
declare function oct alias "fb_OCT_l" fbcall ( byval as const ulongint ) as string
declare function oct alias "fb_OCT_p" fbcall ( byval as const any ptr ) as string
declare function oct alias "fb_OCTEx_b" fbcall ( byval as const ubyte, byval as const long ) as string
declare function oct alias "fb_OCTEx_s" fbcall ( byval as const ushort, byval as const long ) as string
declare function oct alias "fb_OCTEx_i" fbcall ( byval as const ulong, byval as const long ) as string
declare function oct alias "fb_OCTEx_l" fbcall ( byval as const ulongint, byval as const long ) as string
declare function oct alias "fb_OCTEx_p" fbcall ( byval as const any ptr, byval as const long ) as string
declare function woct alias "fb_WstrOct_b" fbcall ( byval as const ubyte ) as wchar_ret
declare function woct alias "fb_WstrOct_s" fbcall ( byval as const ushort ) as wchar_ret
declare function woct alias "fb_WstrOct_i" fbcall ( byval as const ulong ) as wchar_ret
declare function woct alias "fb_WstrOct_l" fbcall ( byval as const ulongint ) as wchar_ret
declare function woct alias "fb_WstrOct_p" fbcall ( byval as const any ptr ) as wchar_ret
declare function woct alias "fb_WstrOctEx_b" fbcall ( byval as const ubyte, byval as const long ) as wchar_ret
declare function woct alias "fb_WstrOctEx_s" fbcall ( byval as const ushort, byval as const long ) as wchar_ret
declare function woct alias "fb_WstrOctEx_i" fbcall ( byval as const ulong, byval as const long ) as wchar_ret
declare function woct alias "fb_WstrOctEx_l" fbcall ( byval as const ulongint, byval as const long ) as wchar_ret
declare function woct alias "fb_WstrOctEx_p" fbcall ( byval as const any ptr, byval as const long ) as wchar_ret
declare function bin alias "fb_BIN_b" fbcall ( byval as const ubyte ) as string
declare function bin alias "fb_BIN_s" fbcall ( byval as const ushort ) as string
declare function bin alias "fb_BIN_i" fbcall ( byval as const ulong ) as string
declare function bin alias "fb_BIN_l" fbcall ( byval as const ulongint ) as string
declare function bin alias "fb_BIN_p" fbcall ( byval as const any ptr ) as string
declare function bin alias "fb_BINEx_b" fbcall ( byval as const ubyte, byval as const long ) as string
declare function bin alias "fb_BINEx_s" fbcall ( byval as const ushort, byval as const long ) as string
declare function bin alias "fb_BINEx_i" fbcall ( byval as const ulong, byval as const long ) as string
declare function bin alias "fb_BINEx_l" fbcall ( byval as const ulongint, byval as const long ) as string
declare function bin alias "fb_BINEx_p" fbcall ( byval as const any ptr, byval as const long ) as string
declare function wbin alias "fb_WstrBin_b" fbcall ( byval as const ubyte ) as wchar_ret
declare function wbin alias "fb_WstrBin_s" fbcall ( byval as const ushort ) as wchar_ret
declare function wbin alias "fb_WstrBin_i" fbcall ( byval as const ulong ) as wchar_ret
declare function wbin alias "fb_WstrBin_l" fbcall ( byval as const ulongint ) as wchar_ret
declare function wbin alias "fb_WstrBin_p" fbcall ( byval as const any ptr ) as wchar_ret
declare function wbin alias "fb_WstrBinEx_b" fbcall ( byval as const ubyte, byval as const long ) as wchar_ret
declare function wbin alias "fb_WstrBinEx_s" fbcall ( byval as const ushort, byval as const long ) as wchar_ret
declare function wbin alias "fb_WstrBinEx_i" fbcall ( byval as const ulong, byval as const long ) as wchar_ret
declare function wbin alias "fb_WstrBinEx_l" fbcall ( byval as const ulongint, byval as const long ) as wchar_ret
declare function wbin alias "fb_WstrBinEx_p" fbcall ( byval as const any ptr, byval as const long ) as wchar_ret
declare function fb_MKD fbcall ( byval as const double ) as string
declare function fb_MKS fbcall ( byval as const single ) as string
declare function fb_MKSHORT fbcall ( byval as const short ) as string
declare function fb_MKI fbcall ( byval as const integer ) as string
declare function fb_MKL fbcall ( byval as const long ) as string
declare function fb_MKLONGINT fbcall ( byval as const longint ) as string
declare function left alias "fb_LEFT" fbcall ( byref as const string, byval as const integer ) as string
declare function left alias "fb_WstrLeft" fbcall ( byref as const wchar, byval as const integer ) as wchar_ret
declare function right alias "fb_RIGHT" fbcall ( byref as const string, byval as const integer ) as string
declare function right alias "fb_WstrRight" fbcall ( byref as const wchar, byval as const integer ) as wchar_ret
declare function space alias "fb_SPACE" fbcall ( byval as const integer ) as string
declare function wspace alias "fb_WstrSpace" fbcall ( byval as const integer ) as wchar_ret
declare function fb_StrLcase2 fbcall ( byref as const string, byval as const long = 0 ) as string
declare function fb_WstrLcase2 fbcall ( byref as const wchar, byval as const long = 0 ) as wchar_ret
declare function fb_StrUcase2 fbcall ( byref as const string, byval as const long = 0 ) as string
declare function fb_WstrUcase2 fbcall ( byref as const wchar, byval as const long = 0 ) as wchar_ret
declare function fb_CVD alias "fb_CVD" fbcall ( byref as const string ) as double
declare function fb_CVS alias "fb_CVS" fbcall ( byref as const string ) as single
declare function fb_CVSHORT alias "fb_CVSHORT" fbcall ( byref as const string ) as short
declare function fb_CVL fbcall ( byref as const string ) as long
declare function fb_CVLONGINT alias "fb_CVLONGINT" fbcall ( byref as const string ) as longint
declare function fb_CVDFROMLONGINT alias "fb_CVDFROMLONGINT" fbcall ( byval as const longint ) as double
declare function fb_CVSFROML alias "fb_CVSFROML" fbcall ( byval as const long ) as single
declare function fb_CVLFROMS alias "fb_CVLFROMS" fbcall ( byval as const single ) as long
declare function fb_CVLONGINTFROMD alias "fb_CVLONGINTFROMD" fbcall ( byval as const double ) as longint
'' -------- rtlSystem --------
#ifndef __FB_64BIT__
declare function fb_CpuDetect cdecl ( ) as ulong
#endif
declare sub fb_Init fbcall ( byval as long, byval as zstring ptr ptr, byval as long )
declare sub fb_InitSignals fbcall ( )
declare sub fb___main alias "__main" cdecl ( )
declare sub fb_End fbcall ( byval as const long )
declare function fb_atexit alias "atexit" cdecl ( byval as any ptr ) as long
declare function command alias "fb_Command" fbcall ( byval as const long = -1 ) as string
declare function curdir alias "fb_CurDir" fbcall ( ) as string
declare function exepath alias "fb_ExePath" fbcall ( ) as string
declare function timer alias "fb_Timer" fbcall ( ) as double
declare function time alias "fb_Time" fbcall ( ) as string
declare function date alias "fb_Date" fbcall ( ) as string
declare function shell alias "fb_Shell" fbcall ( byref as const string = "" ) as long
declare sub system alias "fb_End" fbcall ( byval as const long = 0 )
declare sub stop alias "fb_End" fbcall ( byval as const long = 0 )
declare function run alias "fb_Run" fbcall ( byref as const string, byref as const string = "" ) as long
declare function chain alias "fb_Chain" fbcall ( byref as const string ) as long
declare function exec alias "fb_Exec" fbcall ( byref as const string, byref as const string ) as long
declare function environ alias "fb_GetEnviron" fbcall ( byref as const string ) as string
declare function setenviron alias "fb_SetEnviron" fbcall ( byref as const string ) as long
declare sub sleep alias "fb_Sleep" fbcall ( byval as const long = -1 )
#if __FB_LANG__ = "qb"
declare sub sleep alias "fb_SleepQB" fbcall ( byval as const long = -1 )
#endif
declare function sleep alias "fb_SleepEx" fbcall ( byval as const long, byval as const long ) as long
declare function dir alias "fb_DirNext" fbcall ( byval as long ptr = 0 ) as string
declare function dir alias "fb_DirNext64" fbcall ( byval as longint ptr ) as string
declare function dir alias "fb_DirNext" fbcall ( byref as long ) as string
declare function dir alias "fb_DirNext64" fbcall ( byref as longint ) as string
declare function dir alias "fb_Dir" fbcall ( byref as const string, byval as const long = 33, byval as long ptr = 0 ) as string
declare function dir alias "fb_Dir64" fbcall ( byref as const string, byval as const long = 33, byval as longint ptr ) as string
declare function dir alias "fb_Dir" fbcall ( byref as const string, byval as const long = 33, byref as long ) as string
declare function dir alias "fb_Dir64" fbcall ( byref as const string, byval as const long = 33, byref as longint ) as string
declare function settime alias "fb_SetTime" fbcall ( byref as const string ) as long
declare function setdate alias "fb_SetDate" fbcall ( byref as const string ) as long
declare function threadcreate alias "fb_ThreadCreate" fbcall ( byval as sub ( byval as any ptr ), byval as any ptr = 0, byval as const integer = 0 ) as any ptr
declare sub threadwait alias "fb_ThreadWait" fbcall ( byval as any ptr )
declare function fb_ThreadCall cdecl ( byval as any ptr, byval as const long, byval as const integer, byval as const long, ... ) as any ptr
declare function mutexcreate alias "fb_MutexCreate" fbcall ( ) as any ptr
declare sub mutexdestroy alias "fb_MutexDestroy" fbcall ( byval as any ptr )
declare sub mutexlock alias "fb_MutexLock" fbcall ( byval as any ptr )
declare sub mutexunlock alias "fb_MutexUnlock" fbcall ( byval as any ptr )
declare function condcreate alias "fb_CondCreate" fbcall ( ) as any ptr
declare sub conddestroy alias "fb_CondDestroy" fbcall ( byval as any ptr )
declare sub condsignal alias "fb_CondSignal" fbcall ( byval as any ptr )
declare sub condbroadcast alias "fb_CondBroadcast" fbcall ( byval as any ptr )
declare sub condwait alias "fb_CondWait" fbcall ( byval as any ptr, byval as any ptr )
declare function dylibload alias "fb_DylibLoad" fbcall ( byref as const string ) as any ptr
declare function dylibsymbol alias "fb_DylibSymbol" fbcall ( byval as any ptr, byref as const string ) as any ptr
declare function dylibsymbol alias "fb_DylibSymbolByOrd" fbcall ( byval as any ptr, byval as const short ) as any ptr
declare sub dylibfree alias "fb_DylibFree" fbcall ( byval as any ptr )
declare sub beep alias "fb_Beep" fbcall ( )
declare function mkdir alias "fb_MkDir" fbcall ( byref as const string ) as long
declare function rmdir alias "fb_RmDir" fbcall ( byref as const string ) as long
declare function chdir alias "fb_ChDir" fbcall ( byref as const string ) as long
'' -------- rtlGosub --------
declare function fb_GosubPush fbcall ( byval as any ptr ptr ) as any ptr
declare function fb_GosubPop fbcall ( byval as any ptr ptr ) as long
declare function fb_GosubReturn fbcall ( byval as any ptr ptr ) as long
declare sub fb_GosubExit fbcall ( byval as any ptr ptr )
#ifdef __FB_WIN32__
declare function fb_SetJmp alias "_setjmp" cdecl ( byval as any ptr ) as long
#else
declare function fb_SetJmp alias "setjmp" cdecl ( byval as any ptr ) as long
#endif
'' -------- rtlOOP --------
declare function fb_IsTypeOf fbcall ( byref as any, byref as any ) as long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment