mirror of
https://github.com/samba-team/samba.git
synced 2025-11-06 08:23:50 +03:00
make pidl no longer dependent on Data::Dumper, which isn't installed
on some systems
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
package IdlClient;
|
package IdlClient;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
my($res);
|
my($res);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
package dump;
|
package dump;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
my($res);
|
my($res);
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
package eparser;
|
package eparser;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
my($res);
|
my($res);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
package IdlHeader;
|
package IdlHeader;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
my($res);
|
my($res);
|
||||||
my($tab_depth);
|
my($tab_depth);
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
package IdlParser;
|
package IdlParser;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
use client;
|
use client;
|
||||||
|
|
||||||
# the list of needed functions
|
# the list of needed functions
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
package IdlServer;
|
package IdlServer;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
my($res);
|
my($res);
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# released under the GNU GPL
|
# released under the GNU GPL
|
||||||
package util;
|
package util;
|
||||||
|
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# load a data structure from a file (as saved with SaveStructure)
|
# load a data structure from a file (as saved with SaveStructure)
|
||||||
sub LoadStructure($)
|
sub LoadStructure($)
|
||||||
@@ -136,9 +134,10 @@ sub ChangeExtension($$)
|
|||||||
# save a data structure into a file
|
# save a data structure into a file
|
||||||
sub SaveStructure($$)
|
sub SaveStructure($$)
|
||||||
{
|
{
|
||||||
my($filename) = shift;
|
require Data::Dumper;
|
||||||
my($v) = shift;
|
my($filename) = shift;
|
||||||
FileSave($filename, Dumper($v));
|
my($v) = shift;
|
||||||
|
FileSave($filename, Data::Dumper::Dumper($v));
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
@@ -363,10 +362,5 @@ sub is_inline_array($)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub dump($)
|
|
||||||
{
|
|
||||||
print Dumper shift;
|
|
||||||
}
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
package IdlValidator;
|
package IdlValidator;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Data::Dumper;
|
|
||||||
|
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# signal a fatal validation error
|
# signal a fatal validation error
|
||||||
|
|||||||
Reference in New Issue
Block a user