projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
api refactoring
[m6w6/ext-psi]
/
src
/
types
/
decl_file.h
1
#ifndef _PSI_TYPES_DECL_FILE_H
2
#define _PSI_TYPES_DECL_FILE_H
3
4
typedef
struct
decl_file
{
5
char
*
ln
;
6
char
*
fn
;
7
}
decl_file
;
8
9
static
inline
void
free_decl_file
(
decl_file
*
file
) {
10
if
(
file
->
ln
) {
11
free
(
file
->
ln
);
12
}
13
if
(
file
->
fn
) {
14
free
(
file
->
fn
);
15
}
16
memset
(
file
,
0
,
sizeof
(*
file
));
17
}
18
19
#endif