-/* $Id: chars.c,v 1.36 2011/04/29 22:18:12 kristaps Exp $ */
+/* $Id: chars.c,v 1.37 2011/04/30 22:14:02 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
#include "chars.in"
struct mchars {
- enum mcharst type;
struct ln **htab;
};
}
struct mchars *
-mchars_init(enum mcharst type)
+mchars_init(void)
{
struct mchars *tab;
struct ln **htab;
}
tab->htab = htab;
- tab->type = type;
return(tab);
}
-/* $Id: html.c,v 1.134 2011/04/30 10:18:24 kristaps Exp $ */
+/* $Id: html.c,v 1.135 2011/04/30 22:14:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
h->type = type;
h->tags.head = NULL;
- h->symtab = mchars_init(MCHARS_HTML);
+ h->symtab = mchars_init();
while (outopts && *outopts)
switch (getsubopt(&outopts, UNCONST(toks), &v)) {
-/* $Id: man_term.c,v 1.106 2011/04/29 22:18:12 kristaps Exp $ */
+/* $Id: man_term.c,v 1.107 2011/04/30 22:14:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
- p->symtab = mchars_init(MCHARS_ASCII);
+ p->symtab = mchars_init();
break;
default:
abort();
-/* $Id: mandoc.h,v 1.71 2011/04/29 22:18:12 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.72 2011/04/30 22:14:02 kristaps Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
ESCAPE_NOSPACE /* suppress space if the last on a line */
};
-enum mcharst {
- MCHARS_ASCII, /* 7-bit ascii representation */
- MCHARS_HTML /* unicode values */
-};
-
typedef void (*mandocmsg)(enum mandocerr, enum mandoclevel,
const char *, int, int, const char *);
enum mandoc_esc mandoc_escape(const char **, const char **, int *);
-struct mchars *mchars_init(enum mcharst);
+struct mchars *mchars_init(void);
const char *mchars_num2char(const char *, size_t);
const char *mchars_spec2str(struct mchars *, const char *, size_t, size_t *);
int mchars_spec2cp(struct mchars *, const char *, size_t);
-/* $Id: mdoc_term.c,v 1.227 2011/04/29 22:18:12 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.228 2011/04/30 22:14:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
- p->symtab = mchars_init(MCHARS_ASCII);
+ p->symtab = mchars_init();
break;
default:
abort();