Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
fd4d2e0b
Commit
fd4d2e0b
authored
May 29, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide a function to get a symbols full name
parent
a29d1e8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
vcc_compile.h
lib/libvcc/vcc_compile.h
+1
-0
vcc_symb.c
lib/libvcc/vcc_symb.c
+10
-0
vcc_xref.c
lib/libvcc/vcc_xref.c
+1
-12
No files found.
lib/libvcc/vcc_compile.h
View file @
fd4d2e0b
...
...
@@ -322,6 +322,7 @@ void vcc_Eval_Func(struct vcc *, const struct vjsn_val *,
const
char
*
,
const
struct
symbol
*
);
void
VCC_GlobalSymbol
(
struct
symbol
*
,
vcc_type_t
fmt
,
const
char
*
pfx
);
struct
symbol
*
VCC_HandleSymbol
(
struct
vcc
*
,
vcc_type_t
,
const
char
*
);
void
VCC_SymName
(
struct
vsb
*
,
const
struct
symbol
*
);
/* vcc_obj.c */
void
vcc_Var_Init
(
struct
vcc
*
);
...
...
lib/libvcc/vcc_symb.c
View file @
fd4d2e0b
...
...
@@ -72,6 +72,16 @@ VCC_PrintCName(struct vsb *vsb, const char *b, const char *e)
VSB_printf
(
vsb
,
"_%02x_"
,
*
b
);
}
void
VCC_SymName
(
struct
vsb
*
vsb
,
const
struct
symbol
*
sym
)
{
if
(
sym
->
parent
!=
NULL
&&
sym
->
parent
->
parent
!=
NULL
)
{
VCC_SymName
(
vsb
,
sym
->
parent
);
VSB_putc
(
vsb
,
'.'
);
}
VSB_cat
(
vsb
,
sym
->
name
);
}
static
struct
symbol
*
vcc_new_symbol
(
struct
vcc
*
tl
,
const
char
*
b
,
const
char
*
e
)
{
...
...
lib/libvcc/vcc_xref.c
View file @
fd4d2e0b
...
...
@@ -326,17 +326,6 @@ vcc_CheckUses(struct vcc *tl)
/*---------------------------------------------------------------------*/
static
void
vcc_pnam
(
struct
vcc
*
tl
,
const
struct
symbol
*
sym
)
{
if
(
sym
->
parent
!=
tl
->
symbols
)
{
vcc_pnam
(
tl
,
sym
->
parent
);
Fc
(
tl
,
0
,
"."
);
}
Fc
(
tl
,
0
,
"%s"
,
sym
->
name
);
}
static
void
v_matchproto_
(
symwalk_f
)
vcc_xreftable
(
struct
vcc
*
tl
,
const
struct
symbol
*
sym
)
{
...
...
@@ -347,7 +336,7 @@ vcc_xreftable(struct vcc *tl, const struct symbol *sym)
Fc
(
tl
,
0
,
" * %-8s "
,
sym
->
kind
->
name
);
Fc
(
tl
,
0
,
" %-9s "
,
sym
->
type
->
name
);
Fc
(
tl
,
0
,
" %2u %2u "
,
sym
->
lorev
,
sym
->
hirev
);
vcc_pnam
(
tl
,
sym
);
VCC_SymName
(
tl
->
fc
,
sym
);
if
(
sym
->
wildcard
!=
NULL
)
Fc
(
tl
,
0
,
"*"
);
Fc
(
tl
,
0
,
"
\n
"
);
...
...
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