version 1.7, 2011/01/01 22:27:08 |
version 1.8, 2011/01/02 10:10:57 |
|
|
#include "libmandoc.h" |
#include "libmandoc.h" |
#include "libroff.h" |
#include "libroff.h" |
|
|
static void data(struct tbl *, struct tbl_span *, |
static void data(struct tbl_node *, struct tbl_span *, |
int, const char *, int *); |
int, const char *, int *); |
|
|
void |
void |
data(struct tbl *tbl, struct tbl_span *dp, |
data(struct tbl_node *tbl, struct tbl_span *dp, |
int ln, const char *p, int *pos) |
int ln, const char *p, int *pos) |
{ |
{ |
struct tbl_dat *dat; |
struct tbl_dat *dat; |
Line 62 data(struct tbl *tbl, struct tbl_span *dp, |
|
Line 62 data(struct tbl *tbl, struct tbl_span *dp, |
|
dp->last = dp->first = dat; |
dp->last = dp->first = dat; |
|
|
sv = *pos; |
sv = *pos; |
while (p[*pos] && p[*pos] != tbl->tab) |
while (p[*pos] && p[*pos] != tbl->opts.tab) |
(*pos)++; |
(*pos)++; |
|
|
dat->string = mandoc_malloc(*pos - sv + 1); |
dat->string = mandoc_malloc(*pos - sv + 1); |
Line 85 data(struct tbl *tbl, struct tbl_span *dp, |
|
Line 85 data(struct tbl *tbl, struct tbl_span *dp, |
|
} |
} |
|
|
int |
int |
tbl_data(struct tbl *tbl, int ln, const char *p) |
tbl_data(struct tbl_node *tbl, int ln, const char *p) |
{ |
{ |
struct tbl_span *dp; |
struct tbl_span *dp; |
struct tbl_row *rp; |
struct tbl_row *rp; |