1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00

much cleaner handling of the different types of variables

This commit is contained in:
Andrew Tridgell
-
parent 4c0226c718
commit 4df59bcff5
4 changed files with 150 additions and 85 deletions

View File

@@ -59,8 +59,15 @@ sub DumpElement($)
$res .= "*";
}
}
if (defined $element->{ARRAY_LEN} &&
$element->{ARRAY_LEN} eq "*") {
$res .= "*";
}
$res .= "$element->{NAME}";
(defined $element->{ARRAY_LEN}) && ($res .= "[$element->{ARRAY_LEN}]");
if (defined $element->{ARRAY_LEN} &&
$element->{ARRAY_LEN} ne "*") {
$res .= "[$element->{ARRAY_LEN}]";
}
$res .= ";\n";
}