This file is indexed.

/usr/include/dacs/html.h is in libdacs-dev 1.4.38a-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
/*
 * Copyright (c) 2003-2012
 * Distributed Systems Software.  All rights reserved.
 * See the file LICENSE for redistribution information.
 *
 * $Id: html.h 2621 2013-01-22 17:56:05Z brachman $
 */

#ifndef _HTML_H_
#define _HTML_H_

#include "ds.h"

/*
 * Detailed format for one cell (a td/th tag)
 */
typedef struct Html_cell_desc {
  char *id;
  char *class;
  int width;
  char *align;
  char *valign;
} Html_cell_desc;

/*
 * A formatted-to-memory cell (a td/th tag)
 */
typedef struct Html_cell {
  char *id;
  char *class;
  int width;
  char *align;
  char *valign;
  char *attrs;
  char *content;

  /* Private */
  int row;
  int column;
} Html_cell;

typedef struct Html_table {
  Ds *ds;
  /*
   * If auto_row_nclasses is non-zero, this is the prefix of the class attribute
   * value for the tr tag; if auto_row_nclasses is zero, this is the class
   * for every tr tag.
   */
  char *row_class;
  /*
   * If non-zero, the modulus for class attribute name suffixes for the
   * tr tag; e.g., <tr class="class_1" ...>, <tr class="class_2" ...>
   * This is mainly used to set different background colours for adjacent
   * rows to improve readability.
   */
  int auto_row_nclasses;
  /*
   * Prefix of the class attribute value for the td tag; e.g.,
   * <td class="column_1" ...>, <td class="column_2" ...>
   */
  char *auto_column_class;
  /*
   * If non-zero, use the value of auto_column_class as the class attribute
   * value for every td tag; e.g.,
   * <td class="el" ...>, <td class="el" ...>
   */
  int repeat_column_class;
  /* Text to insert in empty cells if no content is specified */
  char *default_cell_contents;
  /* Number of columns */
  int max_cols;
  Dsvec *cell_desc;			/* Vector of cell descriptors */
  /* Emit the th tag instead of td -- XXX fixme */
  int in_header;

  /* Private */
  int in_row;		/* Non-zero if a row is being filled. */
  int curr_col;		/* Current column being filled, starting at zero. */
  int curr_row;		/* Current row being filled, starting at zero. */
} Html_table;

#ifdef __cplusplus
extern "C" {
#endif

extern Html_table *html_table(Ds *ods, Html_table *otab);
extern void html_table_free(Html_table *tab);
extern int html_table_begin(Html_table *tab, Dsvec *attrs, int max_cols);
extern int html_table_end(Html_table *tab);
extern void html_row_begin(Html_table *tab);
extern void html_row_end(Html_table *tab);
extern void html_cell(Html_table *tab, char *content);
extern void html_cells(Html_table *tab, int ncells, ...);
extern void html_cellf(Html_table *tab, char *fmt, ...);
extern void html_cell2(Html_table *tab, char *val1, char *val2);
extern int html_cell_format(Html_table *tab, char *content, Html_cell *cell);
extern void html_cell_emit(Html_table *tab, Html_cell *cell);

extern char *html_span(char *class, char *text);

#ifdef __cplusplus
}
#endif

#endif