version 1.1, 2018/12/13 03:40:13 |
version 1.3, 2018/12/14 06:33:14 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2014, 2017 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2014, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* 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 |
|
|
* For use in the roff(7) and eqn(7) parsers only. |
* For use in the roff(7) and eqn(7) parsers only. |
*/ |
*/ |
|
|
struct mparse; |
|
struct roff_node; |
struct roff_node; |
struct eqn_box; |
struct eqn_box; |
struct eqn_def; |
struct eqn_def; |
|
|
struct eqn_node { |
struct eqn_node { |
struct mparse *parse; /* Main parser, for error reporting. */ |
|
struct roff_node *node; /* Syntax tree of this equation. */ |
struct roff_node *node; /* Syntax tree of this equation. */ |
struct eqn_def *defs; /* Array of definitions. */ |
struct eqn_def *defs; /* Array of definitions. */ |
char *data; /* Source code of this equation. */ |
char *data; /* Source code of this equation. */ |
Line 41 struct eqn_node { |
|
Line 39 struct eqn_node { |
|
}; |
}; |
|
|
|
|
struct eqn_node *eqn_alloc(struct mparse *); |
struct eqn_node *eqn_alloc(void); |
|
struct eqn_box *eqn_box_new(void); |
void eqn_box_free(struct eqn_box *); |
void eqn_box_free(struct eqn_box *); |
void eqn_free(struct eqn_node *); |
void eqn_free(struct eqn_node *); |
void eqn_parse(struct eqn_node *); |
void eqn_parse(struct eqn_node *); |