changeset: 6669:5270cd795043
user: Kevin McCarthy <[email protected]>
date: Sun Jun 05 18:30:37 2016 -0700
link: http://dev.mutt.org/hg/mutt/rev/5270cd795043
Add warning in makedoc for unexpected prefices. (see #3845)
In case other types get renamed again in the future, add a warning
message to makedoc.c.
diffs (23 lines):
diff -r 91608dca6f12 -r 5270cd795043 doc/makedoc.c
--- a/doc/makedoc.c Sun Jun 05 18:05:41 2016 -0700
+++ b/doc/makedoc.c Sun Jun 05 18:30:37 2016 -0700
@@ -499,6 +499,9 @@
case DT_SORT:
{
/* heuristic! */
+ if (strncmp (s, "SORT_", 5))
+ fprintf (stderr,
+ "WARNING: expected prefix of SORT_ for type DT_SORT instead
of %s\n", s);
strncpy (t, s + 5, l);
for (; *t; t++) *t = tolower ((unsigned char) *t);
break;
@@ -506,6 +509,9 @@
case DT_MAGIC:
{
/* heuristic! */
+ if (strncmp (s, "MUTT_", 5))
+ fprintf (stderr,
+ "WARNING: expected prefix of MUTT_ for type DT_MAGIC instead
of %s\n", s);
strncpy (t, s + 5, l);
for (; *t; t++) *t = tolower ((unsigned char) *t);
break;