emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/make-docfile.c,v


From: Adrian Robert
Subject: [Emacs-diffs] Changes to emacs/lib-src/make-docfile.c,v
Date: Tue, 15 Jul 2008 18:15:26 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Adrian Robert <arobert> 08/07/15 18:15:19

Index: lib-src/make-docfile.c
===================================================================
RCS file: /sources/emacs/emacs/lib-src/make-docfile.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -b -r1.73 -r1.74
--- lib-src/make-docfile.c      1 Jul 2008 03:00:46 -0000       1.73
+++ lib-src/make-docfile.c      15 Jul 2008 18:14:55 -0000      1.74
@@ -533,7 +533,7 @@
 }
 
 /* Read through a c file.  If a .o file is named,
-   the corresponding .c file is read instead.
+   the corresponding .c or .m file is read instead.
    Looks for DEFUN constructs such as are defined in ../src/lisp.h.
    Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED.  */
 
@@ -555,6 +555,15 @@
 
   infile = fopen (filename, mode);
 
+  if (infile == NULL && extension == 'o')
+    {
+      /* try .m */
+      filename[strlen (filename) - 1] = 'm';
+      infile = fopen (filename, mode);
+      if (infile == NULL)
+        filename[strlen (filename) - 1] = 'c'; /* don't confuse people */
+    }
+
   /* No error if non-ex input file */
   if (infile == NULL)
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]