summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 19:47:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 19:47:40 +0000
commitc982f1ac2d0b17fd63d23cee99cea7933a1fc3cb (patch)
treec87cfa80c0cad5b5b10bfc1de3aaf54948f7495f
parentb65033a3e2bc67bf2371679ab0cb8b49e0ff1d0a (diff)
downloadmandoc-c982f1ac2d0b17fd63d23cee99cea7933a1fc3cb.tar.gz
Removed some unnecesary functions.
-rw-r--r--private.h10
-rw-r--r--xstd.c7
2 files changed, 0 insertions, 17 deletions
diff --git a/private.h b/private.h
index 8767afad..a70f976d 100644
--- a/private.h
+++ b/private.h
@@ -97,7 +97,6 @@ void mdoc_vmsg(struct mdoc *, int, int,
const char *, ...);
int mdoc_verr(struct mdoc *, int, int,
const char *, ...);
-
int mdoc_macro(MACRO_PROT_ARGS);
int mdoc_word_alloc(struct mdoc *,
int, int, const char *);
@@ -111,28 +110,22 @@ int mdoc_tail_alloc(struct mdoc *, int, int, int);
int mdoc_body_alloc(struct mdoc *, int, int, int);
void mdoc_node_free(struct mdoc_node *);
void mdoc_node_freelist(struct mdoc_node *);
-void mdoc_sibling(struct mdoc *, int, struct mdoc_node **,
- struct mdoc_node **, struct mdoc_node *);
void *mdoc_tokhash_alloc(void);
int mdoc_tokhash_find(const void *, const char *);
void mdoc_tokhash_free(void *);
int mdoc_iscdelim(char);
size_t mdoc_isescape(const char *);
enum mdoc_sec mdoc_atosec(const char *);
-
time_t mdoc_atotime(const char *);
size_t mdoc_macro2len(int);
-
const char *mdoc_a2arch(const char *);
const char *mdoc_a2vol(const char *);
const char *mdoc_a2msec(const char *);
-
int mdoc_valid_pre(struct mdoc *,
const struct mdoc_node *);
int mdoc_valid_post(struct mdoc *);
int mdoc_action_pre(struct mdoc *, struct mdoc_node *);
int mdoc_action_post(struct mdoc *);
-
int mdoc_argv(struct mdoc *, int, int,
struct mdoc_arg **, int *, char *);
#define ARGV_ERROR (-1)
@@ -148,16 +141,13 @@ int mdoc_args(struct mdoc *, int,
#define ARGS_PUNCT (2)
#define ARGS_QWORD (3)
#define ARGS_PHRASE (4)
-
int xstrlcpys(char *, const struct mdoc_node *, size_t);
int xstrlcat(char *, const char *, size_t);
int xstrlcpy(char *, const char *, size_t);
int xstrcmp(const char *, const char *);
-int xstrncmp(const char *, const char *, size_t);
void *xcalloc(size_t, size_t);
void *xrealloc(void *, size_t);
char *xstrdup(const char *);
-
int macro_end(struct mdoc *);
__END_DECLS
diff --git a/xstd.c b/xstd.c
index 8326aa2e..04ed7bdb 100644
--- a/xstd.c
+++ b/xstd.c
@@ -35,13 +35,6 @@ extern size_t strlcpy(char *, const char *, size_t);
int
-xstrncmp(const char *p1, const char *p2, size_t sz)
-{
-
- return(0 == strncmp(p1, p2, sz));
-}
-
-int
xstrcmp(const char *p1, const char *p2)
{