aboutsummaryrefslogtreecommitdiff
path: root/tools/lxdrgen-go.awk
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-07 12:25:14 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-07 16:43:52 +0200
commit2edc9c6fd10e34ca1da0d25d3ceb9b67a6b9c73c (patch)
tree83e3f3c9cd4b4200946ec2428672cecfd6d3d311 /tools/lxdrgen-go.awk
parentf78f8a70f1753d687cae4a23659995b65e91fb3e (diff)
downloadliberty-2edc9c6fd10e34ca1da0d25d3ceb9b67a6b9c73c.tar.gz
liberty-2edc9c6fd10e34ca1da0d25d3ceb9b67a6b9c73c.tar.xz
liberty-2edc9c6fd10e34ca1da0d25d3ceb9b67a6b9c73c.zip
Add a C++ backend for LibertyXDR
Also change the C backend so that it also de/serializes unions without any other fields besides the tag.
Diffstat (limited to 'tools/lxdrgen-go.awk')
-rw-r--r--tools/lxdrgen-go.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lxdrgen-go.awk b/tools/lxdrgen-go.awk
index f129bc1..fb27c85 100644
--- a/tools/lxdrgen-go.awk
+++ b/tools/lxdrgen-go.awk
@@ -439,7 +439,7 @@ function codegen_struct(name, cg, gotype) {
delete cg[i]
}
-function codegen_union_tag(d, cg) {
+function codegen_union_tag(name, d, cg) {
cg["tagtype"] = d["type"]
cg["tagname"] = snaketocamel(d["name"])
# The tag is implied from the type of struct stored in the interface.