diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 11:31:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 11:31:43 +0000 |
commit | 6cee093f50dd39b838bed35cea223b8d4a610f06 (patch) | |
tree | 2046a9ba0de8f00ad38d56abdceb94d3d278f9b4 /libmandoc.h | |
parent | 2022aa054cb9e537289b1b4d6296e0410e4f98a0 (diff) | |
download | mandoc-6cee093f50dd39b838bed35cea223b8d4a610f06.tar.gz mandoc-6cee093f50dd39b838bed35cea223b8d4a610f06.tar.zst mandoc-6cee093f50dd39b838bed35cea223b8d4a610f06.zip |
mark defos as const; nobody needs to change it,
and it is occasionally useful to be able to pass literal strings
Diffstat (limited to 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmandoc.h b/libmandoc.h index a05e709c..1011cc50 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.41 2014/04/20 16:46:04 schwarze Exp $ */ +/* $Id: libmandoc.h,v 1.42 2014/07/09 11:31:43 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -50,7 +50,8 @@ int mandoc_strntoi(const char *, size_t, int); const char *mandoc_a2msec(const char*); void mdoc_free(struct mdoc *); -struct mdoc *mdoc_alloc(struct roff *, struct mparse *, char *, int); +struct mdoc *mdoc_alloc(struct roff *, struct mparse *, + const char *, int); void mdoc_reset(struct mdoc *); int mdoc_parseln(struct mdoc *, int, char *, int); int mdoc_endparse(struct mdoc *); |