aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_int.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-06-02 11:29:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-06-02 11:29:07 +0000
commit1ecd7d69278a7a53010b2bdde946bb18930ae850 (patch)
tree64717d1f374ac110b1ac89cb113a09d6808709df /roff_int.h
parent47c818f283c63fdbb7882e9aac6e2ab028666c9f (diff)
downloadmandoc-1ecd7d69278a7a53010b2bdde946bb18930ae850.tar.gz
mandoc-1ecd7d69278a7a53010b2bdde946bb18930ae850.tar.zst
mandoc-1ecd7d69278a7a53010b2bdde946bb18930ae850.zip
Avoid the layering violation of re-parsing for \E in roff_expand().
To that end, add another argument to roff_escape() returning the index of the escape name. This also makes the code in roff_escape() a bit more uniform in so far as it no longer needs the "char esc_name" local variable but now does everything with indices into buf[]. No functional change.
Diffstat (limited to 'roff_int.h')
-rw-r--r--roff_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/roff_int.h b/roff_int.h
index ba7032b0..a26afa98 100644
--- a/roff_int.h
+++ b/roff_int.h
@@ -83,7 +83,7 @@ enum roff_tok roffhash_find(struct ohash *, const char *, size_t);
void roffhash_free(struct ohash *);
enum mandoc_esc roff_escape(const char *, const int, const int,
- int *, int *, int *, int *);
+ int *, int *, int *, int *, int *);
void roff_state_reset(struct roff_man *);
void roff_validate(struct roff_man *);