=================================================================== RCS file: /cvs/mandoc/libmdoc.h,v retrieving revision 1.52 retrieving revision 1.55 diff -u -p -r1.52 -r1.55 --- mandoc/libmdoc.h 2010/06/03 13:44:36 1.52 +++ mandoc/libmdoc.h 2010/06/26 16:07:08 1.55 @@ -1,6 +1,6 @@ -/* $Id: libmdoc.h,v 1.52 2010/06/03 13:44:36 kristaps Exp $ */ +/* $Id: libmdoc.h,v 1.55 2010/06/26 16:07:08 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,6 +17,7 @@ #ifndef LIBMDOC_H #define LIBMDOC_H +#include "regs.h" #include "mdoc.h" enum mdoc_next { @@ -44,8 +45,13 @@ struct mdoc { enum mdoc_sec lastsec; }; -#define MACRO_PROT_ARGS struct mdoc *m, enum mdoct tok, \ - int line, int ppos, int *pos, char *buf +#define MACRO_PROT_ARGS struct mdoc *m, \ + const struct regset *regs, \ + enum mdoct tok, \ + int line, \ + int ppos, \ + int *pos, \ + char *buf struct mdoc_macro { int (*fp)(MACRO_PROT_ARGS);