]> code.delx.au - gnu-emacs/commitdiff
(Fget_char_property): Pass new arg to overlays_at.
authorRichard M. Stallman <rms@gnu.org>
Wed, 21 Sep 1994 06:25:26 +0000 (06:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 21 Sep 1994 06:25:26 +0000 (06:25 +0000)
(NULL): Define if not defined.

src/textprop.c

index 515838732c80d4a20deaac5cbe16c91bcc176d06..853aa12c902a29a7e1663c66488735e55af326ae 100644 (file)
@@ -22,6 +22,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "intervals.h"
 #include "buffer.h"
 #include "window.h"
+
+#ifndef NULL
+#define NULL (void *)0
+#endif
 \f
 
 /* NOTES:  previous- and next- property change will have to skip
@@ -543,7 +547,8 @@ overlays are considered only if they are associated with OBJECT.")
       len = 40;
       overlay_vec = (Lisp_Object *) alloca (len * sizeof (Lisp_Object));
 
-      noverlays = overlays_at (posn, 0, &overlay_vec, &len, &next_overlay);
+      noverlays = overlays_at (posn, 0, &overlay_vec, &len,
+                              &next_overlay, NULL);
 
       /* If there are more than 40,
         make enough space for all, and try again.  */
@@ -551,7 +556,8 @@ overlays are considered only if they are associated with OBJECT.")
        {
          len = noverlays;
          overlay_vec = (Lisp_Object *) alloca (len * sizeof (Lisp_Object));
-         noverlays = overlays_at (posn, 0, &overlay_vec, &len, &next_overlay);
+         noverlays = overlays_at (posn, 0, &overlay_vec, &len,
+                                  &next_overlay, NULL);
        }
       noverlays = sort_overlays (overlay_vec, noverlays, w);