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
5d3d3eea
Commit
5d3d3eea
authored
May 16, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make vcc typenames available in lower-case as well
parent
b2a86df6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
generate.py
lib/libvcc/generate.py
+1
-1
vcc_compile.h
lib/libvcc/vcc_compile.h
+1
-1
vcc_types.c
lib/libvcc/vcc_types.c
+1
-1
No files found.
lib/libvcc/generate.py
View file @
5d3d3eea
...
@@ -793,7 +793,7 @@ file_header(ft)
...
@@ -793,7 +793,7 @@ file_header(ft)
lint_start
(
ft
)
lint_start
(
ft
)
for
vcltype
in
sorted
(
vcltypes
.
keys
()):
for
vcltype
in
sorted
(
vcltypes
.
keys
()):
ft
.
write
(
"VCC_TYPE("
+
vcltype
+
")
\n
"
)
ft
.
write
(
"VCC_TYPE("
+
vcltype
+
"
, "
+
vcltype
.
lower
()
+
"
)
\n
"
)
ft
.
write
(
"#undef VCC_TYPE
\n
"
)
ft
.
write
(
"#undef VCC_TYPE
\n
"
)
lint_end
(
ft
)
lint_end
(
ft
)
ft
.
close
()
ft
.
close
()
...
...
lib/libvcc/vcc_compile.h
View file @
5d3d3eea
...
@@ -106,7 +106,7 @@ struct type {
...
@@ -106,7 +106,7 @@ struct type {
int
stringform
;
int
stringform
;
};
};
#define VCC_TYPE(
foo) extern const struct type foo
[1];
#define VCC_TYPE(
UC, lc) extern const struct type UC
[1];
#include "tbl/vcc_types.h"
#include "tbl/vcc_types.h"
/*---------------------------------------------------------------------*/
/*---------------------------------------------------------------------*/
...
...
lib/libvcc/vcc_types.c
View file @
5d3d3eea
...
@@ -178,7 +178,7 @@ vcc_type_t
...
@@ -178,7 +178,7 @@ vcc_type_t
VCC_Type
(
const
char
*
p
)
VCC_Type
(
const
char
*
p
)
{
{
#define VCC_TYPE(
foo) if (!strcmp(p, #foo)) return (foo
);
#define VCC_TYPE(
UC, lc) if (!strcmp(p, #UC)) return (UC
);
#include "tbl/vcc_types.h"
#include "tbl/vcc_types.h"
return
(
NULL
);
return
(
NULL
);
}
}
...
...
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