diff options
Diffstat (limited to 'share/doc/gcc-linaro-aarch64-linux-gnu/html/gcc/Variable-Length.html')
-rw-r--r-- | share/doc/gcc-linaro-aarch64-linux-gnu/html/gcc/Variable-Length.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/doc/gcc-linaro-aarch64-linux-gnu/html/gcc/Variable-Length.html b/share/doc/gcc-linaro-aarch64-linux-gnu/html/gcc/Variable-Length.html index bee4e63..5e530b6 100644 --- a/share/doc/gcc-linaro-aarch64-linux-gnu/html/gcc/Variable-Length.html +++ b/share/doc/gcc-linaro-aarch64-linux-gnu/html/gcc/Variable-Length.html @@ -56,7 +56,7 @@ Up: <a rel="up" accesskey="u" href="C-Extensions.html#C-Extensions">C Exten <h3 class="section">6.19 Arrays of Variable Length</h3> -<p><a name="index-variable_002dlength-arrays-2453"></a><a name="index-arrays-of-variable-length-2454"></a><a name="index-VLAs-2455"></a> +<p><a name="index-variable_002dlength-arrays-2455"></a><a name="index-arrays-of-variable-length-2456"></a><a name="index-VLAs-2457"></a> Variable-length automatic arrays are allowed in ISO C99, and as an extension GCC accepts them in C90 mode and in C++. These arrays are declared like any other automatic arrays, but with a length that is not @@ -73,11 +73,11 @@ example: return fopen (str, mode); } </pre> - <p><a name="index-scope-of-a-variable-length-array-2456"></a><a name="index-variable_002dlength-array-scope-2457"></a><a name="index-deallocating-variable-length-arrays-2458"></a>Jumping or breaking out of the scope of the array name deallocates the + <p><a name="index-scope-of-a-variable-length-array-2458"></a><a name="index-variable_002dlength-array-scope-2459"></a><a name="index-deallocating-variable-length-arrays-2460"></a>Jumping or breaking out of the scope of the array name deallocates the storage. Jumping into the scope is not allowed; you get an error message for it. - <p><a name="index-g_t_0040code_007balloca_007d-vs-variable_002dlength-arrays-2459"></a>You can use the function <code>alloca</code> to get an effect much like + <p><a name="index-g_t_0040code_007balloca_007d-vs-variable_002dlength-arrays-2461"></a>You can use the function <code>alloca</code> to get an effect much like variable-length arrays. The function <code>alloca</code> is available in many other C implementations (but not in all). On the other hand, variable-length arrays are more elegant. @@ -110,7 +110,7 @@ use a forward declaration in the parameter list—another GNU extension. /* <span class="roman">...</span> */ } </pre> - <p><a name="index-parameter-forward-declaration-2460"></a>The ‘<samp><span class="samp">int len</span></samp>’ before the semicolon is a <dfn>parameter forward + <p><a name="index-parameter-forward-declaration-2462"></a>The ‘<samp><span class="samp">int len</span></samp>’ before the semicolon is a <dfn>parameter forward declaration</dfn>, and it serves the purpose of making the name <code>len</code> known when the declaration of <code>data</code> is parsed. |