[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')
- branch feature/etags_update_v2 created (now 5844ad6), Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 0b3b015 2/8: constify some things, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 0d360e5 5/8: fix possible infinite loop in find_filename_hash_slot, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 ca38c06 3/8: make etags -u work in etags mode, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 06b20f7 1/8: etags.c indentation fix, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 eba8dbc 6/8: exit inner copying loop at the start of a new file entry, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 fbe52da 7/8: Another -u fix, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 b658a3f 4/8: --find feature, Dmitry Gutov, 2020/12/08
- feature/etags_update_v2 5844ad6 8/8: Hopefully fix compilation errors,
Dmitry Gutov <=