document localPassC consistently with compiler; fix ANSI capitalization (#19721)
This commit is contained in:
parent
b10f0e7bca
commit
8e6136dd59
1 changed files with 4 additions and 4 deletions
|
|
@ -1370,7 +1370,7 @@ cstring type
|
||||||
The `cstring` type meaning `compatible string` is the native representation
|
The `cstring` type meaning `compatible string` is the native representation
|
||||||
of a string for the compilation backend. For the C backend the `cstring` type
|
of a string for the compilation backend. For the C backend the `cstring` type
|
||||||
represents a pointer to a zero-terminated char array
|
represents a pointer to a zero-terminated char array
|
||||||
compatible with the type `char*` in Ansi C. Its primary purpose lies in easy
|
compatible with the type `char*` in ANSI C. Its primary purpose lies in easy
|
||||||
interfacing with C. The index operation `s[i]` means the i-th *char* of
|
interfacing with C. The index operation `s[i]` means the i-th *char* of
|
||||||
`s`; however no bounds checking for `cstring` is performed making the
|
`s`; however no bounds checking for `cstring` is performed making the
|
||||||
index operation unsafe.
|
index operation unsafe.
|
||||||
|
|
@ -7218,16 +7218,16 @@ during semantic analysis:
|
||||||
{.passc: gorge("pkg-config --cflags sdl").}
|
{.passc: gorge("pkg-config --cflags sdl").}
|
||||||
|
|
||||||
|
|
||||||
LocalPassc pragma
|
localPassC pragma
|
||||||
-----------------
|
-----------------
|
||||||
The `localPassc` pragma can be used to pass additional parameters to the C
|
The `localPassC` pragma can be used to pass additional parameters to the C
|
||||||
compiler, but only for the C/C++ file that is produced from the Nim module
|
compiler, but only for the C/C++ file that is produced from the Nim module
|
||||||
the pragma resides in:
|
the pragma resides in:
|
||||||
|
|
||||||
.. code-block:: Nim
|
.. code-block:: Nim
|
||||||
# Module A.nim
|
# Module A.nim
|
||||||
# Produces: A.nim.cpp
|
# Produces: A.nim.cpp
|
||||||
{.localPassc: "-Wall -Werror".} # Passed when compiling A.nim.cpp
|
{.localPassC: "-Wall -Werror".} # Passed when compiling A.nim.cpp
|
||||||
|
|
||||||
|
|
||||||
PassL pragma
|
PassL pragma
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue