diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-25 14:28:59 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-07-25 14:28:59 +0000 |
commit | d7a1c33838e142532c49cdda9ea67e18aad92683 (patch) | |
tree | cf7e98dba0f9b17d889575bbb52feccb941cf7b4 /tag.h | |
parent | 7310229a6bc4ea0f603478894a168e2aa4dff9e6 (diff) | |
download | mandoc-d7a1c33838e142532c49cdda9ea67e18aad92683.tar.gz mandoc-d7a1c33838e142532c49cdda9ea67e18aad92683.tar.zst mandoc-d7a1c33838e142532c49cdda9ea67e18aad92683.zip |
Simplify and make tag_put() more efficient by integrating tag_get()
into it and by only handling NUL-terminated strings.
Minus 25 lines of code, no functional change.
Diffstat (limited to 'tag.h')
-rw-r--r-- | tag.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tag.h,v 1.3 2015/07/25 14:02:06 schwarze Exp $ */ +/* $Id: tag.h,v 1.4 2015/07/25 14:28:59 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org> * @@ -18,8 +18,7 @@ __BEGIN_DECLS char *tag_init(void); -size_t tag_get(const char *, size_t, int); -void tag_put(const char *, size_t, int, size_t); +void tag_put(const char *, int, size_t); void tag_write(void); void tag_unlink(void); |