Skip to content

Commit 404dbf5

Browse files
committed
fbdocs: wiki snapshot 2021.04.16
1 parent fdbe2bd commit 404dbf5

File tree

9 files changed

+46
-13
lines changed

9 files changed

+46
-13
lines changed

doc/manual/cache/CatPgDddefines.wakka

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Preprocessor symbols defined by the compiler.
4848
Defined if compiling for a 64bit target.
4949
=={{fbdoc item="keyword" value="KeyPgDdfbarm|__FB_ARM__"}}==
5050
Defined if compiling for the ARM architecture.
51+
=={{fbdoc item="keyword" value="KeyPgDdfbx86|__FB_X86__"}}==
52+
Defined if compiling for the X86 / X86_64 architecture.
5153

5254
{{anchor name="VERSION"}}{{fbdoc item="section" value="Version Information"}}
5355
=={{fbdoc item="keyword" value="KeyPgDdfbversion|__FB_VERSION__"}}==

doc/manual/cache/CatPgFullIndex.wakka

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Alphabetical listing of keywords, macros and procedures.
7171
- {{fbdoc item="keyword" value="KeyPgDdFBVerPatch|__FB_VER_PATCH__"}}
7272
- {{fbdoc item="keyword" value="KeyPgDdfbversion|__FB_VERSION__"}}
7373
- {{fbdoc item="keyword" value="KeyPgDdfbwin32|__FB_WIN32__"}}
74+
- {{fbdoc item="keyword" value="KeyPgDdfbx86|__FB_X86__"}}
7475
- {{fbdoc item="keyword" value="KeyPgDdfbxbox|__FB_XBOX__"}}
7576
- {{fbdoc item="keyword" value="KeyPgDdfile|__FILE__"}}
7677
- {{fbdoc item="keyword" value="KeyPgDdfilenq|__FILE_NQ__"}}
@@ -286,7 +287,7 @@ Alphabetical listing of keywords, macros and procedures.
286287
- {{fbdoc item="keyword" value="KeyPgFalse|FALSE"}}
287288
- {{fbdoc item="keyword" value="KeyPgFBMemcopy|FB_MEMCOPY"}}
288289
- {{fbdoc item="keyword" value="KeyPgFBMemcopyclear|FB_MEMCOPYCLEAR"}}
289-
- {{fbdoc item="keyword" value="KeyPgFBMEMMOVE|FB_MEMMOVE"}}
290+
- {{fbdoc item="keyword" value="KeyPgFBMemmove|FB_MEMMOVE"}}
290291
- {{fbdoc item="keyword" value="KeyPgFBArray|FBARRAY (array descriptor structure and access)"}}
291292
- {{fbdoc item="keyword" value="KeyPgField|FIELD"}}
292293
- {{fbdoc item="keyword" value="KeyPgFileattr|FILEATTR"}}

doc/manual/cache/CatPgFunctIndex.wakka

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
309309
- {{fbdoc item="keyword" value="KeyPgOpDelete|DELETE"}}
310310
- {{fbdoc item="keyword" value="KeyPgFBMemcopy|FB_MEMCOPY"}}
311311
- {{fbdoc item="keyword" value="KeyPgFBMemcopyclear|FB_MEMCOPYCLEAR"}}
312-
- {{fbdoc item="keyword" value="KeyPgFBMEMMOVE|FB_MEMMOVE"}}
312+
- {{fbdoc item="keyword" value="KeyPgFBMemmove|FB_MEMMOVE"}}
313313
- {{fbdoc item="keyword" value="KeyPgField|FIELD"}}
314314
- {{fbdoc item="keyword" value="KeyPgFre|FRE"}}
315315
- {{fbdoc item="keyword" value="KeyPgOpNew|NEW"}}
@@ -466,6 +466,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
466466
- {{fbdoc item="keyword" value="KeyPgDdfbversion|__FB_VERSION__"}}
467467
- {{fbdoc item="keyword" value="KeyPgDdfbwin32|__FB_WIN32__"}}
468468
- {{fbdoc item="keyword" value="KeyPgDdfbxbox|__FB_XBOX__"}}
469+
- {{fbdoc item="keyword" value="KeyPgDdfbx86|__FB_X86__"}}
469470
- {{fbdoc item="keyword" value="KeyPgDdfile|__FILE__"}}
470471
- {{fbdoc item="keyword" value="KeyPgDdfilenq|__FILE_NQ__"}}
471472
- {{fbdoc item="keyword" value="KeyPgDdfunction|__FUNCTION__"}}

doc/manual/cache/KeyPgDdfbarm.wakka

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Intrinsic define set by the compiler
2020
- New to ""FreeBASIC""
2121

2222
{{fbdoc item="see"}}
23+
- ##[[KeyPgDdfbx86|__FB_X86__]]##
2324
- ##[[KeyPgDdfblinux|__FB_LINUX__]]##
2425
- ##[[KeyPgDdfbfreebsd|__FB_FREEBSD__]]##
2526
- ##[[KeyPgDdfbopenbsd|__FB_OPENBSD__]]##
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{fbdoc item="title" value="__FB_X86__"}}----
2+
Intrinsic define set by the compiler
3+
4+
{{fbdoc item="syntax"}}##
5+
""__FB_X86__""
6+
##
7+
{{fbdoc item="desc"}}
8+
Define created at compile time if the compilation target uses the X86 or X86_64 CPU architecture, otherwise undefined.
9+
10+
{{fbdoc item="ex"}}
11+
{{fbdoc item="filename" value="examples/manual/defines/fbx64.bas"}}%%(freebasic)
12+
#IFDEF __FB_X86__
13+
'...instructions for X86 OSes...
14+
#ELSE
15+
'...instructions for other OSes
16+
#ENDIF
17+
%%
18+
19+
{{fbdoc item="diff"}}
20+
- New to ""FreeBASIC""
21+
22+
{{fbdoc item="see"}}
23+
- ##[[KeyPgDdfbarm|__FB_ARM__]]##
24+
- [[CompilerOpttarget|Compiler Option: -target]]
25+
26+
{{fbdoc item="back" value="CatPgDddefines|Intrinsic Defines"}}

doc/manual/cache/KeyPgPoint.wakka

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Returns the color attribute of a specified pixel coordinate
1818
the type of screen coordinate to return: one of the values ##0##, ##1##, ##2##, ##3##
1919

2020
{{fbdoc item="ret"}}
21-
The return datatype is an ##[[KeyPgInteger|Integer]]## for fbc version < 1.08, or a ##[[KeyPgulong|ULong]]## for fbc version >= 1.08.
21+
The return datatype is an ##[[KeyPgInteger|Integer]]## for fbc version < 1.08, or a ##[[KeyPgUlong|ULong]]## for fbc version >= 1.08.
2222

2323
If the ##//x//, //y//## coordinates of a pixel are provided **##Point##** returns the color attribute at the specified coordinates, as an 8-bit palette index in 8 bpp indexed modes, a 24-bit RGB value in 16 bpp modes (upper 8 bits unused, limited precision of R,G,B), and a 32-bit RGB or RGBA value in 32 bpp modes (upper 8 bits unused or holding Alpha). Note that it does NOT return a 16-bit value (5 bits R + 6 bits G + 5 bits B).
2424

doc/manual/cache/KeyPgScreengraphics.wakka

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ __Other details__
6262

6363
__Note on using ##Screen 0##__
6464
##Screen 0## closes any graphics window, but also clears the console window if it exists.
65-
##Screen 0, , , SCREEN_EXIT## (with ##SCREEN_EXIT=&h80000000##) also closes any graphics window, but does not clear the console window if it exists (previous text is preserved).
65+
##Screen 0, , , GFX_SCREEN_EXIT## (with ##GFX_SCREEN_EXIT=&h80000000##) also closes any graphics window, but does not clear the console window if it exists (previous text is preserved).
6666

6767
{{fbdoc item="ex"}}
6868
{{fbdoc item="filename" value="examples/manual/gfx/screen.bas"}}%%(freebasic)

doc/manual/cache/PrintToc.wakka

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
[[KeyPgDdFBVerPatch|__FB_VER_PATCH__]]
6969
[[KeyPgDdfbversion|__FB_VERSION__]]
7070
[[KeyPgDdfbwin32|__FB_WIN32__]]
71+
[[KeyPgDdfbx86|__FB_X86__]]
7172
[[KeyPgDdfbxbox|__FB_XBOX__]]
7273
[[KeyPgDdfile|__FILE__]]
7374
[[KeyPgDdfilenq|__FILE_NQ__]]
@@ -283,7 +284,7 @@
283284
[[KeyPgFalse|FALSE]]
284285
[[KeyPgFBMemcopy|FB_MEMCOPY]]
285286
[[KeyPgFBMemcopyclear|FB_MEMCOPYCLEAR]]
286-
[[KeyPgFBMEMMOVE|FB_MEMMOVE]]
287+
[[KeyPgFBMemmove|FB_MEMMOVE]]
287288
[[KeyPgFBArray|FBARRAY (array descriptor structure and access)]]
288289
[[KeyPgField|FIELD]]
289290
[[KeyPgFileattr|FILEATTR]]
@@ -950,6 +951,7 @@
950951
[[ExtLibogg|Ogg]]
951952
[[ExtLibal|OpenAL]]
952953
[[ExtLibPortAudio|PortAudio]]
954+
[[ExtLibsfx|sfx]]
953955
[[ExtLibsndfile|sndfile]]
954956
[[ExtLibVLC|VLC]]
955957
[[ExtLibvorbis|Vorbis]]

doc/manual/cache/ProPgMtCriticalSectionsFAQ.wakka

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,20 +3006,20 @@ End Destructor
30063006

30073007
Type ThreadDispatching
30083008
Public:
3009-
Declare Constructor(Byval nbSecondaryThread As Integer = 1)
3009+
Declare Constructor(Byval nbMaxSecondaryThread As Integer = 1)
30103010
Declare Sub DispatchingSubmit(Byval pThread As Function(Byval As Any Ptr) As String, Byval p As Any Ptr = 0)
30113011
declare Sub DispatchingWait()
30123012
Declare Sub DispatchingWait(values() As String)
30133013
Declare Property DispatchingThread() As Integer
30143014
Declare destructor()
30153015
Private:
3016-
Dim As Integer _nbst
3017-
Dim AS Integer _dtnb
3016+
Dim As Integer _nbmst
3017+
Dim AS Integer _dstnb
30183018
Dim As ThreadPooling Ptr _tp(Any)
30193019
End Type
30203020

3021-
Constructor ThreadDispatching(Byval nbSecondaryThread As Integer = 1)
3022-
This._nbst = nbSecondaryThread
3021+
Constructor ThreadDispatching(Byval nbMaxSecondaryThread As Integer = 1)
3022+
This._nbmst = nbMaxSecondaryThread
30233023
End Constructor
30243024

30253025
Sub ThreadDispatching.DispatchingSubmit(Byval pThread As Function(Byval As Any Ptr) As String, Byval p As Any Ptr = 0)
@@ -3029,13 +3029,13 @@ Sub ThreadDispatching.DispatchingSubmit(Byval pThread As Function(Byval As Any P
30293029
Exit Sub
30303030
End If
30313031
Next I
3032-
If Ubound(This._tp) < This._nbst - 1 Then
3032+
If Ubound(This._tp) < This._nbmst - 1 Then
30333033
Redim Preserve This._tp(Ubound(This._tp) + 1)
30343034
This._tp(Ubound(This._tp)) = New ThreadPooling
30353035
This._tp(Ubound(This._tp))->PoolingSubmit(pThread, p)
30363036
Elseif Ubound(This._tp) >= 0 Then
3037-
This._tp(This._dtnb)->PoolingSubmit(pThread, p)
3038-
This._dtnb = (This._dtnb + 1) Mod This._nbst
3037+
This._tp(This._dstnb)->PoolingSubmit(pThread, p)
3038+
This._dstnb = (This._dstnb + 1) Mod This._nbmst
30393039
End If
30403040
End Sub
30413041

0 commit comments

Comments
 (0)