version 1.14, 2011/03/22 09:48:13 |
version 1.19, 2011/04/17 09:08:19 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
ROFF_ERR /* badness: puke and stop */ |
ROFF_ERR /* badness: puke and stop */ |
}; |
}; |
|
|
/* |
|
* Available registers (set in libroff, accessed elsewhere). |
|
*/ |
|
enum regs { |
enum regs { |
REG_nS = 0, |
REG_nS = 0, /* nS register */ |
REG__MAX |
REG__MAX |
}; |
}; |
|
|
/* |
/* |
* A register (struct reg) can consist of many types: this consists of |
* A register (struct reg) can consist of many types: this consists of |
* normalised types from the original string form. |
* normalised types from the original string form. For the time being, |
|
* there's only an unsigned integer type. |
*/ |
*/ |
union regval { |
union regval { |
unsigned u; /* unsigned integer */ |
unsigned u; /* unsigned integer */ |
Line 75 void mandoc_msg(enum mandocerr, struct mparse *, |
|
Line 73 void mandoc_msg(enum mandocerr, struct mparse *, |
|
int, int, const char *); |
int, int, const char *); |
void mandoc_vmsg(enum mandocerr, struct mparse *, |
void mandoc_vmsg(enum mandocerr, struct mparse *, |
int, int, const char *, ...); |
int, int, const char *, ...); |
int mandoc_special(char *); |
char *mandoc_strdup(const char *); |
char *mandoc_strdup(const char *); |
char *mandoc_getarg(struct mparse *, |
char *mandoc_getarg(struct mparse *, char **, int, int *); |
char **, int, int, int *); |
char *mandoc_normdate(struct mparse *, char *, int, int); |
char *mandoc_normdate(struct mparse *, char *, int, int); |
int mandoc_eos(const char *, size_t, int); |
int mandoc_eos(const char *, size_t, int); |
int mandoc_hyph(const char *, const char *); |
int mandoc_hyph(const char *, const char *); |
|
int mandoc_getcontrol(const char *, int *); |
|
|
void mdoc_free(struct mdoc *); |
void mdoc_free(struct mdoc *); |
struct mdoc *mdoc_alloc(struct regset *, struct mparse *); |
struct mdoc *mdoc_alloc(struct regset *, struct mparse *); |
Line 103 struct roff *roff_alloc(struct regset *, struct mparse |
|
Line 102 struct roff *roff_alloc(struct regset *, struct mparse |
|
void roff_reset(struct roff *); |
void roff_reset(struct roff *); |
enum rofferr roff_parseln(struct roff *, int, |
enum rofferr roff_parseln(struct roff *, int, |
char **, size_t *, int, int *); |
char **, size_t *, int, int *); |
void roff_endparse(struct roff *); |
void roff_endparse(struct roff *); |
|
|
const struct tbl_span *roff_span(const struct roff *); |
const struct tbl_span *roff_span(const struct roff *); |
const struct eqn *roff_eqn(const struct roff *); |
const struct eqn *roff_eqn(const struct roff *); |
|
|
|
|
__END_DECLS |
__END_DECLS |
|
|