version 1.52, 2010/06/03 13:44:36 |
version 1.55, 2010/06/26 16:07:08 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2008, 2009 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 |
|
|
#ifndef LIBMDOC_H |
#ifndef LIBMDOC_H |
#define LIBMDOC_H |
#define LIBMDOC_H |
|
|
|
#include "regs.h" |
#include "mdoc.h" |
#include "mdoc.h" |
|
|
enum mdoc_next { |
enum mdoc_next { |
|
|
enum mdoc_sec lastsec; |
enum mdoc_sec lastsec; |
}; |
}; |
|
|
#define MACRO_PROT_ARGS struct mdoc *m, enum mdoct tok, \ |
#define MACRO_PROT_ARGS struct mdoc *m, \ |
int line, int ppos, int *pos, char *buf |
const struct regset *regs, \ |
|
enum mdoct tok, \ |
|
int line, \ |
|
int ppos, \ |
|
int *pos, \ |
|
char *buf |
|
|
struct mdoc_macro { |
struct mdoc_macro { |
int (*fp)(MACRO_PROT_ARGS); |
int (*fp)(MACRO_PROT_ARGS); |