aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-04 13:51:28 +0200
committerJuanma Barranquero2010-07-04 13:51:28 +0200
commit438105ed4d403c48cc452cd70891f04bbcdad347 (patch)
tree1f35fdb31d3de15b9a5a6f8782f154eea03ead21 /src
parent820ae8fefa06d43cf543ad62a04f98048358de7c (diff)
downloademacs-438105ed4d403c48cc452cd70891f04bbcdad347.tar.gz
emacs-438105ed4d403c48cc452cd70891f04bbcdad347.zip
Fix prototypes.
* dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent. * fileio.c (read_non_regular, read_non_regular_quit): Pass Lisp_Object, as required by internal_condition_case_1. * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object. (analyse_first): Fix "const const".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/dired.c4
-rw-r--r--src/fileio.c6
-rw-r--r--src/regex.c5
4 files changed, 18 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eeb6e30d66c..2e947aa7969 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12010-07-04 Juanma Barranquero <lekktu@gmail.com>
2
3 Fix prototypes.
4
5 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
6 * fileio.c (read_non_regular, read_non_regular_quit): Pass Lisp_Object,
7 as required by internal_condition_case_1.
8 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
9 (analyse_first): Fix "const const".
10
12010-07-04 Dan Nicolaescu <dann@ics.uci.edu> 112010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2 12
3 * alloc.c: Convert function definitions to standard C. 13 * alloc.c: Convert function definitions to standard C.
diff --git a/src/dired.c b/src/dired.c
index b5ee1546306..69a6a4390c4 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -472,7 +472,7 @@ These are all file names in directory DIRECTORY which begin with FILE. */)
472 return file_name_completion (file, directory, 1, 0, Qnil); 472 return file_name_completion (file, directory, 1, 0, Qnil);
473} 473}
474 474
475static int file_name_completion_stat (Lisp_Object dirname, struct dirent *dp, struct stat *st_addr); 475static int file_name_completion_stat (Lisp_Object dirname, DIRENTRY *dp, struct stat *st_addr);
476Lisp_Object Qdefault_directory; 476Lisp_Object Qdefault_directory;
477 477
478Lisp_Object 478Lisp_Object
@@ -839,7 +839,7 @@ scmp (register unsigned char *s1, register unsigned char *s2, int len)
839} 839}
840 840
841static int 841static int
842file_name_completion_stat (Lisp_Object dirname, struct dirent *dp, struct stat *st_addr) 842file_name_completion_stat (Lisp_Object dirname, DIRENTRY *dp, struct stat *st_addr)
843{ 843{
844 int len = NAMLEN (dp); 844 int len = NAMLEN (dp);
845 int pos = SCHARS (dirname); 845 int pos = SCHARS (dirname);
diff --git a/src/fileio.c b/src/fileio.c
index c81dc6705c7..0f80d572794 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3248,12 +3248,12 @@ static EMACS_INT non_regular_nbytes;
3248 3248
3249 3249
3250/* Read from a non-regular file. 3250/* Read from a non-regular file.
3251 Read non_regular_trytry bytes max from non_regular_fd. 3251 Read non_regular_nbytes bytes max from non_regular_fd.
3252 Non_regular_inserted specifies where to put the read bytes. 3252 Non_regular_inserted specifies where to put the read bytes.
3253 Value is the number of bytes read. */ 3253 Value is the number of bytes read. */
3254 3254
3255static Lisp_Object 3255static Lisp_Object
3256read_non_regular (void) 3256read_non_regular (Lisp_Object ignored)
3257{ 3257{
3258 EMACS_INT nbytes; 3258 EMACS_INT nbytes;
3259 3259
@@ -3271,7 +3271,7 @@ read_non_regular (void)
3271 in insert-file-contents. */ 3271 in insert-file-contents. */
3272 3272
3273static Lisp_Object 3273static Lisp_Object
3274read_non_regular_quit (void) 3274read_non_regular_quit (Lisp_Object ignored)
3275{ 3275{
3276 return Qnil; 3276 return Qnil;
3277} 3277}
diff --git a/src/regex.c b/src/regex.c
index 67efee37d82..10ab857b00a 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -3984,7 +3984,7 @@ group_in_compile_stack (compile_stack_type compile_stack, regnum_t regnum)
3984 Return -1 if fastmap was not updated accurately. */ 3984 Return -1 if fastmap was not updated accurately. */
3985 3985
3986static int 3986static int
3987analyse_first (const re_char *p, const re_char *pend, char *fastmap, const const int multibyte) 3987analyse_first (const re_char *p, const re_char *pend, char *fastmap, const int multibyte)
3988{ 3988{
3989 int j, k; 3989 int j, k;
3990 boolean not; 3990 boolean not;
@@ -6385,7 +6385,8 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const re_char *string1, int
6385 bytes; nonzero otherwise. */ 6385 bytes; nonzero otherwise. */
6386 6386
6387static int 6387static int
6388bcmp_translate (const re_char *s1, const re_char *s2, register int len, Lisp_Object translate, const const int target_multibyte) 6388bcmp_translate (const re_char *s1, const re_char *s2, register int len,
6389 RE_TRANSLATE_TYPE translate, const int target_multibyte)
6389{ 6390{
6390 register re_char *p1 = s1, *p2 = s2; 6391 register re_char *p1 = s1, *p2 = s2;
6391 re_char *p1_end = s1 + len; 6392 re_char *p1_end = s1 + len;