aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc_xr.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-02 15:31:59 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-02 15:31:59 +0000
commite5501471e172d4f6de0c3e4afca1fffb5cc93ea7 (patch)
tree050e48715fe221def4dff8fb7079f2a07fa7e9fd /mandoc_xr.h
parent2a02f7a0af4b53898861601ef0745e74f3966315 (diff)
downloadmandoc-e5501471e172d4f6de0c3e4afca1fffb5cc93ea7.tar.gz
mandoc-e5501471e172d4f6de0c3e4afca1fffb5cc93ea7.tar.zst
mandoc-e5501471e172d4f6de0c3e4afca1fffb5cc93ea7.zip
add warning "cross reference to self"; inspired by mdoclint
Diffstat (limited to 'mandoc_xr.h')
-rw-r--r--mandoc_xr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mandoc_xr.h b/mandoc_xr.h
index 3fe2f56d..bf82598d 100644
--- a/mandoc_xr.h
+++ b/mandoc_xr.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc_xr.h,v 1.1 2017/07/01 09:47:30 schwarze Exp $ */
+/* $Id: mandoc_xr.h,v 1.2 2017/07/02 15:31:59 schwarze Exp $ */
/*
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -19,12 +19,12 @@ struct mandoc_xr {
struct mandoc_xr *next;
char *sec;
char *name;
- int line;
+ int line; /* Or -1 for this page's own names. */
int pos;
char hashkey[];
};
void mandoc_xr_reset(void);
-void mandoc_xr_add(const char *, const char *, int, int);
+int mandoc_xr_add(const char *, const char *, int, int);
struct mandoc_xr *mandoc_xr_get(void);
void mandoc_xr_free(void);