mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(etags_set_definition_hash): make buf stack variable.
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
This commit is contained in:
parent
d70a899c16
commit
06eac9f17d
@ -54,7 +54,7 @@
|
|||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
parse_define (char *buf, char **long_name, char **short_name, long *line)
|
parse_define (const char *buf, char **long_name, char **short_name, long *line)
|
||||||
{
|
{
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
enum
|
enum
|
||||||
@ -183,7 +183,7 @@ etags_set_definition_hash (const char *tagfile, const char *start_path,
|
|||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
||||||
FILE *f;
|
FILE *f;
|
||||||
static char buf[BUF_LARGE];
|
char buf[BUF_LARGE];
|
||||||
|
|
||||||
char *chekedstr = NULL;
|
char *chekedstr = NULL;
|
||||||
|
|
||||||
@ -241,14 +241,7 @@ etags_set_definition_hash (const char *tagfile, const char *start_path,
|
|||||||
|
|
||||||
canonicalize_pathname (def_hash[num].fullpath);
|
canonicalize_pathname (def_hash[num].fullpath);
|
||||||
def_hash[num].filename = g_strdup (filename);
|
def_hash[num].filename = g_strdup (filename);
|
||||||
if (shortname)
|
def_hash[num].short_define = g_strdup (shortname ? shortname : longname);
|
||||||
{
|
|
||||||
def_hash[num].short_define = g_strdup (shortname);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
def_hash[num].short_define = g_strdup (longname);
|
|
||||||
}
|
|
||||||
def_hash[num].line = line;
|
def_hash[num].line = line;
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user