add licenses and fix the license checking script.
This commit is contained in:
parent
53846d5d14
commit
57b9cae05d
@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
||||||
*
|
*
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
||||||
*
|
*
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
// Package lvgen contains the instructions for regenerating the libvirt
|
// Package lvgen contains the instructions for regenerating the libvirt
|
||||||
// bindings. We do this by parsing the remote_protocol.x file included in the
|
// bindings. We do this by parsing the remote_protocol.x file included in the
|
||||||
// libvirt sources. Bindings will be generated if you run `go generate` in this
|
// libvirt sources. Bindings will be generated if you run `go generate` in this
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
||||||
*
|
*
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
%{
|
%{
|
||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package lvgen
|
package lvgen
|
||||||
|
|
||||||
|
@ -1,14 +1,29 @@
|
|||||||
//line sunrpc.y:2
|
//line sunrpc.y:2
|
||||||
|
|
||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package lvgen
|
package lvgen
|
||||||
|
|
||||||
import __yyfmt__ "fmt"
|
import __yyfmt__ "fmt"
|
||||||
|
|
||||||
//line sunrpc.y:3
|
//line sunrpc.y:16
|
||||||
import (
|
import (
|
||||||
//"fmt"
|
//"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
//line sunrpc.y:12
|
//line sunrpc.y:25
|
||||||
type yySymType struct {
|
type yySymType struct {
|
||||||
yys int
|
yys int
|
||||||
val string
|
val string
|
||||||
@ -87,7 +102,7 @@ const yyEofCode = 1
|
|||||||
const yyErrCode = 2
|
const yyErrCode = 2
|
||||||
const yyInitialStackSize = 16
|
const yyInitialStackSize = 16
|
||||||
|
|
||||||
//line sunrpc.y:222
|
//line sunrpc.y:235
|
||||||
|
|
||||||
//line yacctab:1
|
//line yacctab:1
|
||||||
var yyExca = [...]int{
|
var yyExca = [...]int{
|
||||||
@ -564,13 +579,13 @@ yydefault:
|
|||||||
|
|
||||||
case 12:
|
case 12:
|
||||||
yyDollar = yyS[yypt-5 : yypt+1]
|
yyDollar = yyS[yypt-5 : yypt+1]
|
||||||
//line sunrpc.y:49
|
//line sunrpc.y:62
|
||||||
{
|
{
|
||||||
StartEnum(yyDollar[2].val)
|
StartEnum(yyDollar[2].val)
|
||||||
}
|
}
|
||||||
case 15:
|
case 15:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:58
|
//line sunrpc.y:71
|
||||||
{
|
{
|
||||||
err := AddEnumAutoVal(yyDollar[1].val)
|
err := AddEnumAutoVal(yyDollar[1].val)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -580,7 +595,7 @@ yydefault:
|
|||||||
}
|
}
|
||||||
case 16:
|
case 16:
|
||||||
yyDollar = yyS[yypt-3 : yypt+1]
|
yyDollar = yyS[yypt-3 : yypt+1]
|
||||||
//line sunrpc.y:65
|
//line sunrpc.y:78
|
||||||
{
|
{
|
||||||
err := AddEnumVal(yyDollar[1].val, yyDollar[3].val)
|
err := AddEnumVal(yyDollar[1].val, yyDollar[3].val)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -590,7 +605,7 @@ yydefault:
|
|||||||
}
|
}
|
||||||
case 20:
|
case 20:
|
||||||
yyDollar = yyS[yypt-4 : yypt+1]
|
yyDollar = yyS[yypt-4 : yypt+1]
|
||||||
//line sunrpc.y:87
|
//line sunrpc.y:100
|
||||||
{
|
{
|
||||||
err := AddConst(yyDollar[2].val, yyDollar[4].val)
|
err := AddConst(yyDollar[2].val, yyDollar[4].val)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -600,145 +615,145 @@ yydefault:
|
|||||||
}
|
}
|
||||||
case 22:
|
case 22:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:101
|
//line sunrpc.y:114
|
||||||
{
|
{
|
||||||
StartTypedef()
|
StartTypedef()
|
||||||
}
|
}
|
||||||
case 28:
|
case 28:
|
||||||
yyDollar = yyS[yypt-2 : yypt+1]
|
yyDollar = yyS[yypt-2 : yypt+1]
|
||||||
//line sunrpc.y:112
|
//line sunrpc.y:125
|
||||||
{
|
{
|
||||||
AddDeclaration(yyDollar[2].val, yyDollar[1].val)
|
AddDeclaration(yyDollar[2].val, yyDollar[1].val)
|
||||||
}
|
}
|
||||||
case 30:
|
case 30:
|
||||||
yyDollar = yyS[yypt-2 : yypt+1]
|
yyDollar = yyS[yypt-2 : yypt+1]
|
||||||
//line sunrpc.y:117
|
//line sunrpc.y:130
|
||||||
{
|
{
|
||||||
yyVAL.val = "u" + yyDollar[2].val
|
yyVAL.val = "u" + yyDollar[2].val
|
||||||
}
|
}
|
||||||
case 31:
|
case 31:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:118
|
//line sunrpc.y:131
|
||||||
{
|
{
|
||||||
yyVAL.val = "float32"
|
yyVAL.val = "float32"
|
||||||
}
|
}
|
||||||
case 32:
|
case 32:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:119
|
//line sunrpc.y:132
|
||||||
{
|
{
|
||||||
yyVAL.val = "float64"
|
yyVAL.val = "float64"
|
||||||
}
|
}
|
||||||
case 33:
|
case 33:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:120
|
//line sunrpc.y:133
|
||||||
{
|
{
|
||||||
yyVAL.val = "bool"
|
yyVAL.val = "bool"
|
||||||
}
|
}
|
||||||
case 34:
|
case 34:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:121
|
//line sunrpc.y:134
|
||||||
{
|
{
|
||||||
yyVAL.val = "string"
|
yyVAL.val = "string"
|
||||||
}
|
}
|
||||||
case 35:
|
case 35:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:122
|
//line sunrpc.y:135
|
||||||
{
|
{
|
||||||
yyVAL.val = "byte"
|
yyVAL.val = "byte"
|
||||||
}
|
}
|
||||||
case 40:
|
case 40:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:130
|
//line sunrpc.y:143
|
||||||
{
|
{
|
||||||
yyVAL.val = "int64"
|
yyVAL.val = "int64"
|
||||||
}
|
}
|
||||||
case 41:
|
case 41:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:131
|
//line sunrpc.y:144
|
||||||
{
|
{
|
||||||
yyVAL.val = "int32"
|
yyVAL.val = "int32"
|
||||||
}
|
}
|
||||||
case 42:
|
case 42:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:132
|
//line sunrpc.y:145
|
||||||
{
|
{
|
||||||
yyVAL.val = "int16"
|
yyVAL.val = "int16"
|
||||||
}
|
}
|
||||||
case 43:
|
case 43:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:133
|
//line sunrpc.y:146
|
||||||
{
|
{
|
||||||
yyVAL.val = "int8"
|
yyVAL.val = "int8"
|
||||||
}
|
}
|
||||||
case 45:
|
case 45:
|
||||||
yyDollar = yyS[yypt-5 : yypt+1]
|
yyDollar = yyS[yypt-5 : yypt+1]
|
||||||
//line sunrpc.y:141
|
//line sunrpc.y:154
|
||||||
{
|
{
|
||||||
AddFixedArray(yyDollar[2].val, yyDollar[1].val, yyDollar[4].val)
|
AddFixedArray(yyDollar[2].val, yyDollar[1].val, yyDollar[4].val)
|
||||||
}
|
}
|
||||||
case 46:
|
case 46:
|
||||||
yyDollar = yyS[yypt-5 : yypt+1]
|
yyDollar = yyS[yypt-5 : yypt+1]
|
||||||
//line sunrpc.y:145
|
//line sunrpc.y:158
|
||||||
{
|
{
|
||||||
AddVariableArray(yyDollar[2].val, yyDollar[1].val, yyDollar[4].val)
|
AddVariableArray(yyDollar[2].val, yyDollar[1].val, yyDollar[4].val)
|
||||||
}
|
}
|
||||||
case 47:
|
case 47:
|
||||||
yyDollar = yyS[yypt-4 : yypt+1]
|
yyDollar = yyS[yypt-4 : yypt+1]
|
||||||
//line sunrpc.y:146
|
//line sunrpc.y:159
|
||||||
{
|
{
|
||||||
AddVariableArray(yyDollar[2].val, yyDollar[1].val, "")
|
AddVariableArray(yyDollar[2].val, yyDollar[1].val, "")
|
||||||
}
|
}
|
||||||
case 48:
|
case 48:
|
||||||
yyDollar = yyS[yypt-3 : yypt+1]
|
yyDollar = yyS[yypt-3 : yypt+1]
|
||||||
//line sunrpc.y:154
|
//line sunrpc.y:167
|
||||||
{
|
{
|
||||||
AddVariableArray(yyDollar[3].val, yyDollar[1].val, "1")
|
AddVariableArray(yyDollar[3].val, yyDollar[1].val, "1")
|
||||||
}
|
}
|
||||||
case 49:
|
case 49:
|
||||||
yyDollar = yyS[yypt-3 : yypt+1]
|
yyDollar = yyS[yypt-3 : yypt+1]
|
||||||
//line sunrpc.y:158
|
//line sunrpc.y:171
|
||||||
{
|
{
|
||||||
StartStruct(yyDollar[2].val)
|
StartStruct(yyDollar[2].val)
|
||||||
}
|
}
|
||||||
case 50:
|
case 50:
|
||||||
yyDollar = yyS[yypt-6 : yypt+1]
|
yyDollar = yyS[yypt-6 : yypt+1]
|
||||||
//line sunrpc.y:158
|
//line sunrpc.y:171
|
||||||
{
|
{
|
||||||
AddStruct()
|
AddStruct()
|
||||||
}
|
}
|
||||||
case 54:
|
case 54:
|
||||||
yyDollar = yyS[yypt-2 : yypt+1]
|
yyDollar = yyS[yypt-2 : yypt+1]
|
||||||
//line sunrpc.y:171
|
//line sunrpc.y:184
|
||||||
{
|
{
|
||||||
StartUnion(yyDollar[2].val)
|
StartUnion(yyDollar[2].val)
|
||||||
}
|
}
|
||||||
case 55:
|
case 55:
|
||||||
yyDollar = yyS[yypt-10 : yypt+1]
|
yyDollar = yyS[yypt-10 : yypt+1]
|
||||||
//line sunrpc.y:171
|
//line sunrpc.y:184
|
||||||
{
|
{
|
||||||
AddUnion()
|
AddUnion()
|
||||||
}
|
}
|
||||||
case 59:
|
case 59:
|
||||||
yyDollar = yyS[yypt-2 : yypt+1]
|
yyDollar = yyS[yypt-2 : yypt+1]
|
||||||
//line sunrpc.y:184
|
//line sunrpc.y:197
|
||||||
{
|
{
|
||||||
StartCase(yyDollar[2].val)
|
StartCase(yyDollar[2].val)
|
||||||
}
|
}
|
||||||
case 60:
|
case 60:
|
||||||
yyDollar = yyS[yypt-5 : yypt+1]
|
yyDollar = yyS[yypt-5 : yypt+1]
|
||||||
//line sunrpc.y:184
|
//line sunrpc.y:197
|
||||||
{
|
{
|
||||||
AddCase()
|
AddCase()
|
||||||
}
|
}
|
||||||
case 61:
|
case 61:
|
||||||
yyDollar = yyS[yypt-1 : yypt+1]
|
yyDollar = yyS[yypt-1 : yypt+1]
|
||||||
//line sunrpc.y:185
|
//line sunrpc.y:198
|
||||||
{
|
{
|
||||||
StartCase("default")
|
StartCase("default")
|
||||||
}
|
}
|
||||||
case 62:
|
case 62:
|
||||||
yyDollar = yyS[yypt-4 : yypt+1]
|
yyDollar = yyS[yypt-4 : yypt+1]
|
||||||
//line sunrpc.y:185
|
//line sunrpc.y:198
|
||||||
{
|
{
|
||||||
AddCase()
|
AddCase()
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ state 1
|
|||||||
state 2
|
state 2
|
||||||
specification: definition_list. (1)
|
specification: definition_list. (1)
|
||||||
|
|
||||||
. reduce 1 (src line 25)
|
. reduce 1 (src line 38)
|
||||||
|
|
||||||
|
|
||||||
state 3
|
state 3
|
||||||
@ -44,37 +44,37 @@ state 3
|
|||||||
state 4
|
state 4
|
||||||
definition: enum_definition. (6)
|
definition: enum_definition. (6)
|
||||||
|
|
||||||
. reduce 6 (src line 39)
|
. reduce 6 (src line 52)
|
||||||
|
|
||||||
|
|
||||||
state 5
|
state 5
|
||||||
definition: const_definition. (7)
|
definition: const_definition. (7)
|
||||||
|
|
||||||
. reduce 7 (src line 41)
|
. reduce 7 (src line 54)
|
||||||
|
|
||||||
|
|
||||||
state 6
|
state 6
|
||||||
definition: typedef_definition. (8)
|
definition: typedef_definition. (8)
|
||||||
|
|
||||||
. reduce 8 (src line 42)
|
. reduce 8 (src line 55)
|
||||||
|
|
||||||
|
|
||||||
state 7
|
state 7
|
||||||
definition: struct_definition. (9)
|
definition: struct_definition. (9)
|
||||||
|
|
||||||
. reduce 9 (src line 43)
|
. reduce 9 (src line 56)
|
||||||
|
|
||||||
|
|
||||||
state 8
|
state 8
|
||||||
definition: union_definition. (10)
|
definition: union_definition. (10)
|
||||||
|
|
||||||
. reduce 10 (src line 44)
|
. reduce 10 (src line 57)
|
||||||
|
|
||||||
|
|
||||||
state 9
|
state 9
|
||||||
definition: program_definition. (11)
|
definition: program_definition. (11)
|
||||||
|
|
||||||
. reduce 11 (src line 45)
|
. reduce 11 (src line 58)
|
||||||
|
|
||||||
|
|
||||||
state 10
|
state 10
|
||||||
@ -98,7 +98,7 @@ state 12
|
|||||||
typedef_definition: TYPEDEF.$$22 declaration
|
typedef_definition: TYPEDEF.$$22 declaration
|
||||||
$$22: . (22)
|
$$22: . (22)
|
||||||
|
|
||||||
. reduce 22 (src line 100)
|
. reduce 22 (src line 113)
|
||||||
|
|
||||||
$$22 goto 21
|
$$22 goto 21
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ state 16
|
|||||||
TYPEDEF shift 12
|
TYPEDEF shift 12
|
||||||
UNION shift 14
|
UNION shift 14
|
||||||
PROGRAM shift 15
|
PROGRAM shift 15
|
||||||
. reduce 4 (src line 34)
|
. reduce 4 (src line 47)
|
||||||
|
|
||||||
definition_list goto 28
|
definition_list goto 28
|
||||||
definition goto 3
|
definition goto 3
|
||||||
@ -157,7 +157,7 @@ state 17
|
|||||||
state 18
|
state 18
|
||||||
enum_ident: IDENTIFIER. (17)
|
enum_ident: IDENTIFIER. (17)
|
||||||
|
|
||||||
. reduce 17 (src line 74)
|
. reduce 17 (src line 87)
|
||||||
|
|
||||||
|
|
||||||
state 19
|
state 19
|
||||||
@ -171,7 +171,7 @@ state 19
|
|||||||
state 20
|
state 20
|
||||||
const_ident: IDENTIFIER. (21)
|
const_ident: IDENTIFIER. (21)
|
||||||
|
|
||||||
. reduce 21 (src line 96)
|
. reduce 21 (src line 109)
|
||||||
|
|
||||||
|
|
||||||
state 21
|
state 21
|
||||||
@ -214,21 +214,21 @@ state 22
|
|||||||
state 23
|
state 23
|
||||||
struct_ident: IDENTIFIER. (51)
|
struct_ident: IDENTIFIER. (51)
|
||||||
|
|
||||||
. reduce 51 (src line 161)
|
. reduce 51 (src line 174)
|
||||||
|
|
||||||
|
|
||||||
state 24
|
state 24
|
||||||
union_definition: UNION union_ident.$$54 SWITCH '(' simple_declaration ')' '{' case_list '}'
|
union_definition: UNION union_ident.$$54 SWITCH '(' simple_declaration ')' '{' case_list '}'
|
||||||
$$54: . (54)
|
$$54: . (54)
|
||||||
|
|
||||||
. reduce 54 (src line 170)
|
. reduce 54 (src line 183)
|
||||||
|
|
||||||
$$54 goto 53
|
$$54 goto 53
|
||||||
|
|
||||||
state 25
|
state 25
|
||||||
union_ident: IDENTIFIER. (56)
|
union_ident: IDENTIFIER. (56)
|
||||||
|
|
||||||
. reduce 56 (src line 174)
|
. reduce 56 (src line 187)
|
||||||
|
|
||||||
|
|
||||||
state 26
|
state 26
|
||||||
@ -241,13 +241,13 @@ state 26
|
|||||||
state 27
|
state 27
|
||||||
program_ident: IDENTIFIER. (64)
|
program_ident: IDENTIFIER. (64)
|
||||||
|
|
||||||
. reduce 64 (src line 192)
|
. reduce 64 (src line 205)
|
||||||
|
|
||||||
|
|
||||||
state 28
|
state 28
|
||||||
definition_list: definition ';' definition_list. (5)
|
definition_list: definition ';' definition_list. (5)
|
||||||
|
|
||||||
. reduce 5 (src line 36)
|
. reduce 5 (src line 49)
|
||||||
|
|
||||||
|
|
||||||
state 29
|
state 29
|
||||||
@ -272,31 +272,31 @@ state 30
|
|||||||
state 31
|
state 31
|
||||||
typedef_definition: TYPEDEF $$22 declaration. (23)
|
typedef_definition: TYPEDEF $$22 declaration. (23)
|
||||||
|
|
||||||
. reduce 23 (src line 101)
|
. reduce 23 (src line 114)
|
||||||
|
|
||||||
|
|
||||||
state 32
|
state 32
|
||||||
declaration: simple_declaration. (24)
|
declaration: simple_declaration. (24)
|
||||||
|
|
||||||
. reduce 24 (src line 104)
|
. reduce 24 (src line 117)
|
||||||
|
|
||||||
|
|
||||||
state 33
|
state 33
|
||||||
declaration: fixed_array_declaration. (25)
|
declaration: fixed_array_declaration. (25)
|
||||||
|
|
||||||
. reduce 25 (src line 106)
|
. reduce 25 (src line 119)
|
||||||
|
|
||||||
|
|
||||||
state 34
|
state 34
|
||||||
declaration: variable_array_declaration. (26)
|
declaration: variable_array_declaration. (26)
|
||||||
|
|
||||||
. reduce 26 (src line 107)
|
. reduce 26 (src line 120)
|
||||||
|
|
||||||
|
|
||||||
state 35
|
state 35
|
||||||
declaration: pointer_declaration. (27)
|
declaration: pointer_declaration. (27)
|
||||||
|
|
||||||
. reduce 27 (src line 108)
|
. reduce 27 (src line 121)
|
||||||
|
|
||||||
|
|
||||||
state 36
|
state 36
|
||||||
@ -315,7 +315,7 @@ state 36
|
|||||||
state 37
|
state 37
|
||||||
type_specifier: int_spec. (29)
|
type_specifier: int_spec. (29)
|
||||||
|
|
||||||
. reduce 29 (src line 115)
|
. reduce 29 (src line 128)
|
||||||
|
|
||||||
|
|
||||||
state 38
|
state 38
|
||||||
@ -332,86 +332,86 @@ state 38
|
|||||||
state 39
|
state 39
|
||||||
type_specifier: FLOAT. (31)
|
type_specifier: FLOAT. (31)
|
||||||
|
|
||||||
. reduce 31 (src line 118)
|
. reduce 31 (src line 131)
|
||||||
|
|
||||||
|
|
||||||
state 40
|
state 40
|
||||||
type_specifier: DOUBLE. (32)
|
type_specifier: DOUBLE. (32)
|
||||||
|
|
||||||
. reduce 32 (src line 119)
|
. reduce 32 (src line 132)
|
||||||
|
|
||||||
|
|
||||||
state 41
|
state 41
|
||||||
type_specifier: BOOL. (33)
|
type_specifier: BOOL. (33)
|
||||||
|
|
||||||
. reduce 33 (src line 120)
|
. reduce 33 (src line 133)
|
||||||
|
|
||||||
|
|
||||||
state 42
|
state 42
|
||||||
type_specifier: STRING. (34)
|
type_specifier: STRING. (34)
|
||||||
|
|
||||||
. reduce 34 (src line 121)
|
. reduce 34 (src line 134)
|
||||||
|
|
||||||
|
|
||||||
state 43
|
state 43
|
||||||
type_specifier: OPAQUE. (35)
|
type_specifier: OPAQUE. (35)
|
||||||
|
|
||||||
. reduce 35 (src line 122)
|
. reduce 35 (src line 135)
|
||||||
|
|
||||||
|
|
||||||
state 44
|
state 44
|
||||||
type_specifier: enum_definition. (36)
|
type_specifier: enum_definition. (36)
|
||||||
|
|
||||||
. reduce 36 (src line 123)
|
. reduce 36 (src line 136)
|
||||||
|
|
||||||
|
|
||||||
state 45
|
state 45
|
||||||
type_specifier: struct_definition. (37)
|
type_specifier: struct_definition. (37)
|
||||||
|
|
||||||
. reduce 37 (src line 124)
|
. reduce 37 (src line 137)
|
||||||
|
|
||||||
|
|
||||||
state 46
|
state 46
|
||||||
type_specifier: union_definition. (38)
|
type_specifier: union_definition. (38)
|
||||||
|
|
||||||
. reduce 38 (src line 125)
|
. reduce 38 (src line 138)
|
||||||
|
|
||||||
|
|
||||||
state 47
|
state 47
|
||||||
type_specifier: IDENTIFIER. (39)
|
type_specifier: IDENTIFIER. (39)
|
||||||
|
|
||||||
. reduce 39 (src line 126)
|
. reduce 39 (src line 139)
|
||||||
|
|
||||||
|
|
||||||
state 48
|
state 48
|
||||||
int_spec: HYPER. (40)
|
int_spec: HYPER. (40)
|
||||||
|
|
||||||
. reduce 40 (src line 129)
|
. reduce 40 (src line 142)
|
||||||
|
|
||||||
|
|
||||||
state 49
|
state 49
|
||||||
int_spec: INT. (41)
|
int_spec: INT. (41)
|
||||||
|
|
||||||
. reduce 41 (src line 131)
|
. reduce 41 (src line 144)
|
||||||
|
|
||||||
|
|
||||||
state 50
|
state 50
|
||||||
int_spec: SHORT. (42)
|
int_spec: SHORT. (42)
|
||||||
|
|
||||||
. reduce 42 (src line 132)
|
. reduce 42 (src line 145)
|
||||||
|
|
||||||
|
|
||||||
state 51
|
state 51
|
||||||
int_spec: CHAR. (43)
|
int_spec: CHAR. (43)
|
||||||
|
|
||||||
. reduce 43 (src line 133)
|
. reduce 43 (src line 146)
|
||||||
|
|
||||||
|
|
||||||
state 52
|
state 52
|
||||||
struct_definition: STRUCT struct_ident '{'.$$49 declaration_list '}'
|
struct_definition: STRUCT struct_ident '{'.$$49 declaration_list '}'
|
||||||
$$49: . (49)
|
$$49: . (49)
|
||||||
|
|
||||||
. reduce 49 (src line 157)
|
. reduce 49 (src line 170)
|
||||||
|
|
||||||
$$49 goto 65
|
$$49 goto 65
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ state 56
|
|||||||
enum_value_list: enum_value.',' enum_value_list
|
enum_value_list: enum_value.',' enum_value_list
|
||||||
|
|
||||||
',' shift 71
|
',' shift 71
|
||||||
. reduce 13 (src line 52)
|
. reduce 13 (src line 65)
|
||||||
|
|
||||||
|
|
||||||
state 57
|
state 57
|
||||||
@ -451,25 +451,25 @@ state 57
|
|||||||
enum_value: enum_value_ident.'=' value
|
enum_value: enum_value_ident.'=' value
|
||||||
|
|
||||||
'=' shift 72
|
'=' shift 72
|
||||||
. reduce 15 (src line 57)
|
. reduce 15 (src line 70)
|
||||||
|
|
||||||
|
|
||||||
state 58
|
state 58
|
||||||
enum_value_ident: IDENTIFIER. (18)
|
enum_value_ident: IDENTIFIER. (18)
|
||||||
|
|
||||||
. reduce 18 (src line 78)
|
. reduce 18 (src line 91)
|
||||||
|
|
||||||
|
|
||||||
state 59
|
state 59
|
||||||
const_definition: CONST const_ident '=' IDENTIFIER. (19)
|
const_definition: CONST const_ident '=' IDENTIFIER. (19)
|
||||||
|
|
||||||
. reduce 19 (src line 85)
|
. reduce 19 (src line 98)
|
||||||
|
|
||||||
|
|
||||||
state 60
|
state 60
|
||||||
const_definition: CONST const_ident '=' CONSTANT. (20)
|
const_definition: CONST const_ident '=' CONSTANT. (20)
|
||||||
|
|
||||||
. reduce 20 (src line 87)
|
. reduce 20 (src line 100)
|
||||||
|
|
||||||
|
|
||||||
state 61
|
state 61
|
||||||
@ -480,7 +480,7 @@ state 61
|
|||||||
|
|
||||||
'[' shift 73
|
'[' shift 73
|
||||||
'<' shift 74
|
'<' shift 74
|
||||||
. reduce 28 (src line 111)
|
. reduce 28 (src line 124)
|
||||||
|
|
||||||
|
|
||||||
state 62
|
state 62
|
||||||
@ -494,13 +494,13 @@ state 62
|
|||||||
state 63
|
state 63
|
||||||
variable_ident: IDENTIFIER. (44)
|
variable_ident: IDENTIFIER. (44)
|
||||||
|
|
||||||
. reduce 44 (src line 136)
|
. reduce 44 (src line 149)
|
||||||
|
|
||||||
|
|
||||||
state 64
|
state 64
|
||||||
type_specifier: UNSIGNED int_spec. (30)
|
type_specifier: UNSIGNED int_spec. (30)
|
||||||
|
|
||||||
. reduce 30 (src line 117)
|
. reduce 30 (src line 130)
|
||||||
|
|
||||||
|
|
||||||
state 65
|
state 65
|
||||||
@ -567,7 +567,7 @@ state 69
|
|||||||
state 70
|
state 70
|
||||||
enum_definition: ENUM enum_ident '{' enum_value_list '}'. (12)
|
enum_definition: ENUM enum_ident '{' enum_value_list '}'. (12)
|
||||||
|
|
||||||
. reduce 12 (src line 48)
|
. reduce 12 (src line 61)
|
||||||
|
|
||||||
|
|
||||||
state 71
|
state 71
|
||||||
@ -612,7 +612,7 @@ state 74
|
|||||||
state 75
|
state 75
|
||||||
pointer_declaration: type_specifier '*' variable_ident. (48)
|
pointer_declaration: type_specifier '*' variable_ident. (48)
|
||||||
|
|
||||||
. reduce 48 (src line 153)
|
. reduce 48 (src line 166)
|
||||||
|
|
||||||
|
|
||||||
state 76
|
state 76
|
||||||
@ -668,7 +668,7 @@ state 80
|
|||||||
version_list: version ';'.version_list
|
version_list: version ';'.version_list
|
||||||
|
|
||||||
VERSION shift 69
|
VERSION shift 69
|
||||||
. reduce 65 (src line 196)
|
. reduce 65 (src line 209)
|
||||||
|
|
||||||
version_list goto 95
|
version_list goto 95
|
||||||
version goto 68
|
version goto 68
|
||||||
@ -683,31 +683,31 @@ state 81
|
|||||||
state 82
|
state 82
|
||||||
version_ident: IDENTIFIER. (68)
|
version_ident: IDENTIFIER. (68)
|
||||||
|
|
||||||
. reduce 68 (src line 205)
|
. reduce 68 (src line 218)
|
||||||
|
|
||||||
|
|
||||||
state 83
|
state 83
|
||||||
enum_value_list: enum_value ',' enum_value_list. (14)
|
enum_value_list: enum_value ',' enum_value_list. (14)
|
||||||
|
|
||||||
. reduce 14 (src line 54)
|
. reduce 14 (src line 67)
|
||||||
|
|
||||||
|
|
||||||
state 84
|
state 84
|
||||||
enum_value: enum_value_ident '=' value. (16)
|
enum_value: enum_value_ident '=' value. (16)
|
||||||
|
|
||||||
. reduce 16 (src line 65)
|
. reduce 16 (src line 78)
|
||||||
|
|
||||||
|
|
||||||
state 85
|
state 85
|
||||||
value: IDENTIFIER. (2)
|
value: IDENTIFIER. (2)
|
||||||
|
|
||||||
. reduce 2 (src line 29)
|
. reduce 2 (src line 42)
|
||||||
|
|
||||||
|
|
||||||
state 86
|
state 86
|
||||||
value: CONSTANT. (3)
|
value: CONSTANT. (3)
|
||||||
|
|
||||||
. reduce 3 (src line 31)
|
. reduce 3 (src line 44)
|
||||||
|
|
||||||
|
|
||||||
state 87
|
state 87
|
||||||
@ -727,13 +727,13 @@ state 88
|
|||||||
state 89
|
state 89
|
||||||
variable_array_declaration: type_specifier variable_ident '<' '>'. (47)
|
variable_array_declaration: type_specifier variable_ident '<' '>'. (47)
|
||||||
|
|
||||||
. reduce 47 (src line 146)
|
. reduce 47 (src line 159)
|
||||||
|
|
||||||
|
|
||||||
state 90
|
state 90
|
||||||
struct_definition: STRUCT struct_ident '{' $$49 declaration_list '}'. (50)
|
struct_definition: STRUCT struct_ident '{' $$49 declaration_list '}'. (50)
|
||||||
|
|
||||||
. reduce 50 (src line 158)
|
. reduce 50 (src line 171)
|
||||||
|
|
||||||
|
|
||||||
state 91
|
state 91
|
||||||
@ -754,7 +754,7 @@ state 91
|
|||||||
SHORT shift 50
|
SHORT shift 50
|
||||||
CHAR shift 51
|
CHAR shift 51
|
||||||
IDENTIFIER shift 47
|
IDENTIFIER shift 47
|
||||||
. reduce 52 (src line 165)
|
. reduce 52 (src line 178)
|
||||||
|
|
||||||
enum_definition goto 44
|
enum_definition goto 44
|
||||||
struct_definition goto 45
|
struct_definition goto 45
|
||||||
@ -795,7 +795,7 @@ state 94
|
|||||||
state 95
|
state 95
|
||||||
version_list: version ';' version_list. (66)
|
version_list: version ';' version_list. (66)
|
||||||
|
|
||||||
. reduce 66 (src line 198)
|
. reduce 66 (src line 211)
|
||||||
|
|
||||||
|
|
||||||
state 96
|
state 96
|
||||||
@ -828,19 +828,19 @@ state 96
|
|||||||
state 97
|
state 97
|
||||||
fixed_array_declaration: type_specifier variable_ident '[' value ']'. (45)
|
fixed_array_declaration: type_specifier variable_ident '[' value ']'. (45)
|
||||||
|
|
||||||
. reduce 45 (src line 140)
|
. reduce 45 (src line 153)
|
||||||
|
|
||||||
|
|
||||||
state 98
|
state 98
|
||||||
variable_array_declaration: type_specifier variable_ident '<' value '>'. (46)
|
variable_array_declaration: type_specifier variable_ident '<' value '>'. (46)
|
||||||
|
|
||||||
. reduce 46 (src line 144)
|
. reduce 46 (src line 157)
|
||||||
|
|
||||||
|
|
||||||
state 99
|
state 99
|
||||||
declaration_list: declaration ';' declaration_list. (53)
|
declaration_list: declaration ';' declaration_list. (53)
|
||||||
|
|
||||||
. reduce 53 (src line 167)
|
. reduce 53 (src line 180)
|
||||||
|
|
||||||
|
|
||||||
state 100
|
state 100
|
||||||
@ -853,13 +853,13 @@ state 100
|
|||||||
state 101
|
state 101
|
||||||
simple_declaration: type_specifier variable_ident. (28)
|
simple_declaration: type_specifier variable_ident. (28)
|
||||||
|
|
||||||
. reduce 28 (src line 111)
|
. reduce 28 (src line 124)
|
||||||
|
|
||||||
|
|
||||||
state 102
|
state 102
|
||||||
program_definition: PROGRAM program_ident '{' version_list '}' '=' value. (63)
|
program_definition: PROGRAM program_ident '{' version_list '}' '=' value. (63)
|
||||||
|
|
||||||
. reduce 63 (src line 188)
|
. reduce 63 (src line 201)
|
||||||
|
|
||||||
|
|
||||||
state 103
|
state 103
|
||||||
@ -920,7 +920,7 @@ state 108
|
|||||||
SHORT shift 50
|
SHORT shift 50
|
||||||
CHAR shift 51
|
CHAR shift 51
|
||||||
IDENTIFIER shift 47
|
IDENTIFIER shift 47
|
||||||
. reduce 69 (src line 209)
|
. reduce 69 (src line 222)
|
||||||
|
|
||||||
enum_definition goto 44
|
enum_definition goto 44
|
||||||
struct_definition goto 45
|
struct_definition goto 45
|
||||||
@ -940,7 +940,7 @@ state 109
|
|||||||
state 110
|
state 110
|
||||||
procedure_ident: IDENTIFIER. (72)
|
procedure_ident: IDENTIFIER. (72)
|
||||||
|
|
||||||
. reduce 72 (src line 218)
|
. reduce 72 (src line 231)
|
||||||
|
|
||||||
|
|
||||||
state 111
|
state 111
|
||||||
@ -971,7 +971,7 @@ state 114
|
|||||||
case: DEFAULT.$$61 ':' declaration
|
case: DEFAULT.$$61 ':' declaration
|
||||||
$$61: . (61)
|
$$61: . (61)
|
||||||
|
|
||||||
. reduce 61 (src line 185)
|
. reduce 61 (src line 198)
|
||||||
|
|
||||||
$$61 goto 121
|
$$61 goto 121
|
||||||
|
|
||||||
@ -987,7 +987,7 @@ state 115
|
|||||||
state 116
|
state 116
|
||||||
procedure_list: procedure ';' procedure_list. (70)
|
procedure_list: procedure ';' procedure_list. (70)
|
||||||
|
|
||||||
. reduce 70 (src line 211)
|
. reduce 70 (src line 224)
|
||||||
|
|
||||||
|
|
||||||
state 117
|
state 117
|
||||||
@ -1018,7 +1018,7 @@ state 117
|
|||||||
state 118
|
state 118
|
||||||
union_definition: UNION union_ident $$54 SWITCH '(' simple_declaration ')' '{' case_list '}'. (55)
|
union_definition: UNION union_ident $$54 SWITCH '(' simple_declaration ')' '{' case_list '}'. (55)
|
||||||
|
|
||||||
. reduce 55 (src line 171)
|
. reduce 55 (src line 184)
|
||||||
|
|
||||||
|
|
||||||
state 119
|
state 119
|
||||||
@ -1027,7 +1027,7 @@ state 119
|
|||||||
|
|
||||||
CASE shift 113
|
CASE shift 113
|
||||||
DEFAULT shift 114
|
DEFAULT shift 114
|
||||||
. reduce 57 (src line 178)
|
. reduce 57 (src line 191)
|
||||||
|
|
||||||
case_list goto 124
|
case_list goto 124
|
||||||
case goto 112
|
case goto 112
|
||||||
@ -1036,7 +1036,7 @@ state 120
|
|||||||
case: CASE value.$$59 ':' declaration
|
case: CASE value.$$59 ':' declaration
|
||||||
$$59: . (59)
|
$$59: . (59)
|
||||||
|
|
||||||
. reduce 59 (src line 183)
|
. reduce 59 (src line 196)
|
||||||
|
|
||||||
$$59 goto 125
|
$$59 goto 125
|
||||||
|
|
||||||
@ -1064,7 +1064,7 @@ state 123
|
|||||||
state 124
|
state 124
|
||||||
case_list: case ';' case_list. (58)
|
case_list: case ';' case_list. (58)
|
||||||
|
|
||||||
. reduce 58 (src line 180)
|
. reduce 58 (src line 193)
|
||||||
|
|
||||||
|
|
||||||
state 125
|
state 125
|
||||||
@ -1107,7 +1107,7 @@ state 126
|
|||||||
state 127
|
state 127
|
||||||
version: VERSION version_ident '{' procedure_list '}' '=' value ';'. (67)
|
version: VERSION version_ident '{' procedure_list '}' '=' value ';'. (67)
|
||||||
|
|
||||||
. reduce 67 (src line 201)
|
. reduce 67 (src line 214)
|
||||||
|
|
||||||
|
|
||||||
state 128
|
state 128
|
||||||
@ -1150,7 +1150,7 @@ state 129
|
|||||||
state 130
|
state 130
|
||||||
case: DEFAULT $$61 ':' declaration. (62)
|
case: DEFAULT $$61 ':' declaration. (62)
|
||||||
|
|
||||||
. reduce 62 (src line 185)
|
. reduce 62 (src line 198)
|
||||||
|
|
||||||
|
|
||||||
state 131
|
state 131
|
||||||
@ -1165,7 +1165,7 @@ state 131
|
|||||||
state 132
|
state 132
|
||||||
case: CASE value $$59 ':' declaration. (60)
|
case: CASE value $$59 ':' declaration. (60)
|
||||||
|
|
||||||
. reduce 60 (src line 184)
|
. reduce 60 (src line 197)
|
||||||
|
|
||||||
|
|
||||||
state 133
|
state 133
|
||||||
@ -1178,7 +1178,7 @@ state 133
|
|||||||
state 134
|
state 134
|
||||||
procedure: type_specifier procedure_ident '(' type_specifier ')' '=' value ';'. (71)
|
procedure: type_specifier procedure_ident '(' type_specifier ')' '=' value ';'. (71)
|
||||||
|
|
||||||
. reduce 71 (src line 214)
|
. reduce 71 (src line 227)
|
||||||
|
|
||||||
|
|
||||||
40 terminals, 41 nonterminals
|
40 terminals, 41 nonterminals
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2017 The go-libvirt Authors.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
* This file generated by internal/lvgen/generate.go. DO NOT EDIT BY HAND!
|
||||||
*
|
*
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
# Verify that the correct license block is present in all Go source
|
# Verify that the correct license block is present in all Go source
|
||||||
# files.
|
# files.
|
||||||
read -r -d '' EXPECTED <<EndOfLicense
|
read -r -d '' EXPECTED <<EndOfLicense
|
||||||
// Copyright 2016 The go-libvirt Authors.
|
// Copyright 20[[:digit:]]{2} The go-libvirt Authors.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 \(the "License"\);
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
//
|
//
|
||||||
@ -23,12 +23,11 @@ EXIT=0
|
|||||||
GOFILES=$(find . -name "*.go")
|
GOFILES=$(find . -name "*.go")
|
||||||
|
|
||||||
for FILE in $GOFILES; do
|
for FILE in $GOFILES; do
|
||||||
BLOCK=$(head -n 14 $FILE)
|
BLOCK=$(head -n 20 $FILE)
|
||||||
|
|
||||||
if [ "$BLOCK" != "$EXPECTED" ]; then
|
[[ $BLOCK =~ $EXPECTED ]] && continue
|
||||||
echo "file missing license: $FILE"
|
echo "file missing license: $FILE"
|
||||||
EXIT=1
|
EXIT=1
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
exit $EXIT
|
exit $EXIT
|
||||||
|
Loading…
Reference in New Issue
Block a user