summaryrefslogtreecommitdiff
path: root/usr.bin/mg/cinfo.c
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2011-11-28 04:41:40 +0000
committerlum <lum@cvs.openbsd.org>2011-11-28 04:41:40 +0000
commitb5aa1ee4118f4c7f9a9189dd9421148d8e9c78a8 (patch)
tree90302c020b2aa4660fc1214e9fd22855926cc321 /usr.bin/mg/cinfo.c
parent4214ea6a927d3e8694341d40f0387eacca0c1aca (diff)
Add some ctags support to mg. From Sunil Nimmagadda.
Man page review and suggestions from jmc@ Revewied and tested by myself, and ok deraadt@
Diffstat (limited to 'usr.bin/mg/cinfo.c')
-rw-r--r--usr.bin/mg/cinfo.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/mg/cinfo.c b/usr.bin/mg/cinfo.c
index 0a580445ccd..f5688975851 100644
--- a/usr.bin/mg/cinfo.c
+++ b/usr.bin/mg/cinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cinfo.c,v 1.15 2005/12/13 06:01:27 kjell Exp $ */
+/* $OpenBSD: cinfo.c,v 1.16 2011/11/28 04:41:39 lum Exp $ */
/* This file is in the public domain. */
@@ -19,7 +19,12 @@
* character set, and lets me ask some questions that the
* standard "ctype" macros cannot ask.
*/
-const char cinfo[256] = {
+/*
+ * Due to incompatible behaviour between "standard" emacs and
+ * ctags word traversing, '_' character's value is changed on
+ * the fly in ctags mode, hence non-const.
+ */
+char cinfo[256] = {
_MG_C, _MG_C, _MG_C, _MG_C, /* 0x0X */
_MG_C, _MG_C, _MG_C, _MG_C,
_MG_C, _MG_C, _MG_C, _MG_C,