summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/pidl/smb_interfaces.pm356
1 files changed, 214 insertions, 142 deletions
diff --git a/source4/build/pidl/smb_interfaces.pm b/source4/build/pidl/smb_interfaces.pm
index de8b704b17..c9cc4495b1 100644
--- a/source4/build/pidl/smb_interfaces.pm
+++ b/source4/build/pidl/smb_interfaces.pm
@@ -524,7 +524,7 @@ sub new {
ACTIONS => {
'IDENTIFIER' => 12
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
'optional_identifier' => 13
}
@@ -552,7 +552,7 @@ sub new {
ACTIONS => {
'IDENTIFIER' => 12
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
'optional_identifier' => 16
}
@@ -580,7 +580,7 @@ sub new {
}
},
{#State 12
- DEFAULT => -31
+ DEFAULT => -32
},
{#State 13
ACTIONS => {
@@ -648,56 +648,59 @@ sub new {
{#State 25
ACTIONS => {
"}" => 31,
- 'UNION' => 36,
+ 'UNION' => 37,
'IDENTIFIER' => 33,
'ENUM' => 32,
- 'STRUCT' => 34
+ 'STRUCT' => 35,
+ 'CONST' => 34
},
GOTOS => {
- 'struct' => 37,
- 'type' => 38,
- 'union' => 39,
- 'element' => 35
+ 'struct' => 38,
+ 'type' => 39,
+ 'union' => 40,
+ 'element' => 36
}
},
{#State 26
ACTIONS => {
- "}" => 40,
- 'UNION' => 36,
+ "}" => 41,
+ 'UNION' => 37,
'IDENTIFIER' => 33,
'ENUM' => 32,
- 'STRUCT' => 34
+ 'STRUCT' => 35,
+ 'CONST' => 34
},
GOTOS => {
- 'struct' => 37,
- 'type' => 38,
- 'union' => 39,
- 'element' => 35
+ 'struct' => 38,
+ 'type' => 39,
+ 'union' => 40,
+ 'element' => 36
}
},
{#State 27
ACTIONS => {
- "}" => 41,
- 'UNION' => 36,
+ "}" => 42,
+ 'UNION' => 37,
'IDENTIFIER' => 33,
'ENUM' => 32,
- 'STRUCT' => 34
+ 'STRUCT' => 35,
+ 'CONST' => 34
},
GOTOS => {
- 'struct' => 37,
- 'type' => 38,
- 'union' => 39,
- 'element' => 35
+ 'struct' => 38,
+ 'type' => 39,
+ 'union' => 40,
+ 'element' => 36
}
},
{#State 28
ACTIONS => {
- 'IDENTIFIER' => 42
+ 'IDENTIFIER' => 43
}
},
{#State 29
ACTIONS => {
- ";" => 43
+ ";" => 44
}
},
{#State 30
@@ -705,228 +708,266 @@ sub new {
'IDENTIFIER' => 22
},
GOTOS => {
- 'enum_identifier' => 44
+ 'enum_identifier' => 45
}
},
{#State 31
- DEFAULT => -27,
+ DEFAULT => -28,
GOTOS => {
- 'pointers' => 45
+ 'pointers' => 46
}
},
{#State 32
ACTIONS => {
- 'IDENTIFIER' => 46
+ 'IDENTIFIER' => 47
}
},
{#State 33
- DEFAULT => -25
+ DEFAULT => -26
},
{#State 34
ACTIONS => {
- 'IDENTIFIER' => 47
+ 'IDENTIFIER' => 33,
+ 'ENUM' => 32
},
- DEFAULT => -32,
GOTOS => {
- 'optional_identifier' => 13
+ 'type' => 48
}
},
{#State 35
- DEFAULT => -16
+ ACTIONS => {
+ 'IDENTIFIER' => 49
+ },
+ DEFAULT => -33,
+ GOTOS => {
+ 'optional_identifier' => 13
+ }
},
{#State 36
+ DEFAULT => -16
+ },
+ {#State 37
ACTIONS => {
- 'IDENTIFIER' => 48
+ 'IDENTIFIER' => 50
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
'optional_identifier' => 16
}
},
- {#State 37
+ {#State 38
DEFAULT => -18
},
- {#State 38
- DEFAULT => -27,
+ {#State 39
+ DEFAULT => -28,
GOTOS => {
- 'pointers' => 49
+ 'pointers' => 51
}
},
- {#State 39
+ {#State 40
DEFAULT => -19
},
- {#State 40
- DEFAULT => -27,
+ {#State 41
+ DEFAULT => -28,
GOTOS => {
- 'pointers' => 50
+ 'pointers' => 52
}
},
- {#State 41
+ {#State 42
ACTIONS => {
'IDENTIFIER' => 12
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
- 'optional_identifier' => 51
+ 'optional_identifier' => 53
}
},
- {#State 42
+ {#State 43
DEFAULT => -14
},
- {#State 43
+ {#State 44
DEFAULT => -10
},
- {#State 44
+ {#State 45
DEFAULT => -12
},
- {#State 45
+ {#State 46
ACTIONS => {
'IDENTIFIER' => 12,
- "*" => 53
+ "*" => 55
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
- 'optional_identifier' => 52,
- 'optional_identifiers' => 54
+ 'optional_identifier' => 54,
+ 'optional_identifiers' => 56
}
},
- {#State 46
- DEFAULT => -26
- },
{#State 47
+ DEFAULT => -27
+ },
+ {#State 48
+ DEFAULT => -28,
+ GOTOS => {
+ 'pointers' => 57
+ }
+ },
+ {#State 49
ACTIONS => {
- "{" => -31
+ "{" => -32
},
- DEFAULT => -27,
+ DEFAULT => -28,
GOTOS => {
- 'pointers' => 55
+ 'pointers' => 58
}
},
- {#State 48
+ {#State 50
ACTIONS => {
- "{" => -31
+ "{" => -32
},
- DEFAULT => -27,
+ DEFAULT => -28,
GOTOS => {
- 'pointers' => 56
+ 'pointers' => 59
}
},
- {#State 49
+ {#State 51
ACTIONS => {
- 'IDENTIFIER' => 57,
- "*" => 53
+ 'IDENTIFIER' => 60,
+ "*" => 55
}
},
- {#State 50
+ {#State 52
ACTIONS => {
'IDENTIFIER' => 12,
- "*" => 53
+ "*" => 55
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
- 'optional_identifier' => 58
+ 'optional_identifier' => 61
}
},
- {#State 51
+ {#State 53
ACTIONS => {
- ";" => 59
+ ";" => 62
}
},
- {#State 52
+ {#State 54
+ DEFAULT => -30
+ },
+ {#State 55
DEFAULT => -29
},
- {#State 53
- DEFAULT => -28
+ {#State 56
+ ACTIONS => {
+ ";" => 63,
+ "," => 64
+ }
},
- {#State 54
+ {#State 57
ACTIONS => {
- ";" => 60,
- "," => 61
+ 'IDENTIFIER' => 65,
+ "*" => 55
}
},
- {#State 55
+ {#State 58
ACTIONS => {
- 'IDENTIFIER' => 62,
- "*" => 53
+ 'IDENTIFIER' => 66,
+ "*" => 55
}
},
- {#State 56
+ {#State 59
ACTIONS => {
- 'IDENTIFIER' => 63,
- "*" => 53
+ 'IDENTIFIER' => 67,
+ "*" => 55
}
},
- {#State 57
+ {#State 60
ACTIONS => {
- "[" => 65
+ "[" => 69
},
- DEFAULT => -23,
+ DEFAULT => -24,
GOTOS => {
- 'array' => 64
+ 'array' => 68
}
},
- {#State 58
+ {#State 61
ACTIONS => {
- ";" => 66
+ ";" => 70
}
},
- {#State 59
+ {#State 62
DEFAULT => -9
},
- {#State 60
+ {#State 63
DEFAULT => -7
},
- {#State 61
+ {#State 64
ACTIONS => {
'IDENTIFIER' => 12
},
- DEFAULT => -32,
+ DEFAULT => -33,
GOTOS => {
- 'optional_identifier' => 67
+ 'optional_identifier' => 71
}
},
- {#State 62
+ {#State 65
ACTIONS => {
- ";" => 68
+ "[" => 69
+ },
+ DEFAULT => -24,
+ GOTOS => {
+ 'array' => 72
}
},
- {#State 63
+ {#State 66
ACTIONS => {
- ";" => 69
+ ";" => 73
}
},
- {#State 64
+ {#State 67
ACTIONS => {
- ";" => 70
+ ";" => 74
}
},
- {#State 65
+ {#State 68
ACTIONS => {
- 'CONSTANT' => 71
+ ";" => 75
}
},
- {#State 66
+ {#State 69
+ ACTIONS => {
+ 'CONSTANT' => 76
+ }
+ },
+ {#State 70
DEFAULT => -8
},
- {#State 67
- DEFAULT => -30
+ {#State 71
+ DEFAULT => -31
},
- {#State 68
+ {#State 72
+ ACTIONS => {
+ ";" => 77
+ }
+ },
+ {#State 73
DEFAULT => -20
},
- {#State 69
+ {#State 74
DEFAULT => -21
},
- {#State 70
- DEFAULT => -22
+ {#State 75
+ DEFAULT => -23
},
- {#State 71
+ {#State 76
ACTIONS => {
- "]" => 72
+ "]" => 78
}
},
- {#State 72
- DEFAULT => -24
+ {#State 77
+ DEFAULT => -22
+ },
+ {#State 78
+ DEFAULT => -25
}
],
yyrules =>
@@ -963,10 +1004,10 @@ sub
sub
#line 26 "build/pidl/smb_interfaces.yp"
{
- my $name = defined($_[2]) ? $_[2] : $_[7];
{
- "NAME" => $name,
- "TYPE" => "STRUCT",
+ "NAME" => $_[7],
+ "STRUCT_NAME" => $_[2],
+ "TYPE" => "struct",
"DATA" => $_[4],
}
}
@@ -976,10 +1017,10 @@ sub
sub
#line 38 "build/pidl/smb_interfaces.yp"
{
- my $name = defined($_[2]) ? $_[2] : $_[7];
{
- "NAME" => $name,
- "TYPE" => "UNION",
+ "NAME" => $_[7],
+ "UNION_NAME" => $_[2],
+ "TYPE" => "union",
"DATA" => $_[4],
}
}
@@ -1021,58 +1062,89 @@ sub
'element', 1, undef
],
[#Rule 20
- 'element', 5, undef
+ 'element', 5,
+sub
+#line 72 "build/pidl/smb_interfaces.yp"
+{{
+ "NAME" => [$_[2]],
+ "POINTERS" => $_[3],
+ "TYPE" => "struct $_[2]",
+ }}
],
[#Rule 21
- 'element', 5, undef
+ 'element', 5,
+sub
+#line 78 "build/pidl/smb_interfaces.yp"
+{{
+ "NAME" => $_[2],
+ "POINTERS" => $_[3],
+ "TYPE" => "union $_[2]",
+ }}
],
[#Rule 22
+ 'element', 6,
+sub
+#line 84 "build/pidl/smb_interfaces.yp"
+{{
+ "NAME" => [$_[4]],
+ "TYPE" => $_[2],
+ "POINTERS" => $_[3],
+ }}
+ ],
+ [#Rule 23
'element', 5,
sub
-#line 74 "build/pidl/smb_interfaces.yp"
+#line 90 "build/pidl/smb_interfaces.yp"
{{
- "NAME" => $_[3],
+ "NAME" => [$_[3]],
"TYPE" => $_[1],
"POINTERS" => $_[2],
- }}
- ],
- [#Rule 23
- 'array', 0, undef
+ "ARRAY_LENGTH" => $_[4]
+ }}
],
[#Rule 24
- 'array', 3, undef
+ 'array', 0, undef
],
[#Rule 25
- 'type', 1, undef
+ 'array', 3,
+sub
+#line 99 "build/pidl/smb_interfaces.yp"
+{ int($_[2]) }
],
[#Rule 26
- 'type', 2, undef
+ 'type', 1, undef
],
[#Rule 27
- 'pointers', 0, undef
+ 'type', 2,
+sub
+#line 104 "build/pidl/smb_interfaces.yp"
+{ "enum $_[2]" }
],
[#Rule 28
+ 'pointers', 0, undef
+ ],
+ [#Rule 29
'pointers', 2,
sub
-#line 91 "build/pidl/smb_interfaces.yp"
+#line 109 "build/pidl/smb_interfaces.yp"
{ $_[1]+1 }
],
- [#Rule 29
+ [#Rule 30
'optional_identifiers', 1,
sub
-#line 94 "build/pidl/smb_interfaces.yp"
+#line 112 "build/pidl/smb_interfaces.yp"
{ [$_[1]] }
],
- [#Rule 30
+ [#Rule 31
'optional_identifiers', 3,
sub
-#line 95 "build/pidl/smb_interfaces.yp"
+#line 113 "build/pidl/smb_interfaces.yp"
{ push(@{$_[1]}, $_[3]); $_[1] }
],
- [#Rule 31
+ [#Rule 32
'optional_identifier', 1, undef
],
- [#Rule 32
+ [#Rule 33
'optional_identifier', 0, undef
]
],
@@ -1080,7 +1152,7 @@ sub
bless($self,$class);
}
-#line 101 "build/pidl/smb_interfaces.yp"
+#line 119 "build/pidl/smb_interfaces.yp"
#####################################################################