Lines Matching defs:doc
25 struct hook_desc { const char *doc, *type, *name, *param, *init, *docname; };
45 emit_findices (const char *doc, const char *hook_name)
47 const char *end = strstr (doc, "\n\n");
50 while ((fcode = strstr (doc, "@Fcode{")) && (!end || fcode < end))
53 doc = strchr (fcode, '}');
54 if (!doc)
56 printf ("@findex %.*s\n", (int) (doc - fcode), fcode);
57 doc = fcode;
99 signature, followed by the string from the doc field.
102 While emitting the doc field, @Fcode is translated to @code, and an
104 If the doc field starts with '*', the leading '*' is stripped, and the doc
107 In particular, a doc field of "*" means not to emit any ocumentation for
110 A doc field of 0 is used to append the hook signature after the previous
112 When the doc field is "", @deftypefn/@deftypevr and the hook signature
156 if (!hook_array[i].doc || strcmp (hook_array[i].doc, "*") == 0)
209 const char *doc, *fcode, *p_end;
213 if (*hook_array[i].doc == '*')
214 printf ("%s", hook_array[i].doc + 1);
219 emit_findices (hook_array[i].doc, name);
248 && hook_array[j].doc == 0 && hook_array[j].type; j++)
256 if (hook_array[i].doc[0])
260 for (doc = hook_array[i].doc; *doc; doc = p_end)
263 p_end = strstr (doc, "\n\n");
264 p_end = (p_end ? p_end + 2 : doc + strlen (doc));
266 for (; (fcode = strstr (doc, "@Fcode{")) && fcode < p_end;
267 doc = fcode + 2)
268 printf ("%.*s@", (int) (fcode - doc), doc);
269 printf ("%.*s", (int) (p_end - doc), doc);
277 || !hook_array[i].doc)