User: aidan
Date: 06/08/06 18:37:36
Modified: xemacs/src ChangeLog doc.c
Log:
Add an informative assertion and comment to snarf-documentation.
Revision Changes Path
1.995 +7 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.994
retrieving revision 1.995
diff -u -p -r1.994 -r1.995
--- ChangeLog 2006/08/05 08:30:35 1.994
+++ ChangeLog 2006/08/06 16:37:31 1.995
@@ -1,3 +1,10 @@
+2006-08-06 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * doc.c (Fsnarf_documentation):
+ Add an assertion and a comment, rather than crashing in the
+ 76584th call of hash_string when someone's using a DOC file that
+ doesn't match the format.
+
2006-08-05 Aidan Kehoe <kehoea(a)parhasard.net>
* syntax.c (complex_vars_of_syntax):
1.39 +4 -0 XEmacs/xemacs/src/doc.c
Index: doc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/doc.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- doc.c 2006/05/21 18:35:31 1.38
+++ doc.c 2006/08/06 16:37:33 1.39
@@ -742,6 +742,10 @@ when doc strings are referred to in the
if (p != end)
{
end = qxestrchr (p, '\n');
+ /* If you trigger a failure with of this assertion, you probably
+ configured with --quick-build and need to to rebuild your DOC
+ file. */
+ assert((end - p - 2) > -1);
sym = oblookup (Vobarray, p + 2, end - p - 2);
if (SYMBOLP (sym))
{
Show replies by date