Skip to content

Commit 91a00cc

Browse files
committed
doc: wiki snapshot
1 parent c8999b1 commit 91a00cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+348
-108
lines changed

doc/manual/cache/CatPgCasting.wakka

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Operators and procedures that convert between different types.
99
Operators to convert to floating-point types.
1010
**{{anchor name="STRING|Conversions to/from string types"}}**
1111
Operators to convert top an from string types.
12+
**{{anchor name="BOOLEAN|Conversion to boolean types"}}**
13+
Operators to convert to boolean types.
1214

1315
<<{{anchor name="GENERIC"}}{{fbdoc item="section" value="Generic conversions"}}
1416
=={{fbdoc item="keyword" value="KeyPgCast|CAST"}} and {{fbdoc item="keyword" value="KeyPgCptr|CPTR"}}==
@@ -42,6 +44,10 @@ Operators and procedures that convert between different types.
4244
Converts numeric string expressions to integer values.
4345
=={{fbdoc item="keyword" value="KeyPgVallng|VALLNG"}} and {{fbdoc item="keyword" value="KeyPgValulng|VALULNG"}}==
4446
Converts numeric string expressions to long values.
47+
48+
{{anchor name="BOOLEAN"}}{{fbdoc item="section" value="Conversion to boolean types"}}
49+
=={{fbdoc item="keyword" value="KeyPgCbool|CBOOL"}}==
50+
Converts a numeric or string expression to a boolean value.
4551
>>::c::
4652

4753
{{fbdoc item="back" value="DocToc|Table of Contents"}}

doc/manual/cache/CatPgFullIndex.wakka

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Alphabetical listing of keywords, macros and procedures.
121121
- {{fbdoc item="keyword" value="KeyPgBitreset|BITRESET"}}
122122
- {{fbdoc item="keyword" value="KeyPgBitset|BITSET"}}
123123
- {{fbdoc item="keyword" value="KeyPgBload|BLOAD"}}
124+
- {{fbdoc item="keyword" value="KeyPgBoolean|BOOLEAN"}}
124125
- {{fbdoc item="keyword" value="KeyPgBsave|BSAVE"}}
125126
- {{fbdoc item="keyword" value="KeyPgByref|BYREF (parameters)"}}
126127
- {{fbdoc item="keyword" value="KeyPgByrefFunction|BYREF (function results)"}}
@@ -131,6 +132,7 @@ Alphabetical listing of keywords, macros and procedures.
131132
- {{fbdoc item="keyword" value="KeyPgCallocate|CALLOCATE"}}
132133
- {{fbdoc item="keyword" value="KeyPgCase|CASE"}}
133134
- {{fbdoc item="keyword" value="KeyPgCast|CAST"}}
135+
- {{fbdoc item="keyword" value="KeyPgCbool|CBOOL"}}
134136
- {{fbdoc item="keyword" value="KeyPgCbyte|CBYTE"}}
135137
- {{fbdoc item="keyword" value="KeyPgCdbl|CDBL"}}
136138
- {{fbdoc item="keyword" value="KeyPgCdecl|CDECL"}}
@@ -244,6 +246,7 @@ Alphabetical listing of keywords, macros and procedures.
244246
- {{fbdoc item="keyword" value="KeyPgExtern|EXTERN"}}
245247
- {{fbdoc item="keyword" value="KeyPgExternBlock|EXTERN...END EXTERN"}}
246248
{{anchor name="f"}}{{fbdoc item="section" value="F"}}
249+
- {{fbdoc item="keyword" value="KeyPgFalse|FALSE"}}
247250
- {{fbdoc item="keyword" value="KeyPgField|FIELD"}}
248251
- {{fbdoc item="keyword" value="KeyPgFileattr|FILEATTR"}}
249252
- {{fbdoc item="keyword" value="KeyPgFilecopy|FILECOPY"}}
@@ -508,6 +511,7 @@ Alphabetical listing of keywords, macros and procedures.
508511
- {{fbdoc item="keyword" value="KeyPgTo|TO"}}
509512
- {{fbdoc item="keyword" value="KeyPgTransGfx|TRANS (Graphics PUT)"}}
510513
- {{fbdoc item="keyword" value="KeyPgTrim|TRIM"}}
514+
- {{fbdoc item="keyword" value="KeyPgTrue|TRUE"}}
511515
- {{fbdoc item="keyword" value="KeyPgTypeAlias|TYPE (Alias)"}}
512516
- {{fbdoc item="keyword" value="KeyPgTypeTemp|TYPE (Temporary)"}}
513517
- {{fbdoc item="keyword" value="KeyPgType|TYPE (UDT)"}}

doc/manual/cache/CatPgFunctIndex.wakka

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
6363
- {{fbdoc item="keyword" value="KeyPgWrite|WRITE"}}
6464

6565
{{fbdoc item="section" value="Data types and declarations"}}
66+
- {{fbdoc item="keyword" value="KeyPgBoolean|BOOLEAN"}}
6667
- {{fbdoc item="keyword" value="KeyPgByte|BYTE"}}
6768
- {{fbdoc item="keyword" value="KeyPgAs|AS"}}
6869
- {{fbdoc item="keyword" value="KeyPgDim|DIM"}}
@@ -228,7 +229,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
228229
- {{fbdoc item="keyword" value="KeyPgLprint|LPRINT"}}
229230

230231
{{fbdoc item="section" value="Assignment Operators"}}
231-
- {{fbdoc item="keyword" value="KeyPgOpAssignment|= (Assignment)"}}
232+
- {{fbdoc item="keyword" value="KeyPgOpAssignment|=[>] (Assignment)"}}
232233
- {{fbdoc item="keyword" value="KeyPgOpCombineConcat|&= (Concatenate and Assign)"}}
233234
- {{fbdoc item="keyword" value="KeyPgOpCombineAdd|+= (Add and Assign)"}}
234235
- {{fbdoc item="keyword" value="KeyPgOpCombineSub|-= (Subtract and Assign)"}}
@@ -433,6 +434,8 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
433434
- {{fbdoc item="keyword" value="KeyPgDdline|__LINE__"}}
434435
- {{fbdoc item="keyword" value="KeyPgDdpath|__PATH__"}}
435436
- {{fbdoc item="keyword" value="KeyPgDdtime|__TIME__"}}
437+
- {{fbdoc item="keyword" value="KeyPgFalse|FALSE"}}
438+
- {{fbdoc item="keyword" value="KeyPgTrue|TRUE"}}
436439

437440
{{fbdoc item="section" value="Preprocessor"}}
438441
- {{fbdoc item="keyword" value="KeyPgPpassert|#ASSERT"}}
@@ -580,6 +583,7 @@ List of ""FreeBASIC"" keywords sorted by the function they perform.
580583

581584
{{fbdoc item="section" value="Type casting/conversion"}}
582585
- {{fbdoc item="keyword" value="KeyPgCast|CAST"}}
586+
- {{fbdoc item="keyword" value="KeyPgCbool|CBOOL"}}
583587
- {{fbdoc item="keyword" value="KeyPgCbyte|CBYTE"}}
584588
- {{fbdoc item="keyword" value="KeyPgCdbl|CDBL"}}
585589
- {{fbdoc item="keyword" value="KeyPgCint|CINT"}}

doc/manual/cache/CatPgOpAssignment.wakka

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Operators that assign values to operands
33

44
The assignment operators perform an assignment to the first, or //left-hand side//, operand based on the value of the second, or //right-hand side//, operand. Most of the assignment operators are combination operators, in that they first perform a mathematical or bitwise operation on the two operands, then assign the result to the //left-hand side// operand.
55

6-
<<=={{fbdoc item="keyword" value="KeyPgOpAssignment|Operator = (Assignment)"}}==
6+
<<=={{fbdoc item="keyword" value="KeyPgOpAssignment|Operator =[>] (Assignment)"}}==
77
Assigns the value of one operand to the other.
88
=={{fbdoc item="keyword" value="KeyPgOpCombineConcat|Operator &= (Concatenate and Assign)"}}==
99
Assigns the value of a concatenation between two operands.

doc/manual/cache/CatPgOpIndex.wakka

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ List of operators used in FreeBASIC.
33

44
<<
55
{{fbdoc item="section" value="Assignment Operators"}}
6-
- {{fbdoc item="keyword" value="KeyPgOpAssignment|= (Assignment)"}}
6+
- {{fbdoc item="keyword" value="KeyPgOpAssignment|=[>] (Assignment)"}}
77
- {{fbdoc item="keyword" value="KeyPgOpCombineConcat|&= (Concatenate and Assign)"}}
88
- {{fbdoc item="keyword" value="KeyPgOpCombineAdd|+= (Add and Assign)"}}
99
- {{fbdoc item="keyword" value="KeyPgOpCombineSub|-= (Subtract and Assign)"}}

doc/manual/cache/CatPgStdDataTypes.wakka

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Built-in data types
55
Types that store integer values, whose range is determined by the size of the data type and its signedness.
66
**{{anchor name="FLOATING|Floating-point types"}}**
77
Types that store real number values, whose range and precision is determined by the size of the data type.
8+
**{{anchor name="BOOLEAN|Boolean types"}}**
9+
Types that store boolean values.
810
**{{anchor name="MODIFIERS|Data Type Modifiers"}}**
911
Specifies additional characteristics of a standard or user-defined data type.
1012
**{{anchor name="STRING|String types"}}**
@@ -29,6 +31,10 @@ Built-in data types
2931
32-bit wide data types that store real number values.
3032
=={{fbdoc item="keyword" value="KeyPgDouble|DOUBLE"}}==
3133
64-bit wide data types that store real number values.
34+
35+
{{anchor name="BOOLEAN"}}{{fbdoc item="section" value="Boolean types"}}
36+
=={{fbdoc item="keyword" value="KeyPgBoolean|BOOLEAN"}}==
37+
1-bit wide data types that store boolean values.
3238
<<>>{{anchor name="MODIFIERS"}}{{fbdoc item="section" value="Data Type Modifiers"}}
3339
=={{fbdoc item="keyword" value="KeyPgConstQualifier|CONST"}}==
3440
Specifies a read only type.

doc/manual/cache/CompilerCmdLine.wakka

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ Using the **fbc** command-line.
145145
{{fbdoc item="section" value="Meta"}}
146146
=={{fbdoc item="keyword" value="CompilerOptoptfile|@< file >"}}==
147147
Read (additional) command-line options from a file
148-
149148

150149
>>::c::
151150

@@ -166,6 +165,13 @@ Using the **fbc** command-line.
166165
##fbc -x application.exe main_module.o sub_module.o##
167166
//(Link an executable ##application.exe##)//
168167

168+
**Note:** How to include an icon in a FB executable program
169+
There is a simple command line option to compile a FB program into an executable with an Icon:
170+
- Create a *.rc file, for example appicon.rc, with this info:
171+
FB_PROGRAM_ICON ICON "appicon.ico"
172+
(where appicon.ico is the name of icon)
173+
- Then when compiling program, add appicon.rc in the list of files to compile.
174+
169175
{{fbdoc item="see"}}
170176
- [[CatPgCompOpt Compiler Options]]
171177
- [[CompilerInstalling Installing FreeBASIC]]

doc/manual/cache/CompilerOptasm.wakka

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Set assembler format for inline assembly under -gen gcc
1313

1414
- ##-gen gcc -asm intel##: FB inline assembly blocks must use FB's usual Intel syntax format. Under -gen gcc, fbc will try to translate it to gcc's format automatically. For example:
1515
%%(freebasic)
16-
dim a as integer = 1
16+
dim a as long = 1
1717
print a
1818
asm
1919
inc dword ptr [a]
@@ -23,7 +23,7 @@ print a
2323

2424
- ##-gen gcc -asm att##: FB inline assembly blocks must use [[https://gcc.gnu.org/onlinedocs/gcc/Using-Assembly-Language-with-C.html gcc's format]]. For example:
2525
%%(freebasic)
26-
dim a as integer = 1
26+
dim a as long = 1
2727
print a
2828
asm
2929
"incl %0\n" : "+m" (a) : :

doc/manual/cache/DevBuildWindows.wakka

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ This should have produced the ##fbc.exe## compiler and the libraries in ##lib\wi
9292
- ##""C:\MinGW-w64\bin\{ar,as,ld,dlltool}.exe""##
9393
- ##""GoRC.exe""## from [[http://www.godevtool.com/]]
9494

95+
1) For 64bit, or for using -gen gcc on 32bit, gcc.exe and cc1.exe are needed too.
96+
- Copy ##""C:\MinGW-w64\bin\gcc.exe""## to ##""C:\fbc\bin\win{32|64}""##
97+
- Copy ##""C:\MinGW-w64\libexec\gcc\[target]\[version]\cc1.exe""## to ##""C:\fbc\bin\libexec\gcc\[target]\[version]\cc1.exe""##
98+
9599
1) Copy to ##""C:\fbc\lib\win32""## (32bit) or ##""C:\fbc\lib\win64""## (64bit):
96100
- ##""C:\MinGW-w64\[target]\lib\{crt2,dllcrt2,gcrt2}.o""##
97101
- ##""C:\MinGW-w64\[target]\lib\lib{gmon,mingw32,mingwex,moldname}.a""##

doc/manual/cache/ExtLibgiflib.wakka

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{fbdoc item="title" value="GIFLIB"}}----
22
GIFLIB is a package of portable tools and library routines for working with GIF images
33

4-
Website: http://giflib.sourceforge.net/doc/
4+
Website: http://giflib.sourceforge.net/intro.html
55
Platforms supported: ""Win32"", Linux, DOS
66
Headers to include: gif_lib.bi
77
Header version: 4.2.1, 5.0.4 (#define ""__GIFLIB_VER__"" to 4 or 5 if needed; default = 5)

0 commit comments

Comments
 (0)