diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-09-04 19:39:25 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-09-15 17:12:45 +0000 |
commit | 073dcd088215c4eaafe90a256e398b83327888e6 (patch) | |
tree | 53117303d734ff3651243e043b2fc8c67f763f71 /docs | |
parent | d08b5019099a6375563ede434d29038e6916256e (diff) | |
download | gobject-introspection-073dcd088215c4eaafe90a256e398b83327888e6.tar.gz |
Support array arguments with static keyword
C99 allows defining an array argument with a fixed size as:
void foo (int arr[static 10])
Compilers conforming to the C99 specification will be able to warn if
the function is called with NULL or with an array smaller than the
specified length, something that does not happen when using pre-C99
declarations like:
void foo (int arr[10])
As the declaration above is identical to:
void foo (int arr[])
Which is, in turn, identical to:
void foo (int *arr)
Fixes: #309
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions