summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-15 19:33:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-15 19:33:01 +0000
commit2d3d5f5fd44b5ad2d7a6e25fce7aa4778e4a3a7b (patch)
tree944b972bd2bc945602c90b0c0a04c5401c6c7bf2 /main.h
parent5f847ab22e99d73a0733440c20af6ad390ccd6a4 (diff)
downloadmandoc-2d3d5f5fd44b5ad2d7a6e25fce7aa4778e4a3a7b.tar.gz
To remove the const qualifier from a pointer to an object - either
because we know it is actually mutable or because we are passing it to a function that doesn't accept a const object but won't actually attempt to modify it - simply casting from (const type *) to (type *) is legal C and clearly expresses the intent. So get rid of the obfuscating UNCONST macro. Basic idea discussed with guenther@.
Diffstat (limited to 'main.h')
-rw-r--r--main.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/main.h b/main.h
index 9f7a5333..f53ae2ad 100644
--- a/main.h
+++ b/main.h
@@ -16,8 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
-
struct roff_man;
struct manoutput;