From 27962ddac19faf764cc7ff869bf31ff1265b3149 Mon Sep 17 00:00:00 2001 From: rich Date: Thu, 31 Mar 2005 13:46:31 +0000 Subject: [PATCH] New version 0.9.3. Added dump_hv, dump_av functions to Data::Dumper. --- Makefile.config | 4 ++-- wrappers/pl_Data_Dumper.ml | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile.config b/Makefile.config index 4320086..09b89f6 100644 --- a/Makefile.config +++ b/Makefile.config @@ -1,5 +1,5 @@ # perl4caml configuration -*- Makefile -*- -# $Id: Makefile.config,v 1.24 2005-02-13 17:40:17 rich Exp $ +# $Id: Makefile.config,v 1.25 2005-03-31 13:46:31 rich Exp $ # PERLINCDIR # Directory containing the Perl include files, eg. . @@ -42,4 +42,4 @@ DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a # PACKAGE and VERSION PACKAGE := perl4caml -VERSION := 0.9.2 +VERSION := 0.9.3 diff --git a/wrappers/pl_Data_Dumper.ml b/wrappers/pl_Data_Dumper.ml index 837eb69..12f19c5 100644 --- a/wrappers/pl_Data_Dumper.ml +++ b/wrappers/pl_Data_Dumper.ml @@ -2,7 +2,7 @@ * * Copyright (C) 2005 Merjis Ltd. * - * $Id: pl_Data_Dumper.ml,v 1.1 2005-01-31 15:23:23 rich Exp $ + * $Id: pl_Data_Dumper.ml,v 1.2 2005-03-31 13:46:32 rich Exp $ *) open Perl @@ -24,3 +24,9 @@ let new_ r = let dump r = string_of_sv (call_class_method "Data::Dumper" "Dump" [r]) + +let dump_hv hv = + dump (arrayref (av_of_sv_list [hashref hv])) + +let dump_av av = + dump (arrayref av) -- 1.8.3.1