Commits

Armin Rigo committed a536488

Write explicitly that the "..." in "typedef ... foo_t" is not to declare
say integer types.

  • Participants
  • Parent commits 2f3f5a2

Comments (0)

Files changed (1)

File doc/source/index.rst

    works with "``typedef ... *foo_p;``" which declares the pointer type
    ``foo_p`` without giving a name to the opaque type itself.  Note that
    such an opaque struct has no known size, which prevents some operations
-   from working (mostly like in C).  In some cases you need to say that
+   from working (mostly like in C).  *You cannot use this syntax to
+   declare a specific type, like an integer type!  It declares opaque
+   types only.*  In some cases you need to say that
    ``foo_t`` is not opaque, but you just don't know any field in it; then
    you would use "``typedef struct { ...; } foo_t;``".