Lines Matching refs:dat
45 struct tbl_dat *dat, *pdat;
88 dat = mandoc_malloc(sizeof(*dat));
89 dat->layout = cp;
90 dat->next = NULL;
91 dat->string = NULL;
92 dat->hspans = 0;
93 dat->vspans = 0;
94 dat->block = 0;
95 dat->pos = TBL_DATA_NONE;
111 pdat->layout->col < dat->layout->col)
130 dat->hspans++;
137 dp->first = dat;
139 dp->last->next = dat;
140 dp->last = dat;
153 dat->string = mandoc_strndup(p + sv, *pos - sv);
158 if ( ! strcmp(dat->string, "_"))
159 dat->pos = TBL_DATA_HORIZ;
160 else if ( ! strcmp(dat->string, "="))
161 dat->pos = TBL_DATA_DHORIZ;
162 else if ( ! strcmp(dat->string, "\\_"))
163 dat->pos = TBL_DATA_NHORIZ;
164 else if ( ! strcmp(dat->string, "\\="))
165 dat->pos = TBL_DATA_NDHORIZ;
167 dat->pos = TBL_DATA_DATA;
169 if ((dat->layout->pos == TBL_CELL_HORIZ ||
170 dat->layout->pos == TBL_CELL_DHORIZ ||
171 dat->layout->pos == TBL_CELL_DOWN) &&
172 dat->pos == TBL_DATA_DATA && *dat->string != '\0')
174 ln, sv, "%s", dat->string);
180 struct tbl_dat *dat;
183 dat = tbl->last_span->last;
201 dat->pos = TBL_DATA_DATA;
202 dat->block = 1;
204 if (dat->string != NULL) {
205 sz = strlen(p + pos) + strlen(dat->string) + 2;
206 dat->string = mandoc_realloc(dat->string, sz);
207 (void)strlcat(dat->string, " ", sz);
208 (void)strlcat(dat->string, p + pos, sz);
210 dat->string = mandoc_strdup(p + pos);
212 if (dat->layout->pos == TBL_CELL_DOWN)
214 ln, pos, "%s", dat->string);