* dired.c (compile_pattern): Move decl from here ...
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 18:08:06 +0000 (11:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 18:08:06 +0000 (11:08 -0700)
* lisp.h: ... to here, so that it can be checked.
(struct re_registers): New forward decl.

src/ChangeLog
src/dired.c
src/lisp.h

index d4f8061..ba863ba 100644 (file)
@@ -1,5 +1,9 @@
 2011-03-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * dired.c (compile_pattern): Move decl from here ...
+       * lisp.h: ... to here, so that it can be checked.
+       (struct re_registers): New forward decl.
+
        * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
 
        * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
index 4080e17..3e2ce5e 100644 (file)
@@ -79,11 +79,6 @@ extern struct direct *readdir (DIR *);
 #include "regex.h"
 #include "blockinput.h"
 
-/* Returns a search buffer, with a fastmap allocated and ready to go.  */
-extern struct re_pattern_buffer *compile_pattern (Lisp_Object,
-                                                 struct re_registers *,
-                                                 Lisp_Object, int, int);
-
 Lisp_Object Qdirectory_files;
 Lisp_Object Qdirectory_files_and_attributes;
 Lisp_Object Qfile_name_completion;
index ddaf043..ec45b83 100644 (file)
@@ -3025,6 +3025,10 @@ EXFUN (Fset_match_data, 2);
 EXFUN (Fmatch_beginning, 1);
 EXFUN (Fmatch_end, 1);
 extern void record_unwind_save_match_data (void);
+struct re_registers;
+extern struct re_pattern_buffer *compile_pattern (Lisp_Object,
+                                                 struct re_registers *,
+                                                 Lisp_Object, int, int);
 extern int fast_string_match (Lisp_Object, Lisp_Object);
 extern int fast_c_string_match_ignore_case (Lisp_Object, const char *);
 extern int fast_string_match_ignore_case (Lisp_Object, Lisp_Object);