Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
32d5bc32
Commit
32d5bc32
authored
Oct 19, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate "tbl/vcc_types.h" from generate.py
parent
f68b7c42
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
45 deletions
+18
-45
Makefile.am
include/Makefile.am
+1
-1
vcc_types.h
include/tbl/vcc_types.h
+0
-44
generate.py
lib/libvcl/generate.py
+17
-0
No files found.
include/Makefile.am
View file @
32d5bc32
...
...
@@ -75,7 +75,7 @@ nobase_pkgdatainclude_HEADERS = \
vsb.h
\
vsha256.h
tbl/vrt_stv_var.h tbl/vcl_returns.h vcl.h vrt_obj.h
:
$(top_srcdir)/lib/libvcl/generate.py $(top_srcdir)/include/vrt.h
tbl/vrt_stv_var.h tbl/vcl_returns.h
tbl/vcc_types.h
vcl.h vrt_obj.h
:
$(top_srcdir)/lib/libvcl/generate.py $(top_srcdir)/include/vrt.h
mkdir
-p
tbl
@
PYTHON@
$(top_srcdir)
/lib/libvcl/generate.py
$(top_srcdir)
$(top_builddir)
...
...
include/tbl/vcc_types.h
deleted
100644 → 0
View file @
f68b7c42
/*-
* Copyright (c) 2010 Varnish Software AS
* All rights reserved.
*
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*/
/*lint -save -e525 -e539 */
VCC_TYPE
(
VOID
)
VCC_TYPE
(
BACKEND
)
VCC_TYPE
(
BOOL
)
VCC_TYPE
(
INT
)
VCC_TYPE
(
TIME
)
VCC_TYPE
(
DURATION
)
VCC_TYPE
(
STRING
)
VCC_TYPE
(
STRING_LIST
)
VCC_TYPE
(
IP
)
VCC_TYPE
(
HEADER
)
VCC_TYPE
(
BYTES
)
VCC_TYPE
(
REAL
)
VCC_TYPE
(
ENUM
)
/*lint -restore */
lib/libvcl/generate.py
View file @
32d5bc32
...
...
@@ -484,6 +484,10 @@ vcltypes = {
'BYTES'
:
"double"
,
'INT'
:
"long"
,
'HEADER'
:
"const char *"
,
'VOID'
:
"void"
,
'REAL'
:
"double"
,
'STRING_LIST'
:
"void*"
,
'ENUM'
:
"const char *"
,
}
#######################################################################
...
...
@@ -898,6 +902,19 @@ fo.write("""
fo
.
close
()
#######################################################################
ft
=
open
(
buildroot
+
"/include/tbl/vcc_types.h"
,
"w"
)
file_header
(
ft
)
ft
.
write
(
"/*lint -save -e525 -e539 */
\n
"
)
i
=
list
(
vcltypes
.
keys
())
i
.
sort
()
for
j
in
i
:
ft
.
write
(
"VCC_TYPE("
+
j
+
")
\n
"
)
ft
.
write
(
"/*lint -restore */
\n
"
)
ft
.
close
()
#######################################################################
fo
=
open
(
buildroot
+
"/include/tbl/vrt_stv_var.h"
,
"w"
)
...
...
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