aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tag.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-07-25 14:28:59 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-07-25 14:28:59 +0000
commitd7a1c33838e142532c49cdda9ea67e18aad92683 (patch)
treecf7e98dba0f9b17d889575bbb52feccb941cf7b4 /tag.h
parent7310229a6bc4ea0f603478894a168e2aa4dff9e6 (diff)
downloadmandoc-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tag.h b/tag.h
index b6030bb4..34a7eee2 100644
--- a/tag.h
+++ b/tag.h
@@ -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);