Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5c19cd0b
Commit
5c19cd0b
authored
Jun 02, 2008
by
Jim Meyering
Browse files
* lib-src/ebrowse.c (xfree): Remove definition; s/xfree/free/
parent
c2cd06e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
17 deletions
+9
-17
lib-src/ChangeLog
lib-src/ChangeLog
+2
-0
lib-src/ebrowse.c
lib-src/ebrowse.c
+7
-17
No files found.
lib-src/ChangeLog
View file @
5c19cd0b
2008-06-02 Jim Meyering <meyering@redhat.com>
* lib-src/ebrowse.c (xfree): Remove definition; s/xfree/free/
remove useless if-before-free tests
* lib-src/ebrowse.c (xfree): Likewise.
* lib-src/etags.c (process_file_name, free_tree, free_fdesc): Likewise.
...
...
lib-src/ebrowse.c
View file @
5c19cd0b
...
...
@@ -589,16 +589,6 @@ xrealloc (p, sz)
}
/* Like free but always check for null pointers.. */
void
xfree
(
p
)
void
*
p
;
{
free
(
p
);
}
/* Like strdup, but print an error and exit if not enough memory is
available.. If S is null, return null. */
...
...
@@ -2758,7 +2748,7 @@ member (cls, vis)
if
(
LOOKING_AT
(
'{'
)
&&
id
&&
cls
)
add_member_defn
(
cls
,
id
,
regexp
,
pos
,
hash
,
0
,
sc
,
flags
);
x
free
(
id
);
free
(
id
);
id
=
NULL
;
sc
=
SC_MEMBER
;
break
;
...
...
@@ -2837,7 +2827,7 @@ member (cls, vis)
print_info
();
}
x
free
(
id
);
free
(
id
);
}
...
...
@@ -3074,7 +3064,7 @@ parse_qualified_ident_or_type (last_id)
cls
=
add_sym
(
id
,
cls
);
*
last_id
=
NULL
;
x
free
(
id
);
free
(
id
);
id
=
NULL
;
id_size
=
0
;
MATCH
();
...
...
@@ -3277,7 +3267,7 @@ add_declarator (cls, id, flags, sc)
print_info
();
}
x
free
(
*
id
);
free
(
*
id
);
*
id
=
NULL
;
*
cls
=
NULL
;
}
...
...
@@ -3330,7 +3320,7 @@ declaration (flags)
`declare (X, Y)\n class A : ...'. */
if
(
id
)
{
x
free
(
id
);
free
(
id
);
return
;
}
...
...
@@ -3424,7 +3414,7 @@ declaration (flags)
if
(
!
cls
&&
id
&&
LOOKING_AT
(
'{'
))
add_global_defn
(
id
,
regexp
,
pos
,
hash
,
0
,
sc
,
flags
);
x
free
(
id
);
free
(
id
);
id
=
NULL
;
break
;
}
...
...
@@ -3480,7 +3470,7 @@ globals (start_flags)
MATCH_IF
(
'}'
);
}
x
free
(
namespace_name
);
free
(
namespace_name
);
}
}
break
;
...
...
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