summaryrefslogtreecommitdiffstats
path: root/runtime/doc/develop.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-18 23:01:13 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-18 23:01:13 +0200
commit285e3358696b1bc6296e5d4c53425680ce8fbd54 (patch)
treef2a33507d8fad7432096ab3240bf047a9f962bb5 /runtime/doc/develop.txt
parentf98a39ca57d001ba3e24831bae1e375790fb41f0 (diff)
patch 8.0.1735: flexible array member feature not supported by HP-UXv8.0.1735
Problem: Flexible array member feature not supported by HP-UX. (John Marriott) Solution: Do not use the flexible array member feature of C99.
Diffstat (limited to 'runtime/doc/develop.txt')
-rw-r--r--runtime/doc/develop.txt11
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt
index d90e4a3dd2..2e00ccfa94 100644
--- a/runtime/doc/develop.txt
+++ b/runtime/doc/develop.txt
@@ -209,16 +209,6 @@ Types ~
"long long" is allowed and can be expected to be 64 bits. Use %lld in printf
formats. Also "long long unsigned" with %llu.
-Flexible array members ~
-
-This is an array without size, used as the last member of a struct. Vim used
-to have an array of size one, which causes trouble with FORTIFY_SOURCE. Using
-an "unsized array" is the intended use, we will change all of them.
- struct some_stuff {
- size_t length;
- char payload[]; // will have size "length"
- };
-
Not to be used ~
These C99 features are not to be used, because not enough compilers support
@@ -228,6 +218,7 @@ them:
- Variable length arrays (even in C11 this is an optional feature).
- _Bool and _Complex types.
- "inline" (it's hardly ever needed, let the optimizer do its work)
+- flexible array members: Not supported by HP-UX C compiler (John Marriott)
USE OF COMMON FUNCTIONS *style-functions*