Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d3706fa9
Commit
d3706fa9
authored
Aug 25, 2008
by
Francesco Potortì
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Do not use static space for the tagfile string.
parent
736215fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lib-src/etags.c
lib-src/etags.c
+6
-5
No files found.
lib-src/etags.c
View file @
d3706fa9
...
...
@@ -79,7 +79,7 @@ University of California, as described above. */
* together with a configuration file containing regexp definitions for etags.
*/
char
pot_etags_version
[]
=
"@(#) pot revision number is 17.38.1.
3
"
;
char
pot_etags_version
[]
=
"@(#) pot revision number is 17.38.1.
4
"
;
#define TRUE 1
#define FALSE 0
...
...
@@ -892,7 +892,7 @@ etags --help --lang=ada.");
# define EMACS_NAME "standalone"
#endif
#ifndef VERSION
# define VERSION "17.38.1.
3
"
# define VERSION "17.38.1.
4
"
#endif
static
void
print_version
()
...
...
@@ -1251,7 +1251,7 @@ main (argc, argv)
}
if
(
tagfile
==
NULL
)
tagfile
=
CTAGS
?
"tags"
:
"TAGS"
;
tagfile
=
savestr
(
CTAGS
?
"tags"
:
"TAGS"
)
;
cwd
=
etags_getcwd
();
/* the current working directory */
if
(
cwd
[
strlen
(
cwd
)
-
1
]
!=
'/'
)
{
...
...
@@ -1259,10 +1259,11 @@ main (argc, argv)
cwd
=
concat
(
oldcwd
,
"/"
,
""
);
free
(
oldcwd
);
}
/* Relative file names are made relative to the current directory. */
/* Compute base directory for relative file names. */
if
(
streq
(
tagfile
,
"-"
)
||
strneq
(
tagfile
,
"/dev/"
,
5
))
tagfiledir
=
cwd
;
tagfiledir
=
cwd
;
/* relative file names are relative to cwd */
else
{
canonicalize_filename
(
tagfile
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment