From aba7014e41b120e8c4bac5d5dab91655b46a2175 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 27 May 2005 14:01:22 +0000 Subject: r7022: Add support for parsing definitions of multi-dimension arrays. This will also be required for supporting parsing pointers to arrays and arrays of pointers simultaneously. (This used to be commit a34f848b02a6e8284d62532a792a5136e846fe8f) --- source4/build/pidl/eth_header.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/build/pidl/eth_header.pm') diff --git a/source4/build/pidl/eth_header.pm b/source4/build/pidl/eth_header.pm index f0a5778854..2e0397df37 100644 --- a/source4/build/pidl/eth_header.pm +++ b/source4/build/pidl/eth_header.pm @@ -44,7 +44,7 @@ sub HeaderTypedefProto($) sub HeaderConst($) { my($const) = shift; - if (!defined($const->{ARRAY_LEN})) { + if (!defined($const->{ARRAY_LEN}[0])) { pidl "#define $const->{NAME}\t( $const->{VALUE} )\n"; } else { pidl "#define $const->{NAME}\t $const->{VALUE}\n"; -- cgit