• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/cups-408/cups/cgi-bin/

Lines Matching defs:section

24  *   compare_sections_files() - Compare the number of files and section names.
48 typedef struct _cups_section_s /**** Help section ****/
51 cups_array_t *files; /* Files in this section */
183 compare_sections(_cups_section_t *a, /* I - First section */
184 _cups_section_t *b) /* I - Second section */
191 * 'compare_sections_files()' - Compare the number of files and section names.
196 _cups_section_t *a, /* I - First section */
197 _cups_section_t *b) /* I - Second section */
218 _cups_section_t *section, /* Current section */
243 key.name = node->section ? node->section : "Miscellaneous";
244 if ((section = (_cups_section_t *)cupsArrayFind(sections, &key)) == NULL)
246 section = (_cups_section_t *)calloc(1, sizeof(_cups_section_t));
247 section->name = key.name;
248 section->files = cupsArrayNew((cups_array_func_t)compare_html, NULL);
250 cupsArrayAdd(sections, section);
257 cupsArrayAdd(section->files, html);
261 * Build a sorted list of sections based on the number of files in each section
262 * and the section name...
267 for (section = (_cups_section_t *)cupsArrayFirst(sections);
268 section;
269 section = (_cups_section_t *)cupsArrayNext(sections))
270 cupsArrayAdd(sections_files, section);
283 for (section = (_cups_section_t *)cupsArrayFirst(sections_files);
284 section;
285 section = (_cups_section_t *)cupsArrayNext(sections_files))
298 cupsArrayAdd(columns[min_column], section);
299 lines[min_column] += cupsArrayCount(section->files) + 2;
333 for (section = (_cups_section_t *)cupsArrayFirst(columns[column]);
334 section;
335 section = (_cups_section_t *)cupsArrayNext(columns[column]))
337 cupsFilePrintf(fp, "<h2 class='title'>%s</h2>\n", section->name);
338 for (html = (_cups_html_t *)cupsArrayFirst(section->files);
340 html = (_cups_html_t *)cupsArrayNext(section->files))