emacs-diffs
[Top][All Lists]
Advanced

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

feature/etags_update_v2 5844ad6 8/8: Hopefully fix compilation errors


From: Dmitry Gutov
Subject: feature/etags_update_v2 5844ad6 8/8: Hopefully fix compilation errors
Date: Tue, 8 Dec 2020 16:48:03 -0500 (EST)

branch: feature/etags_update_v2
commit 5844ad6c38b05ec26aea33cfa7cb8b175f539cb1
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Hopefully fix compilation errors
---
 lib-src/etags.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib-src/etags.c b/lib-src/etags.c
index 4fd0d63..84598fa 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1828,7 +1828,7 @@ get_language_from_interpreter (char *interpreter)
  * Return a language given the file name.
  */
 static language *
-get_language_from_filename (const char *file, boot case_sensitive)
+get_language_from_filename (const char *file, bool case_sensitive)
 {
   language *lang;
   const char **name, **ext, *suffix;
@@ -7429,7 +7429,7 @@ relative_filename (const char *file, const char *dir)
 {
   const char *fp, *dp;
   char *afn, *res;
-  ptrdiff i;
+  ptrdiff_t i;
 
   /* Find the common root of file and dir (with a trailing slash). */
   afn = absolute_filename (file, cwd);
@@ -7873,7 +7873,7 @@ split_arguments (char *input, int *argc, char ***argv)
        break;
 
       ++*argc;
-      xrnew (*argv, 1 + *argc, char *);
+      xrnew (*argv, 1 + *argc, 1);
 
       (*argv)[*argc - 1] = input;
       (*argv)[*argc] = NULL;
@@ -7898,8 +7898,7 @@ add_entry (char *line, int lineno)
        filename_matcher_size *= 2;
 
       matchers = (struct filename_matcher *)
-       xrealloc (matchers, (filename_matcher_size
-                            * sizeof (struct filename_matcher)));
+       xnrealloc (matchers, filename_matcher_size, sizeof (struct 
filename_matcher));
     }
 
   if (*line == '#' || *line == '\0')



reply via email to

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