summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2009-06-01 16:26:43 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-02 18:05:42 +0200
commit00bfe9c286b7156f30a5cad4ee6d42557f3c7835 (patch)
tree23da334a49e7e1a5bfc2937a34cc37c7e3dbcb01 /pidl/lib/Parse/Pidl
parent688efbbc687bf96c6801afe55deb55a7002a9bf3 (diff)
downloadsamba-00bfe9c286b7156f30a5cad4ee6d42557f3c7835.tar.gz
samba-00bfe9c286b7156f30a5cad4ee6d42557f3c7835.tar.bz2
samba-00bfe9c286b7156f30a5cad4ee6d42557f3c7835.zip
Add support for double type in pidl.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r--pidl/lib/Parse/Pidl/NDR.pm1
-rw-r--r--pidl/lib/Parse/Pidl/Typelist.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm
index 5ee26d16b6..95cd4b9dc3 100644
--- a/pidl/lib/Parse/Pidl/NDR.pm
+++ b/pidl/lib/Parse/Pidl/NDR.pm
@@ -53,6 +53,7 @@ my $scalar_alignment = {
'int32' => 4,
'uint32' => 4,
'hyper' => 8,
+ 'double' => 8,
'pointer' => 8,
'dlong' => 4,
'udlong' => 4,
diff --git a/pidl/lib/Parse/Pidl/Typelist.pm b/pidl/lib/Parse/Pidl/Typelist.pm
index 4f9d982c21..e63b3c990f 100644
--- a/pidl/lib/Parse/Pidl/Typelist.pm
+++ b/pidl/lib/Parse/Pidl/Typelist.pm
@@ -38,6 +38,7 @@ my %scalars = (
"dlong" => "int64_t",
"udlong" => "uint64_t",
"udlongr" => "uint64_t",
+ "double" => "double",
"pointer" => "void*",
"DATA_BLOB" => "DATA_BLOB",
"string" => "const char *",