version 1.37, 2011/07/23 18:44:42 |
version 1.39, 2014/03/23 11:25:26 |
|
|
#include <time.h> |
#include <time.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
|
#include "mandoc_aux.h" |
#include "libmandoc.h" |
#include "libmandoc.h" |
#include "libroff.h" |
#include "libroff.h" |
|
|
Line 294 eqn_read(struct eqn_node **epp, int ln, |
|
Line 295 eqn_read(struct eqn_node **epp, int ln, |
|
*/ |
*/ |
|
|
if (0 == strncmp(p, ".EN", 3)) { |
if (0 == strncmp(p, ".EN", 3)) { |
er = eqn_end(ep); |
er = eqn_end(epp); |
*epp = NULL; |
|
p += 3; |
p += 3; |
while (' ' == *p || '\t' == *p) |
while (' ' == *p || '\t' == *p) |
p++; |
p++; |
Line 333 eqn_alloc(const char *name, int pos, int line, struct |
|
Line 333 eqn_alloc(const char *name, int pos, int line, struct |
|
|
|
p = mandoc_calloc(1, sizeof(struct eqn_node)); |
p = mandoc_calloc(1, sizeof(struct eqn_node)); |
|
|
if ('\0' != *name) { |
if (name && '\0' != *name) { |
sz = strlen(name); |
sz = strlen(name); |
assert(sz); |
assert(sz); |
do { |
do { |
Line 352 eqn_alloc(const char *name, int pos, int line, struct |
|
Line 352 eqn_alloc(const char *name, int pos, int line, struct |
|
} |
} |
|
|
enum rofferr |
enum rofferr |
eqn_end(struct eqn_node *ep) |
eqn_end(struct eqn_node **epp) |
{ |
{ |
|
struct eqn_node *ep; |
struct eqn_box *root; |
struct eqn_box *root; |
enum eqn_rest c; |
enum eqn_rest c; |
|
|
|
ep = *epp; |
|
*epp = NULL; |
|
|
ep->eqn.root = mandoc_calloc(1, sizeof(struct eqn_box)); |
ep->eqn.root = mandoc_calloc(1, sizeof(struct eqn_box)); |
|
|