Lines Matching refs:struct
66 * Avoid header files dependencies just for struct and union types that
68 * Instead, use forward declarations of the struct or union tag.
73 * Forward declarations for struct and union tags that don't need
76 struct dirent;
83 * Do not create a typedef like `typedef struct example example_t;' or
84 * `typedef struct example *example_t;'. Use `struct example' or
85 * `struct example *' in the public API; that way, other header files
86 * which declare functions or define struct or union types that involve
87 * only pointers to `struct example' need not pull in unnecessary
90 struct example {
91 struct data *p;
110 * uint8_t on one port, a pointer to a struct on another port, and an
111 * in-line struct larger than a pointer on a third port:
114 typedef struct foo *foo_t; /* Hypothetical i786 definition */
115 typedef struct { /* Hypothetical risc72 definition */
124 * use a type `foo_t' with `typedef void *foo_t'. Use `struct foo *'
125 * with no public definition for `struct foo', so the compiler can
126 * detect type errors, and other header files can use `struct foo *'
144 int frobnicate(const char *, struct dirent *, foobar_t);
213 static int dirinfo(const char *, struct stat *, struct dirent *,
214 struct statfs *, int *, char **[]);
267 * E.g, for ``struct softc'' the prefix could be ``sc_''.
269 * Don't create typedef aliases for struct or union types. That way,
273 struct foo {
274 struct foo *next; /* List of active foo */
275 struct mumble amumble; /* Comment for mumble */
282 struct foo *foohead; /* Head of global foo list */
435 struct foo three, *four;
459 * NULL instead of (struct foo *)0 or (struct foo *)NULL. Also,
505 dirinfo(const char *p, struct stat *sb, struct dirent *de, struct statfs *sf,