static void TexinfoShowRange(FILE *fout, char *s, DataType type) { Rlist *list = NULL, *rp; if (strlen(s) == 0) { fprintf(fout, "@noindent @b{Allowed input range}: (arbitrary string)\n\n"); return; } if ((type == DATA_TYPE_OPTION) || (type == DATA_TYPE_OPTION_LIST)) { list = RlistFromSplitString(s, ','); fprintf(fout, "@noindent @b{Allowed input range}: @*\n@example"); for (rp = list; rp != NULL; rp = rp->next) { fprintf(fout, "\n @code{%s}", (char *) rp->item); } fprintf(fout, "\n@end example\n"); RlistDestroy(list); } else { fprintf(fout, "@noindent @b{Allowed input range}: @code{%s}\n\n", TexInfoEscape(s)); } }
static void TexinfoShowRange(FILE *fout, char *s, enum cfdatatype type) { Rlist *list = NULL, *rp; if (strlen(s) == 0) { fprintf(fout, "@noindent @b{Allowed input range}: (arbitrary string)\n\n"); return; } if ((type == cf_opts) || (type == cf_olist)) { list = SplitStringAsRList(s, ','); fprintf(fout, "@noindent @b{Allowed input range}: @*\n@example"); for (rp = list; rp != NULL; rp = rp->next) { fprintf(fout, "\n @code{%s}", (char *) rp->item); } fprintf(fout, "\n@end example\n"); DeleteRlist(list); } else { fprintf(fout, "@noindent @b{Allowed input range}: @code{%s}\n\n", TexInfoEscape(s)); } }