Skip to content

Commit cc44756

Browse files
authored
Merge pull request #3488 from HansOlsson/SizeT
Size t
2 parents 7f6792b + 753ec18 commit cc44756

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

chapters/functions.tex

+4-1
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,8 @@ \subsubsection{Simple Types}\label{simple-types}
20152015
\end{tabular}
20162016
\end{center}
20172017

2018-
An exception is made when the argument is of the form {\lstinline!size($\ldots$, $\ldots$)!}. In this case the corresponding C type is {\lstinline!size_t!}.
2018+
An exception is made when the argument is of the form {\lstinline!size($\ldots$, $\ldots$)!}.
2019+
In this case the corresponding C type is {\lstinline!size_t!}.
20192020

20202021
Strings are \textsc{nul}-terminated (i.e., terminated by {\lstinline[language=C]!'\0'!}) and are encoded using UTF-8 (assuming {\lstinline[language=C]!CHAR_BIT==8!} in C) to facilitate calling of C functions.
20212022
The valid return values for an external function returning a {\lstinline!String!} are:
@@ -2372,6 +2373,8 @@ \subsection{Annotations for External Functions}\label{annotations-for-external-l
23722373
In case calls to several external functions are generated in the same translation unit, the \lstinline!Include! annotations of the different functions must not define the same function -- except when relying on the deprecated behavior.
23732374

23742375
The included code should be valid C89 code.
2376+
If the \lstinline[language=grammar]!external-function-call! contains any `size`-expression, the tool is responsible for ensuring that a C-header defining \lstinline[language=C]!size_t! is included before the \lstinline!"insertedCode"!.
2377+
The \lstinline!"insertedCode"!, conditionally preceded by a header for \lstinline[language=C]!size_t!, must be a valid translation unit.
23752378

23762379
When an \lstinline!Include! annotation is present, it shall provide a prototype for the external function, and hence the tool shall not produce an automatically generated prototype in the generated code in this case.
23772380

0 commit comments

Comments
 (0)