From 8c3e16018ce7b8a5bb8e1389f7e2e8c34bf9377a Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 24 Sep 2020 13:33:51 -0400 Subject: [PATCH] docs: yaml: put static/dynamic array FT obj. C types example in partial Signed-off-by: Philippe Proulx --- docs/modules/yaml/pages/dyn-array-ft-obj.adoc | 32 +------------------ .../yaml/pages/static-array-ft-obj.adoc | 32 +------------------ .../array-ft-obj-gen-c-types-example.adoc | 31 ++++++++++++++++++ 3 files changed, 33 insertions(+), 62 deletions(-) create mode 100644 docs/modules/yaml/partials/array-ft-obj-gen-c-types-example.adoc diff --git a/docs/modules/yaml/pages/dyn-array-ft-obj.adoc b/docs/modules/yaml/pages/dyn-array-ft-obj.adoc index 3d02ac3..6bd6079 100644 --- a/docs/modules/yaml/pages/dyn-array-ft-obj.adoc +++ b/docs/modules/yaml/pages/dyn-array-ft-obj.adoc @@ -49,37 +49,7 @@ Dynamic array's data:: for the field type object of the <>. + -.Generated C{nbsp}types for various element field types. -==== -[%autowidth.stretch] -|=== -|Element field type |Generated C{nbsp}type - -|8-bit unsigned xref:int-ft-obj.adoc[integer] -|`const uint8_t *` - -|32-bit signed integer -|`const int32_t *` - -|Single-precision xref:real-ft-obj.adoc[real] -|`const float *` - -|xref:str-ft-obj.adoc[String] -|`const char * const *` - -|Static array of 16-bit signed integers -|`const int16_t * const *` - -|Static array of double-precision reals -|`const double * const *` - -|Static array of strings -|`const char * const * const *` - -|Static array of static arrays of 32-bit unsigned integers -|`const uint32_t * const * const *` -|=== -==== +include::partial$array-ft-obj-gen-c-types-example.adoc[] == Examples diff --git a/docs/modules/yaml/pages/static-array-ft-obj.adoc b/docs/modules/yaml/pages/static-array-ft-obj.adoc index 733f951..29edab5 100644 --- a/docs/modules/yaml/pages/static-array-ft-obj.adoc +++ b/docs/modules/yaml/pages/static-array-ft-obj.adoc @@ -47,37 +47,7 @@ Pointer to `const __T__`, where `__T__` is the generated C{nbsp}type for the field type object of the <>. -.Generated C{nbsp}types for various element field types. -==== -[%autowidth.stretch] -|=== -|Element field type |Generated C{nbsp}type - -|8-bit unsigned xref:int-ft-obj.adoc[integer] -|`const uint8_t *` - -|32-bit signed integer -|`const int32_t *` - -|Single-precision xref:real-ft-obj.adoc[real] -|`const float *` - -|xref:str-ft-obj.adoc[String] -|`const char * const *` - -|Static array of 16-bit signed integers -|`const int16_t * const *` - -|Static array of double-precision reals -|`const double * const *` - -|Static array of strings -|`const char * const * const *` - -|Static array of static arrays of 32-bit unsigned integers -|`const uint32_t * const * const *` -|=== -==== +include::partial$array-ft-obj-gen-c-types-example.adoc[] == Examples diff --git a/docs/modules/yaml/partials/array-ft-obj-gen-c-types-example.adoc b/docs/modules/yaml/partials/array-ft-obj-gen-c-types-example.adoc new file mode 100644 index 0000000..2c3fc92 --- /dev/null +++ b/docs/modules/yaml/partials/array-ft-obj-gen-c-types-example.adoc @@ -0,0 +1,31 @@ +.Generated C{nbsp}types for various element field types. +==== +[%autowidth.stretch] +|=== +|Element field type |Generated C{nbsp}type + +|8-bit unsigned xref:int-ft-obj.adoc[integer] +|`const uint8_t *` + +|32-bit signed integer +|`const int32_t *` + +|Single-precision xref:real-ft-obj.adoc[real] +|`const float *` + +|xref:str-ft-obj.adoc[String] +|`const char * const *` + +|xref:static-array-ft-obj.adoc[Static array] of 16-bit signed integers +|`const int16_t * const *` + +|Static array of double-precision reals +|`const double * const *` + +|Static array of strings +|`const char * const * const *` + +|Static array of static arrays of 32-bit unsigned integers +|`const uint32_t * const * const *` +|=== +==== -- 2.34.1