I spent too much time hunting this down myself, I think it’s worth sparing
other people that.
APPROVE COMMIT
NOTE: This patch has been committed.
src/ChangeLog addition:
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.
XEmacs Trunk source patch:
Diff command: cvs -q diff -Nu
Files affected: src/doc.c
Index: src/doc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/doc.c,v
retrieving revision 1.38
diff -u -u -r1.38 doc.c
--- src/doc.c 2006/05/21 18:35:31 1.38
+++ src/doc.c 2006/08/06 16:34:28
@@ -742,6 +742,10 @@
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))
{
--
Santa Maradona, priez pour moi!
Show replies by thread