Update from samba tree revision 20292 to 21237
============================ Samba log start ============
------------------------------------------------------------------------
r20298 | jelmer | 2006-12-21 02:51:35 +0100 (Thu, 21 Dec 2006) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/build/smb_build/makefile.pm
M /branches/SAMBA_4_0/source/build/smb_build/output.pm
M /branches/SAMBA_4_0/source/include/includes.h
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
Fix pidl tests (missing symlink..).
------------------------------------------------------------------------
r20299 | jelmer | 2006-12-21 03:48:46 +0100 (Thu, 21 Dec 2006) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_fullptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_string.pl
Disable two new tests that are apparently broken.
------------------------------------------------------------------------
r20358 | metze | 2006-12-27 16:36:50 +0100 (Wed, 27 Dec 2006) | 6 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
M /branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.c
M /branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h
- fix ejs generated code for ipv4address
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE}))
is much more generic than ($e->{TYPE} ne "string")
and handles ipv4address and other special types...
metze
------------------------------------------------------------------------
r20511 | jelmer | 2007-01-03 16:34:01 +0100 (Wed, 03 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Compat.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
Combine warnings/errors/fatal functions and move them to Parse::Pidl.
------------------------------------------------------------------------
r20543 | jelmer | 2007-01-05 13:56:15 +0100 (Fri, 05 Jan 2007) | 5 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/util.pl
Merge some pidl bug fixes:
* C expressions that just started with a constant were erroneously flagged
as being a constant.
* 1-length variable names in expressions were broken.
------------------------------------------------------------------------
r20545 | jelmer | 2007-01-05 15:25:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Fix is_constant().
------------------------------------------------------------------------
r20547 | jelmer | 2007-01-05 15:55:26 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/ndr_compat.pl
A /branches/SAMBA_4_0/source/pidl/tests/test_util.pl
Add tests for expected errors/warnings.
------------------------------------------------------------------------
r20548 | jelmer | 2007-01-05 16:03:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_alloc.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_array.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_fullptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_refptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_represent.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_simple.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_string.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
M /branches/SAMBA_4_0/source/pidl/tests/test_util.pl
Remove unnecessary "use lib", fix warnings.
------------------------------------------------------------------------
r20550 | jelmer | 2007-01-05 16:20:23 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/idl.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl
Use standard error mechanism in parser.
Make sure errors are reported correctly.
------------------------------------------------------------------------
r20556 | jelmer | 2007-01-05 18:18:22 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Add more tests to make sure nothing breaks when I replace the ParseExpr code.
------------------------------------------------------------------------
r20561 | jelmer | 2007-01-05 21:12:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
A /branches/SAMBA_4_0/source/pidl/expr.yp
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
Add parser for subexpressions used in IDL attributes.
------------------------------------------------------------------------
r20562 | jelmer | 2007-01-05 21:13:48 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/main.mk
M /branches/SAMBA_4_0/source/pidl/Makefile.PL
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Yapp
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Yapp/Driver.pm
Start building expr parser. Add separate copy of Yapp::Driver
rather than including it in each individual parser.
------------------------------------------------------------------------
r20563 | jelmer | 2007-01-05 21:18:33 +0100 (Fri, 05 Jan 2007) | 5 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Start using the new parser in ParseExpr(). It's now trivial to use this
to check for NULL pointers when pointers are being dereferenced (#4218).
There are exactly 500 tests for pidl now :-)
------------------------------------------------------------------------
r20564 | jelmer | 2007-01-05 21:23:48 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
Regenerate.
------------------------------------------------------------------------
r20567 | jelmer | 2007-01-05 21:52:12 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Print proper errors with filename and line numbers in ParseExpr()
------------------------------------------------------------------------
r20571 | jelmer | 2007-01-05 22:26:28 +0100 (Fri, 05 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
fix '' case
------------------------------------------------------------------------
r20573 | metze | 2007-01-05 22:36:57 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
fix handling of pointers handling to elements with the charset property
metze
------------------------------------------------------------------------
r20625 | jelmer | 2007-01-09 07:02:41 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/idl.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Fix couple of warnings.
------------------------------------------------------------------------
r20631 | jelmer | 2007-01-09 16:50:36 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
Add some tests for the ndr parser.
------------------------------------------------------------------------
r20633 | jelmer | 2007-01-09 16:54:36 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
Add another test, fix warnings.
------------------------------------------------------------------------
r20637 | jelmer | 2007-01-10 00:41:25 +0100 (Wed, 10 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl
Don't check for NULL pointers when the pointer is guaranteed to not be NULL
(if it is a ref pointer).
------------------------------------------------------------------------
r20638 | jelmer | 2007-01-10 01:37:30 +0100 (Wed, 10 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl
Check for NULL pointers (where possible) in print functions. Fixes #4218,
but without reintroducing coverity warnings.
------------------------------------------------------------------------
r20675 | jelmer | 2007-01-11 03:10:01 +0100 (Thu, 11 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/MANIFEST
M /branches/SAMBA_4_0/source/pidl/Makefile.PL
Fix installation.
------------------------------------------------------------------------
r20688 | jelmer | 2007-01-11 23:47:29 +0100 (Thu, 11 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0/source/pidl/pidl
Use argv[0] equivalent of perl.
------------------------------------------------------------------------
r20746 | jelmer | 2007-01-14 02:33:16 +0100 (Sun, 14 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
D /branches/SAMBA_4_0/source/script/tests/test_smbclient.sh
M /branches/SAMBA_4_0/source/script/tests/tests_all.sh
A /branches/SAMBA_4_0/testprogs/blackbox
A /branches/SAMBA_4_0/testprogs/blackbox/test_smbclient.sh (from /branches/SAMBA_4_0/source/script/tests/test_smbclient.sh:20745)
Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
------------------------------------------------------------------------
r20830 | jelmer | 2007-01-16 15:44:23 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/librpc/idl/mgmt.idl
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
M /branches/SAMBA_4_0/source/rpc_server/config.mk
M /branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
A /branches/SAMBA_4_0/source/rpc_server/dcesrv_mgmt.c (from /branches/SAMBA_4_0/source/rpc_server/mgmt/dcesrv_mgmt.c:20829)
D /branches/SAMBA_4_0/source/rpc_server/mgmt
M /branches/SAMBA_4_0/source/script/tests/test_rpc.sh
M /branches/SAMBA_4_0/source/torture/rpc/mgmt.c
merge mgmt work
------------------------------------------------------------------------
r20834 | jelmer | 2007-01-16 16:51:37 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4.pm
No longer generate extra pointers for top-level [out] unique pointers.
------------------------------------------------------------------------
r20836 | jelmer | 2007-01-16 18:45:33 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Use real type name, to fix compilation with -WC++-compat
------------------------------------------------------------------------
r20850 | jelmer | 2007-01-17 15:49:36 +0100 (Wed, 17 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Template.pm
M /branches/SAMBA_4_0/source/rpc_server/dcesrv_mgmt.c
M /branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c
M /branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c
M /branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c
M /branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c
M /branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
M /branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
M /branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
M /branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c
M /branches/SAMBA_4_0/source/rpc_server/srvsvc/dcesrv_srvsvc.c
M /branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c
M /branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c
M /branches/SAMBA_4_0/source/rpc_server/wkssvc/dcesrv_wkssvc.c
Prefix all server calls with dcesrv_
------------------------------------------------------------------------
r20942 | jelmer | 2007-01-22 01:04:59 +0100 (Mon, 22 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/build/m4/check_cc.m4
M /branches/SAMBA_4_0/source/build/m4/check_perl.m4
M /branches/SAMBA_4_0/source/build/smb_build/makefile.pm
M /branches/SAMBA_4_0/source/main.mk
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/pidl
Simplify handling of systems that don't support negative enum values by using an ifdef rather than a pidl argument.
------------------------------------------------------------------------
r20967 | jelmer | 2007-01-23 11:08:08 +0100 (Tue, 23 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_refptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
M /branches/SAMBA_4_0/source/script/tests/tests_all.sh
M /branches/SAMBA_4_0/source/torture/config.mk
Allow pidl tests to work with gcov
------------------------------------------------------------------------
r21075 | jelmer | 2007-01-31 12:54:01 +0100 (Wed, 31 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Generate parameters in structs for the server side Samba 3 code. The current code in Samba 3 is already generated using this pidl patch.
------------------------------------------------------------------------
r21222 | jelmer | 2007-02-07 20:03:19 +0100 (Wed, 07 Feb 2007) | 8 lines
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/TODO
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/pidl
D /branches/SAMBA_4_0/source/pidl/ref_notes.txt
A /branches/SAMBA_4_0/source/pidl/tests/ndr_deprecations.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_represent.pl
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
M /branches/SAMBA_4_0/source/torture/smbtorture.c
M /branches/SAMBA_4_0/source/torture/torture.c
Merge a couple of pidl fixes:
* Pidl will now warn when trying to use pointers as integers in expressions.
* "subcontext()" is now marked as deprecated. The alternatives,
transmit_as() / represent_as() should be available soon.
* More tests.
* Remove some unused code in smbtorture.
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============
svn path=/trunk/; revision=20744
2007-02-08 13:54:27 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
# (C) 2007 Jelmer Vernooij <jelmer@samba.org>
|
|
|
|
# Published under the GNU General Public License
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
Update pidl to current samba tree. This changes the license
of the *tool* to GPLv3. The license of the generated code is
is most likely not affected (see mail on wireshark-dev from Jelmer).
Update from samba tree revision 23750 to 25198
============================ Samba log start ============
------------------------------------------------------------------------
r23792 | tridge | 2007-07-10 04:07:03 +0200 (Tue, 10 Jul 2007) | 6 lines
convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
------------------------------------------------------------------------
r24407 | metze | 2007-08-14 13:50:45 +0200 (Tue, 14 Aug 2007) | 6 lines
$element->{ARRAY_LEN} doesn't exist...
and a few lines above we use $element->{ORIGINAL}->{ARRAY_LEN}
I assume it was just forgotten in the update.
metze
------------------------------------------------------------------------
r24446 | metze | 2007-08-15 08:08:02 +0200 (Wed, 15 Aug 2007) | 4 lines
We only need one genric GenerateFunctionInEnv
function
metze
------------------------------------------------------------------------
r24447 | metze | 2007-08-15 10:55:16 +0200 (Wed, 15 Aug 2007) | 3 lines
fix samba3-cli pidl tests
metze
------------------------------------------------------------------------
r24452 | metze | 2007-08-15 11:18:25 +0200 (Wed, 15 Aug 2007) | 4 lines
bail out instead of only giving a warning on
incorrect idl files
metze
------------------------------------------------------------------------
r24454 | metze | 2007-08-15 12:23:28 +0200 (Wed, 15 Aug 2007) | 3 lines
when level 0 is a pointer we need to look for an array in level 1...
metze
------------------------------------------------------------------------
r24463 | metze | 2007-08-15 16:02:23 +0200 (Wed, 15 Aug 2007) | 4 lines
we have a function to correctly create an $env object
so don't try it manually and introduce bugs:-)
metze
------------------------------------------------------------------------
r24482 | metze | 2007-08-16 12:07:19 +0200 (Thu, 16 Aug 2007) | 3 lines
white space cleanup only...
metze
------------------------------------------------------------------------
r24484 | metze | 2007-08-16 12:54:11 +0200 (Thu, 16 Aug 2007) | 3 lines
pass down $ndr tree instead of the $pidl tree to Samba4/Header.pm
metze
------------------------------------------------------------------------
r24487 | metze | 2007-08-16 15:27:41 +0200 (Thu, 16 Aug 2007) | 3 lines
fix formating and add defined($opt_header)
metze
------------------------------------------------------------------------
r24488 | metze | 2007-08-16 15:29:38 +0200 (Thu, 16 Aug 2007) | 3 lines
enum's and bitmap's not have nested types
metze
------------------------------------------------------------------------
r24489 | metze | 2007-08-16 15:34:54 +0200 (Thu, 16 Aug 2007) | 4 lines
only typedef enum { ... } foo; enum's should look
for has_properties() of $enum->{PARENT}
metze
------------------------------------------------------------------------
r24490 | metze | 2007-08-16 15:39:30 +0200 (Thu, 16 Aug 2007) | 8 lines
For ParseBitmap() we use Parse::Pidl::Typelist::bitmap_type_fn()
so for ParseEnum() we should also use Parse::Pidl::Typelist::enum_type_fn().
Also the base_type() property isn't standard IDL and we should not support it.
This changes TDR enum to also to default to uint16 (as with NDR enums).
metze
------------------------------------------------------------------------
r24492 | metze | 2007-08-16 15:41:48 +0200 (Thu, 16 Aug 2007) | 4 lines
Parse::Pidl::Samba4::Header::Parse() now takes an $ndr tree
not the $pidl tree anymore.
metze
------------------------------------------------------------------------
r24493 | metze | 2007-08-16 16:42:22 +0200 (Thu, 16 Aug 2007) | 11 lines
- it turns out that
foreach my $e (@{$union->{ELEMENTS}}) {
changes $union->{ELEMENTS} from undef into an empty array.
this removes the difference between
struct foo { }; and struct foo;
So we need to explicit return before.
- we should return the same element for layout for
structs and unions with no elements.
- fix the testsuite to match
metze
------------------------------------------------------------------------
r24505 | metze | 2007-08-17 09:06:02 +0200 (Fri, 17 Aug 2007) | 3 lines
pass down $fn one level
metze
------------------------------------------------------------------------
r24506 | metze | 2007-08-17 09:46:34 +0200 (Fri, 17 Aug 2007) | 3 lines
pass $fn down one more layer
metze
------------------------------------------------------------------------
r24507 | metze | 2007-08-17 10:05:57 +0200 (Fri, 17 Aug 2007) | 3 lines
pass $d down to HeaderTypedef
metze
------------------------------------------------------------------------
r24508 | metze | 2007-08-17 10:47:38 +0200 (Fri, 17 Aug 2007) | 3 lines
add HeaderTypeNew() which will go if everything is converted
metze
------------------------------------------------------------------------
r24509 | metze | 2007-08-17 11:01:19 +0200 (Fri, 17 Aug 2007) | 4 lines
pass down the full ndr elements instead of the old pidl elements
from ->{ORIGINAL}
metze
------------------------------------------------------------------------
r24511 | metze | 2007-08-17 11:12:13 +0200 (Fri, 17 Aug 2007) | 3 lines
pass the correct thing to fatal()
metze
------------------------------------------------------------------------
r24514 | metze | 2007-08-17 13:09:46 +0200 (Fri, 17 Aug 2007) | 3 lines
IS_* elemements sound be perl integers consistantly...
metze
------------------------------------------------------------------------
r24515 | metze | 2007-08-17 13:24:25 +0200 (Fri, 17 Aug 2007) | 3 lines
use fatal() wrapper instead of die() directly
metze
------------------------------------------------------------------------
r24516 | metze | 2007-08-17 14:04:41 +0200 (Fri, 17 Aug 2007) | 3 lines
don't use ->{ORIGINAL}
metze
------------------------------------------------------------------------
r24517 | metze | 2007-08-17 14:55:47 +0200 (Fri, 17 Aug 2007) | 4 lines
move skipping pointer before an array logic into the
pointer loop as we do in other places
metze
------------------------------------------------------------------------
r24518 | metze | 2007-08-17 15:01:51 +0200 (Fri, 17 Aug 2007) | 4 lines
get rid of using ->{ORIGINAL} and move stuff
into subfunctions
metze
------------------------------------------------------------------------
r24520 | metze | 2007-08-17 15:08:00 +0200 (Fri, 17 Aug 2007) | 4 lines
make use of the new ElementStars() and ArrayBrackets()
functions
metze
------------------------------------------------------------------------
r24521 | metze | 2007-08-17 15:42:09 +0200 (Fri, 17 Aug 2007) | 3 lines
we don't yet have optional args to DeclLong()
metze
------------------------------------------------------------------------
r24522 | metze | 2007-08-17 15:45:18 +0200 (Fri, 17 Aug 2007) | 3 lines
make the "skip pointer to an array" logic a bit easier
metze
------------------------------------------------------------------------
r24523 | metze | 2007-08-17 15:47:03 +0200 (Fri, 17 Aug 2007) | 4 lines
we don't support multi-dimentional [out] arrays
for the samba3 server stubs yet, so bail out.
metze
------------------------------------------------------------------------
r24524 | metze | 2007-08-17 15:53:12 +0200 (Fri, 17 Aug 2007) | 3 lines
make use of ElementStars()
metze
------------------------------------------------------------------------
r24535 | metze | 2007-08-18 12:30:40 +0200 (Sat, 18 Aug 2007) | 4 lines
rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h
metze
------------------------------------------------------------------------
r24540 | metze | 2007-08-18 14:25:37 +0200 (Sat, 18 Aug 2007) | 4 lines
rename struct dcerpc_endpoint_list/struct dcerpc_authservice_list
into ndr_interface_string_array and move it to libndr.h
metze
------------------------------------------------------------------------
r24551 | metze | 2007-08-19 22:46:45 +0200 (Sun, 19 Aug 2007) | 6 lines
rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list -> ndr_interface_list
and move them to libndr.h
metze
------------------------------------------------------------------------
r24557 | metze | 2007-08-19 23:23:03 +0200 (Sun, 19 Aug 2007) | 3 lines
rename 'dcerpc_table_' -> 'ndr_table_'
metze
------------------------------------------------------------------------
r24560 | metze | 2007-08-20 00:09:21 +0200 (Mon, 20 Aug 2007) | 3 lines
rename some DCERPC_ prefixes into NDR_
metze
------------------------------------------------------------------------
r24563 | metze | 2007-08-20 00:23:17 +0200 (Mon, 20 Aug 2007) | 3 lines
remove unused DCERPC specific stuff from the generated NDR code
metze
------------------------------------------------------------------------
r24592 | metze | 2007-08-21 14:19:56 +0200 (Tue, 21 Aug 2007) | 4 lines
pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions
metze
------------------------------------------------------------------------
r24596 | metze | 2007-08-21 16:06:33 +0200 (Tue, 21 Aug 2007) | 7 lines
- talloc request structure for the samba3 server bindings
and make that the primary context for the request
which the implementations can also use.
- go via functions pointers in the ndr_interface_table
instead of calling functions directly.
metze
------------------------------------------------------------------------
r24717 | jelmer | 2007-08-27 20:43:18 +0200 (Mon, 27 Aug 2007) | 2 lines
D /branches/SAMBA_4_0/BRANCH.TODO
Some more easy bool conversions, update TODO for registry
------------------------------------------------------------------------
r24721 | jelmer | 2007-08-27 21:47:23 +0200 (Mon, 27 Aug 2007) | 1 line
Avoid True and False because they are only available within Samba.
------------------------------------------------------------------------
r24812 | jelmer | 2007-08-31 00:25:59 +0200 (Fri, 31 Aug 2007) | 1 line
Fix headers for external users.
------------------------------------------------------------------------
r24815 | jelmer | 2007-08-31 02:03:54 +0200 (Fri, 31 Aug 2007) | 1 line
Support cpp_quote().
------------------------------------------------------------------------
r24816 | jelmer | 2007-08-31 02:31:32 +0200 (Fri, 31 Aug 2007) | 4 lines
D /branches/SAMBA_4_0/source/include/core.h
Move the rest of the contents of core.h to more appropriate places.
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
------------------------------------------------------------------------
r24983 | metze | 2007-09-06 15:48:01 +0200 (Thu, 06 Sep 2007) | 4 lines
setup the correct talloc name for structures used in the generated
server stubs
metze
------------------------------------------------------------------------
r25114 | metze | 2007-09-12 14:31:19 +0200 (Wed, 12 Sep 2007) | 7 lines
handle structs and unions without typedefs better
in can_contain_deffered()
jelmer: we need to handle this more genericly, I assume
we have a lot of other related bugs
metze
------------------------------------------------------------------------
r25166 | jelmer | 2007-09-14 20:06:51 +0200 (Fri, 14 Sep 2007) | 1 line
Simplify can_contain_deferred and add tests for it.
------------------------------------------------------------------------
r25168 | jelmer | 2007-09-14 20:26:23 +0200 (Fri, 14 Sep 2007) | 1 line
Fix include for gen_ndr/misc.h. Patch by Julien Kerihuel.
------------------------------------------------------------------------
r25185 | jelmer | 2007-09-16 01:03:34 +0200 (Sun, 16 Sep 2007) | 1 line
Check that can_contain_deferred returns true if one of the members of a type can contain deferred data.
------------------------------------------------------------------------
============================ Samba log end ==============
svn path=/trunk/; revision=22935
2007-09-24 07:00:59 +00:00
|
|
|
use Test::More tests => 72;
|
Update from samba tree revision 20292 to 21237
============================ Samba log start ============
------------------------------------------------------------------------
r20298 | jelmer | 2006-12-21 02:51:35 +0100 (Thu, 21 Dec 2006) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/build/smb_build/makefile.pm
M /branches/SAMBA_4_0/source/build/smb_build/output.pm
M /branches/SAMBA_4_0/source/include/includes.h
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
Fix pidl tests (missing symlink..).
------------------------------------------------------------------------
r20299 | jelmer | 2006-12-21 03:48:46 +0100 (Thu, 21 Dec 2006) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_fullptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_string.pl
Disable two new tests that are apparently broken.
------------------------------------------------------------------------
r20358 | metze | 2006-12-27 16:36:50 +0100 (Wed, 27 Dec 2006) | 6 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
M /branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.c
M /branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h
- fix ejs generated code for ipv4address
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE}))
is much more generic than ($e->{TYPE} ne "string")
and handles ipv4address and other special types...
metze
------------------------------------------------------------------------
r20511 | jelmer | 2007-01-03 16:34:01 +0100 (Wed, 03 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Compat.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
Combine warnings/errors/fatal functions and move them to Parse::Pidl.
------------------------------------------------------------------------
r20543 | jelmer | 2007-01-05 13:56:15 +0100 (Fri, 05 Jan 2007) | 5 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/util.pl
Merge some pidl bug fixes:
* C expressions that just started with a constant were erroneously flagged
as being a constant.
* 1-length variable names in expressions were broken.
------------------------------------------------------------------------
r20545 | jelmer | 2007-01-05 15:25:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Fix is_constant().
------------------------------------------------------------------------
r20547 | jelmer | 2007-01-05 15:55:26 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/ndr_compat.pl
A /branches/SAMBA_4_0/source/pidl/tests/test_util.pl
Add tests for expected errors/warnings.
------------------------------------------------------------------------
r20548 | jelmer | 2007-01-05 16:03:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_alloc.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_array.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_fullptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_refptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_represent.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_simple.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_string.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
M /branches/SAMBA_4_0/source/pidl/tests/test_util.pl
Remove unnecessary "use lib", fix warnings.
------------------------------------------------------------------------
r20550 | jelmer | 2007-01-05 16:20:23 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/idl.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl
Use standard error mechanism in parser.
Make sure errors are reported correctly.
------------------------------------------------------------------------
r20556 | jelmer | 2007-01-05 18:18:22 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Add more tests to make sure nothing breaks when I replace the ParseExpr code.
------------------------------------------------------------------------
r20561 | jelmer | 2007-01-05 21:12:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
A /branches/SAMBA_4_0/source/pidl/expr.yp
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
Add parser for subexpressions used in IDL attributes.
------------------------------------------------------------------------
r20562 | jelmer | 2007-01-05 21:13:48 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/main.mk
M /branches/SAMBA_4_0/source/pidl/Makefile.PL
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Yapp
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Yapp/Driver.pm
Start building expr parser. Add separate copy of Yapp::Driver
rather than including it in each individual parser.
------------------------------------------------------------------------
r20563 | jelmer | 2007-01-05 21:18:33 +0100 (Fri, 05 Jan 2007) | 5 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Start using the new parser in ParseExpr(). It's now trivial to use this
to check for NULL pointers when pointers are being dereferenced (#4218).
There are exactly 500 tests for pidl now :-)
------------------------------------------------------------------------
r20564 | jelmer | 2007-01-05 21:23:48 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
Regenerate.
------------------------------------------------------------------------
r20567 | jelmer | 2007-01-05 21:52:12 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Print proper errors with filename and line numbers in ParseExpr()
------------------------------------------------------------------------
r20571 | jelmer | 2007-01-05 22:26:28 +0100 (Fri, 05 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
fix '' case
------------------------------------------------------------------------
r20573 | metze | 2007-01-05 22:36:57 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
fix handling of pointers handling to elements with the charset property
metze
------------------------------------------------------------------------
r20625 | jelmer | 2007-01-09 07:02:41 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/idl.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Fix couple of warnings.
------------------------------------------------------------------------
r20631 | jelmer | 2007-01-09 16:50:36 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
Add some tests for the ndr parser.
------------------------------------------------------------------------
r20633 | jelmer | 2007-01-09 16:54:36 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
Add another test, fix warnings.
------------------------------------------------------------------------
r20637 | jelmer | 2007-01-10 00:41:25 +0100 (Wed, 10 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl
Don't check for NULL pointers when the pointer is guaranteed to not be NULL
(if it is a ref pointer).
------------------------------------------------------------------------
r20638 | jelmer | 2007-01-10 01:37:30 +0100 (Wed, 10 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl
Check for NULL pointers (where possible) in print functions. Fixes #4218,
but without reintroducing coverity warnings.
------------------------------------------------------------------------
r20675 | jelmer | 2007-01-11 03:10:01 +0100 (Thu, 11 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/MANIFEST
M /branches/SAMBA_4_0/source/pidl/Makefile.PL
Fix installation.
------------------------------------------------------------------------
r20688 | jelmer | 2007-01-11 23:47:29 +0100 (Thu, 11 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0/source/pidl/pidl
Use argv[0] equivalent of perl.
------------------------------------------------------------------------
r20746 | jelmer | 2007-01-14 02:33:16 +0100 (Sun, 14 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
D /branches/SAMBA_4_0/source/script/tests/test_smbclient.sh
M /branches/SAMBA_4_0/source/script/tests/tests_all.sh
A /branches/SAMBA_4_0/testprogs/blackbox
A /branches/SAMBA_4_0/testprogs/blackbox/test_smbclient.sh (from /branches/SAMBA_4_0/source/script/tests/test_smbclient.sh:20745)
Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
------------------------------------------------------------------------
r20830 | jelmer | 2007-01-16 15:44:23 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/librpc/idl/mgmt.idl
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
M /branches/SAMBA_4_0/source/rpc_server/config.mk
M /branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
A /branches/SAMBA_4_0/source/rpc_server/dcesrv_mgmt.c (from /branches/SAMBA_4_0/source/rpc_server/mgmt/dcesrv_mgmt.c:20829)
D /branches/SAMBA_4_0/source/rpc_server/mgmt
M /branches/SAMBA_4_0/source/script/tests/test_rpc.sh
M /branches/SAMBA_4_0/source/torture/rpc/mgmt.c
merge mgmt work
------------------------------------------------------------------------
r20834 | jelmer | 2007-01-16 16:51:37 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4.pm
No longer generate extra pointers for top-level [out] unique pointers.
------------------------------------------------------------------------
r20836 | jelmer | 2007-01-16 18:45:33 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Use real type name, to fix compilation with -WC++-compat
------------------------------------------------------------------------
r20850 | jelmer | 2007-01-17 15:49:36 +0100 (Wed, 17 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Template.pm
M /branches/SAMBA_4_0/source/rpc_server/dcesrv_mgmt.c
M /branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c
M /branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c
M /branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c
M /branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c
M /branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
M /branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
M /branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
M /branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c
M /branches/SAMBA_4_0/source/rpc_server/srvsvc/dcesrv_srvsvc.c
M /branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c
M /branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c
M /branches/SAMBA_4_0/source/rpc_server/wkssvc/dcesrv_wkssvc.c
Prefix all server calls with dcesrv_
------------------------------------------------------------------------
r20942 | jelmer | 2007-01-22 01:04:59 +0100 (Mon, 22 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/build/m4/check_cc.m4
M /branches/SAMBA_4_0/source/build/m4/check_perl.m4
M /branches/SAMBA_4_0/source/build/smb_build/makefile.pm
M /branches/SAMBA_4_0/source/main.mk
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/pidl
Simplify handling of systems that don't support negative enum values by using an ifdef rather than a pidl argument.
------------------------------------------------------------------------
r20967 | jelmer | 2007-01-23 11:08:08 +0100 (Tue, 23 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_refptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
M /branches/SAMBA_4_0/source/script/tests/tests_all.sh
M /branches/SAMBA_4_0/source/torture/config.mk
Allow pidl tests to work with gcov
------------------------------------------------------------------------
r21075 | jelmer | 2007-01-31 12:54:01 +0100 (Wed, 31 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Generate parameters in structs for the server side Samba 3 code. The current code in Samba 3 is already generated using this pidl patch.
------------------------------------------------------------------------
r21222 | jelmer | 2007-02-07 20:03:19 +0100 (Wed, 07 Feb 2007) | 8 lines
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/TODO
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/pidl
D /branches/SAMBA_4_0/source/pidl/ref_notes.txt
A /branches/SAMBA_4_0/source/pidl/tests/ndr_deprecations.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_represent.pl
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
M /branches/SAMBA_4_0/source/torture/smbtorture.c
M /branches/SAMBA_4_0/source/torture/torture.c
Merge a couple of pidl fixes:
* Pidl will now warn when trying to use pointers as integers in expressions.
* "subcontext()" is now marked as deprecated. The alternatives,
transmit_as() / represent_as() should be available soon.
* More tests.
* Remove some unused code in smbtorture.
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============
svn path=/trunk/; revision=20744
2007-02-08 13:54:27 +00:00
|
|
|
use FindBin qw($RealBin);
|
|
|
|
use lib "$RealBin";
|
|
|
|
use Util;
|
|
|
|
use Parse::Pidl qw(error);
|
|
|
|
use Parse::Pidl::Util;
|
|
|
|
|
|
|
|
# has_property()
|
|
|
|
is(undef, has_property({}, "foo"));
|
|
|
|
is(undef, has_property({PROPERTIES => {}}, "foo"));
|
|
|
|
is("data", has_property({PROPERTIES => {foo => "data"}}, "foo"));
|
|
|
|
is(undef, has_property({PROPERTIES => {foo => undef}}, "foo"));
|
|
|
|
|
|
|
|
# is_constant()
|
|
|
|
ok(is_constant("2"));
|
|
|
|
ok(is_constant("256"));
|
|
|
|
ok(is_constant("0x400"));
|
|
|
|
ok(is_constant("0x4BC"));
|
|
|
|
ok(not is_constant("0x4BGC"));
|
|
|
|
ok(not is_constant("str"));
|
|
|
|
ok(not is_constant("2 * expr"));
|
|
|
|
|
|
|
|
# make_str()
|
|
|
|
is("\"bla\"", make_str("bla"));
|
|
|
|
is("\"bla\"", make_str("\"bla\""));
|
|
|
|
is("\"\"bla\"\"", make_str("\"\"bla\"\""));
|
|
|
|
is("\"bla\"\"", make_str("bla\""));
|
|
|
|
is("\"foo\"bar\"", make_str("foo\"bar"));
|
|
|
|
|
Update pidl to current samba tree. This changes the license
of the *tool* to GPLv3. The license of the generated code is
is most likely not affected (see mail on wireshark-dev from Jelmer).
Update from samba tree revision 23750 to 25198
============================ Samba log start ============
------------------------------------------------------------------------
r23792 | tridge | 2007-07-10 04:07:03 +0200 (Tue, 10 Jul 2007) | 6 lines
convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
------------------------------------------------------------------------
r24407 | metze | 2007-08-14 13:50:45 +0200 (Tue, 14 Aug 2007) | 6 lines
$element->{ARRAY_LEN} doesn't exist...
and a few lines above we use $element->{ORIGINAL}->{ARRAY_LEN}
I assume it was just forgotten in the update.
metze
------------------------------------------------------------------------
r24446 | metze | 2007-08-15 08:08:02 +0200 (Wed, 15 Aug 2007) | 4 lines
We only need one genric GenerateFunctionInEnv
function
metze
------------------------------------------------------------------------
r24447 | metze | 2007-08-15 10:55:16 +0200 (Wed, 15 Aug 2007) | 3 lines
fix samba3-cli pidl tests
metze
------------------------------------------------------------------------
r24452 | metze | 2007-08-15 11:18:25 +0200 (Wed, 15 Aug 2007) | 4 lines
bail out instead of only giving a warning on
incorrect idl files
metze
------------------------------------------------------------------------
r24454 | metze | 2007-08-15 12:23:28 +0200 (Wed, 15 Aug 2007) | 3 lines
when level 0 is a pointer we need to look for an array in level 1...
metze
------------------------------------------------------------------------
r24463 | metze | 2007-08-15 16:02:23 +0200 (Wed, 15 Aug 2007) | 4 lines
we have a function to correctly create an $env object
so don't try it manually and introduce bugs:-)
metze
------------------------------------------------------------------------
r24482 | metze | 2007-08-16 12:07:19 +0200 (Thu, 16 Aug 2007) | 3 lines
white space cleanup only...
metze
------------------------------------------------------------------------
r24484 | metze | 2007-08-16 12:54:11 +0200 (Thu, 16 Aug 2007) | 3 lines
pass down $ndr tree instead of the $pidl tree to Samba4/Header.pm
metze
------------------------------------------------------------------------
r24487 | metze | 2007-08-16 15:27:41 +0200 (Thu, 16 Aug 2007) | 3 lines
fix formating and add defined($opt_header)
metze
------------------------------------------------------------------------
r24488 | metze | 2007-08-16 15:29:38 +0200 (Thu, 16 Aug 2007) | 3 lines
enum's and bitmap's not have nested types
metze
------------------------------------------------------------------------
r24489 | metze | 2007-08-16 15:34:54 +0200 (Thu, 16 Aug 2007) | 4 lines
only typedef enum { ... } foo; enum's should look
for has_properties() of $enum->{PARENT}
metze
------------------------------------------------------------------------
r24490 | metze | 2007-08-16 15:39:30 +0200 (Thu, 16 Aug 2007) | 8 lines
For ParseBitmap() we use Parse::Pidl::Typelist::bitmap_type_fn()
so for ParseEnum() we should also use Parse::Pidl::Typelist::enum_type_fn().
Also the base_type() property isn't standard IDL and we should not support it.
This changes TDR enum to also to default to uint16 (as with NDR enums).
metze
------------------------------------------------------------------------
r24492 | metze | 2007-08-16 15:41:48 +0200 (Thu, 16 Aug 2007) | 4 lines
Parse::Pidl::Samba4::Header::Parse() now takes an $ndr tree
not the $pidl tree anymore.
metze
------------------------------------------------------------------------
r24493 | metze | 2007-08-16 16:42:22 +0200 (Thu, 16 Aug 2007) | 11 lines
- it turns out that
foreach my $e (@{$union->{ELEMENTS}}) {
changes $union->{ELEMENTS} from undef into an empty array.
this removes the difference between
struct foo { }; and struct foo;
So we need to explicit return before.
- we should return the same element for layout for
structs and unions with no elements.
- fix the testsuite to match
metze
------------------------------------------------------------------------
r24505 | metze | 2007-08-17 09:06:02 +0200 (Fri, 17 Aug 2007) | 3 lines
pass down $fn one level
metze
------------------------------------------------------------------------
r24506 | metze | 2007-08-17 09:46:34 +0200 (Fri, 17 Aug 2007) | 3 lines
pass $fn down one more layer
metze
------------------------------------------------------------------------
r24507 | metze | 2007-08-17 10:05:57 +0200 (Fri, 17 Aug 2007) | 3 lines
pass $d down to HeaderTypedef
metze
------------------------------------------------------------------------
r24508 | metze | 2007-08-17 10:47:38 +0200 (Fri, 17 Aug 2007) | 3 lines
add HeaderTypeNew() which will go if everything is converted
metze
------------------------------------------------------------------------
r24509 | metze | 2007-08-17 11:01:19 +0200 (Fri, 17 Aug 2007) | 4 lines
pass down the full ndr elements instead of the old pidl elements
from ->{ORIGINAL}
metze
------------------------------------------------------------------------
r24511 | metze | 2007-08-17 11:12:13 +0200 (Fri, 17 Aug 2007) | 3 lines
pass the correct thing to fatal()
metze
------------------------------------------------------------------------
r24514 | metze | 2007-08-17 13:09:46 +0200 (Fri, 17 Aug 2007) | 3 lines
IS_* elemements sound be perl integers consistantly...
metze
------------------------------------------------------------------------
r24515 | metze | 2007-08-17 13:24:25 +0200 (Fri, 17 Aug 2007) | 3 lines
use fatal() wrapper instead of die() directly
metze
------------------------------------------------------------------------
r24516 | metze | 2007-08-17 14:04:41 +0200 (Fri, 17 Aug 2007) | 3 lines
don't use ->{ORIGINAL}
metze
------------------------------------------------------------------------
r24517 | metze | 2007-08-17 14:55:47 +0200 (Fri, 17 Aug 2007) | 4 lines
move skipping pointer before an array logic into the
pointer loop as we do in other places
metze
------------------------------------------------------------------------
r24518 | metze | 2007-08-17 15:01:51 +0200 (Fri, 17 Aug 2007) | 4 lines
get rid of using ->{ORIGINAL} and move stuff
into subfunctions
metze
------------------------------------------------------------------------
r24520 | metze | 2007-08-17 15:08:00 +0200 (Fri, 17 Aug 2007) | 4 lines
make use of the new ElementStars() and ArrayBrackets()
functions
metze
------------------------------------------------------------------------
r24521 | metze | 2007-08-17 15:42:09 +0200 (Fri, 17 Aug 2007) | 3 lines
we don't yet have optional args to DeclLong()
metze
------------------------------------------------------------------------
r24522 | metze | 2007-08-17 15:45:18 +0200 (Fri, 17 Aug 2007) | 3 lines
make the "skip pointer to an array" logic a bit easier
metze
------------------------------------------------------------------------
r24523 | metze | 2007-08-17 15:47:03 +0200 (Fri, 17 Aug 2007) | 4 lines
we don't support multi-dimentional [out] arrays
for the samba3 server stubs yet, so bail out.
metze
------------------------------------------------------------------------
r24524 | metze | 2007-08-17 15:53:12 +0200 (Fri, 17 Aug 2007) | 3 lines
make use of ElementStars()
metze
------------------------------------------------------------------------
r24535 | metze | 2007-08-18 12:30:40 +0200 (Sat, 18 Aug 2007) | 4 lines
rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h
metze
------------------------------------------------------------------------
r24540 | metze | 2007-08-18 14:25:37 +0200 (Sat, 18 Aug 2007) | 4 lines
rename struct dcerpc_endpoint_list/struct dcerpc_authservice_list
into ndr_interface_string_array and move it to libndr.h
metze
------------------------------------------------------------------------
r24551 | metze | 2007-08-19 22:46:45 +0200 (Sun, 19 Aug 2007) | 6 lines
rename dcerpc_interface_table -> ndr_interface_table
rename dcerpc_interface_list -> ndr_interface_list
and move them to libndr.h
metze
------------------------------------------------------------------------
r24557 | metze | 2007-08-19 23:23:03 +0200 (Sun, 19 Aug 2007) | 3 lines
rename 'dcerpc_table_' -> 'ndr_table_'
metze
------------------------------------------------------------------------
r24560 | metze | 2007-08-20 00:09:21 +0200 (Mon, 20 Aug 2007) | 3 lines
rename some DCERPC_ prefixes into NDR_
metze
------------------------------------------------------------------------
r24563 | metze | 2007-08-20 00:23:17 +0200 (Mon, 20 Aug 2007) | 3 lines
remove unused DCERPC specific stuff from the generated NDR code
metze
------------------------------------------------------------------------
r24592 | metze | 2007-08-21 14:19:56 +0200 (Tue, 21 Aug 2007) | 4 lines
pass down the ndr_interface_table in the samba3 client bindings
instead of the pull and push functions
metze
------------------------------------------------------------------------
r24596 | metze | 2007-08-21 16:06:33 +0200 (Tue, 21 Aug 2007) | 7 lines
- talloc request structure for the samba3 server bindings
and make that the primary context for the request
which the implementations can also use.
- go via functions pointers in the ndr_interface_table
instead of calling functions directly.
metze
------------------------------------------------------------------------
r24717 | jelmer | 2007-08-27 20:43:18 +0200 (Mon, 27 Aug 2007) | 2 lines
D /branches/SAMBA_4_0/BRANCH.TODO
Some more easy bool conversions, update TODO for registry
------------------------------------------------------------------------
r24721 | jelmer | 2007-08-27 21:47:23 +0200 (Mon, 27 Aug 2007) | 1 line
Avoid True and False because they are only available within Samba.
------------------------------------------------------------------------
r24812 | jelmer | 2007-08-31 00:25:59 +0200 (Fri, 31 Aug 2007) | 1 line
Fix headers for external users.
------------------------------------------------------------------------
r24815 | jelmer | 2007-08-31 02:03:54 +0200 (Fri, 31 Aug 2007) | 1 line
Support cpp_quote().
------------------------------------------------------------------------
r24816 | jelmer | 2007-08-31 02:31:32 +0200 (Fri, 31 Aug 2007) | 4 lines
D /branches/SAMBA_4_0/source/include/core.h
Move the rest of the contents of core.h to more appropriate places.
include/ now only contains build system related headers, all other headers are
now near the source code they're related to.
------------------------------------------------------------------------
r24983 | metze | 2007-09-06 15:48:01 +0200 (Thu, 06 Sep 2007) | 4 lines
setup the correct talloc name for structures used in the generated
server stubs
metze
------------------------------------------------------------------------
r25114 | metze | 2007-09-12 14:31:19 +0200 (Wed, 12 Sep 2007) | 7 lines
handle structs and unions without typedefs better
in can_contain_deffered()
jelmer: we need to handle this more genericly, I assume
we have a lot of other related bugs
metze
------------------------------------------------------------------------
r25166 | jelmer | 2007-09-14 20:06:51 +0200 (Fri, 14 Sep 2007) | 1 line
Simplify can_contain_deferred and add tests for it.
------------------------------------------------------------------------
r25168 | jelmer | 2007-09-14 20:26:23 +0200 (Fri, 14 Sep 2007) | 1 line
Fix include for gen_ndr/misc.h. Patch by Julien Kerihuel.
------------------------------------------------------------------------
r25185 | jelmer | 2007-09-16 01:03:34 +0200 (Sun, 16 Sep 2007) | 1 line
Check that can_contain_deferred returns true if one of the members of a type can contain deferred data.
------------------------------------------------------------------------
============================ Samba log end ==============
svn path=/trunk/; revision=22935
2007-09-24 07:00:59 +00:00
|
|
|
is("bla", unmake_str("\"bla\""));
|
|
|
|
is("\"bla\"", unmake_str("\"\"bla\"\""));
|
|
|
|
|
Update from samba tree revision 20292 to 21237
============================ Samba log start ============
------------------------------------------------------------------------
r20298 | jelmer | 2006-12-21 02:51:35 +0100 (Thu, 21 Dec 2006) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/build/smb_build/makefile.pm
M /branches/SAMBA_4_0/source/build/smb_build/output.pm
M /branches/SAMBA_4_0/source/include/includes.h
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
Fix pidl tests (missing symlink..).
------------------------------------------------------------------------
r20299 | jelmer | 2006-12-21 03:48:46 +0100 (Thu, 21 Dec 2006) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_fullptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_string.pl
Disable two new tests that are apparently broken.
------------------------------------------------------------------------
r20358 | metze | 2006-12-27 16:36:50 +0100 (Wed, 27 Dec 2006) | 6 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
M /branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.c
M /branches/SAMBA_4_0/source/scripting/ejs/ejsrpc.h
- fix ejs generated code for ipv4address
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE}))
is much more generic than ($e->{TYPE} ne "string")
and handles ipv4address and other special types...
metze
------------------------------------------------------------------------
r20511 | jelmer | 2007-01-03 16:34:01 +0100 (Wed, 03 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Compat.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
Combine warnings/errors/fatal functions and move them to Parse::Pidl.
------------------------------------------------------------------------
r20543 | jelmer | 2007-01-05 13:56:15 +0100 (Fri, 05 Jan 2007) | 5 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/util.pl
Merge some pidl bug fixes:
* C expressions that just started with a constant were erroneously flagged
as being a constant.
* 1-length variable names in expressions were broken.
------------------------------------------------------------------------
r20545 | jelmer | 2007-01-05 15:25:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Fix is_constant().
------------------------------------------------------------------------
r20547 | jelmer | 2007-01-05 15:55:26 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/ndr_compat.pl
A /branches/SAMBA_4_0/source/pidl/tests/test_util.pl
Add tests for expected errors/warnings.
------------------------------------------------------------------------
r20548 | jelmer | 2007-01-05 16:03:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_alloc.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_array.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_fullptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_refptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_represent.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_simple.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_string.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
M /branches/SAMBA_4_0/source/pidl/tests/test_util.pl
Remove unnecessary "use lib", fix warnings.
------------------------------------------------------------------------
r20550 | jelmer | 2007-01-05 16:20:23 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/idl.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/tests/parse_idl.pl
Use standard error mechanism in parser.
Make sure errors are reported correctly.
------------------------------------------------------------------------
r20556 | jelmer | 2007-01-05 18:18:22 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Add more tests to make sure nothing breaks when I replace the ParseExpr code.
------------------------------------------------------------------------
r20561 | jelmer | 2007-01-05 21:12:21 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
A /branches/SAMBA_4_0/source/pidl/expr.yp
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
Add parser for subexpressions used in IDL attributes.
------------------------------------------------------------------------
r20562 | jelmer | 2007-01-05 21:13:48 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/main.mk
M /branches/SAMBA_4_0/source/pidl/Makefile.PL
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Yapp
A /branches/SAMBA_4_0/source/pidl/lib/Parse/Yapp/Driver.pm
Start building expr parser. Add separate copy of Yapp::Driver
rather than including it in each individual parser.
------------------------------------------------------------------------
r20563 | jelmer | 2007-01-05 21:18:33 +0100 (Fri, 05 Jan 2007) | 5 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Start using the new parser in ParseExpr(). It's now trivial to use this
to check for NULL pointers when pointers are being dereferenced (#4218).
There are exactly 500 tests for pidl now :-)
------------------------------------------------------------------------
r20564 | jelmer | 2007-01-05 21:23:48 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
Regenerate.
------------------------------------------------------------------------
r20567 | jelmer | 2007-01-05 21:52:12 +0100 (Fri, 05 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/TDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Print proper errors with filename and line numbers in ParseExpr()
------------------------------------------------------------------------
r20571 | jelmer | 2007-01-05 22:26:28 +0100 (Fri, 05 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
fix '' case
------------------------------------------------------------------------
r20573 | metze | 2007-01-05 22:36:57 +0100 (Fri, 05 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
fix handling of pointers handling to elements with the charset property
metze
------------------------------------------------------------------------
r20625 | jelmer | 2007-01-09 07:02:41 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/idl.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
Fix couple of warnings.
------------------------------------------------------------------------
r20631 | jelmer | 2007-01-09 16:50:36 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
Add some tests for the ndr parser.
------------------------------------------------------------------------
r20633 | jelmer | 2007-01-09 16:54:36 +0100 (Tue, 09 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/tests/ndr.pl
Add another test, fix warnings.
------------------------------------------------------------------------
r20637 | jelmer | 2007-01-10 00:41:25 +0100 (Wed, 10 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
A /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl
Don't check for NULL pointers when the pointer is guaranteed to not be NULL
(if it is a ref pointer).
------------------------------------------------------------------------
r20638 | jelmer | 2007-01-10 01:37:30 +0100 (Wed, 10 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/tests/samba-ndr.pl
Check for NULL pointers (where possible) in print functions. Fixes #4218,
but without reintroducing coverity warnings.
------------------------------------------------------------------------
r20675 | jelmer | 2007-01-11 03:10:01 +0100 (Thu, 11 Jan 2007) | 2 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/MANIFEST
M /branches/SAMBA_4_0/source/pidl/Makefile.PL
Fix installation.
------------------------------------------------------------------------
r20688 | jelmer | 2007-01-11 23:47:29 +0100 (Thu, 11 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0/source/pidl/pidl
Use argv[0] equivalent of perl.
------------------------------------------------------------------------
r20746 | jelmer | 2007-01-14 02:33:16 +0100 (Sun, 14 Jan 2007) | 3 lines
Changed paths:
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
D /branches/SAMBA_4_0/source/script/tests/test_smbclient.sh
M /branches/SAMBA_4_0/source/script/tests/tests_all.sh
A /branches/SAMBA_4_0/testprogs/blackbox
A /branches/SAMBA_4_0/testprogs/blackbox/test_smbclient.sh (from /branches/SAMBA_4_0/source/script/tests/test_smbclient.sh:20745)
Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
------------------------------------------------------------------------
r20830 | jelmer | 2007-01-16 15:44:23 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/librpc/idl/mgmt.idl
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
M /branches/SAMBA_4_0/source/rpc_server/config.mk
M /branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
A /branches/SAMBA_4_0/source/rpc_server/dcesrv_mgmt.c (from /branches/SAMBA_4_0/source/rpc_server/mgmt/dcesrv_mgmt.c:20829)
D /branches/SAMBA_4_0/source/rpc_server/mgmt
M /branches/SAMBA_4_0/source/script/tests/test_rpc.sh
M /branches/SAMBA_4_0/source/torture/rpc/mgmt.c
merge mgmt work
------------------------------------------------------------------------
r20834 | jelmer | 2007-01-16 16:51:37 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4.pm
No longer generate extra pointers for top-level [out] unique pointers.
------------------------------------------------------------------------
r20836 | jelmer | 2007-01-16 18:45:33 +0100 (Tue, 16 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Use real type name, to fix compilation with -WC++-compat
------------------------------------------------------------------------
r20850 | jelmer | 2007-01-17 15:49:36 +0100 (Wed, 17 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Server.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Template.pm
M /branches/SAMBA_4_0/source/rpc_server/dcesrv_mgmt.c
M /branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c
M /branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c
M /branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c
M /branches/SAMBA_4_0/source/rpc_server/lsa/dcesrv_lsa.c
M /branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
M /branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
M /branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
M /branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c
M /branches/SAMBA_4_0/source/rpc_server/srvsvc/dcesrv_srvsvc.c
M /branches/SAMBA_4_0/source/rpc_server/unixinfo/dcesrv_unixinfo.c
M /branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c
M /branches/SAMBA_4_0/source/rpc_server/wkssvc/dcesrv_wkssvc.c
Prefix all server calls with dcesrv_
------------------------------------------------------------------------
r20942 | jelmer | 2007-01-22 01:04:59 +0100 (Mon, 22 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/build/m4/check_cc.m4
M /branches/SAMBA_4_0/source/build/m4/check_perl.m4
M /branches/SAMBA_4_0/source/build/smb_build/makefile.pm
M /branches/SAMBA_4_0/source/main.mk
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/pidl
Simplify handling of systems that don't support negative enum values by using an ifdef rather than a pidl argument.
------------------------------------------------------------------------
r20967 | jelmer | 2007-01-23 11:08:08 +0100 (Tue, 23 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/tests/Util.pm
M /branches/SAMBA_4_0/source/pidl/tests/ndr_align.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_refptr.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl
M /branches/SAMBA_4_0/source/script/tests/tests_all.sh
M /branches/SAMBA_4_0/source/torture/config.mk
Allow pidl tests to work with gcov
------------------------------------------------------------------------
r21075 | jelmer | 2007-01-31 12:54:01 +0100 (Wed, 31 Jan 2007) | 1 line
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
Generate parameters in structs for the server side Samba 3 code. The current code in Samba 3 is already generated using this pidl patch.
------------------------------------------------------------------------
r21222 | jelmer | 2007-02-07 20:03:19 +0100 (Wed, 07 Feb 2007) | 8 lines
Changed paths:
M /branches/SAMBA_4_0
M /branches/SAMBA_4_0/source/pidl/TODO
M /branches/SAMBA_4_0/source/pidl/expr.yp
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Expr.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Util.pm
M /branches/SAMBA_4_0/source/pidl/pidl
D /branches/SAMBA_4_0/source/pidl/ref_notes.txt
A /branches/SAMBA_4_0/source/pidl/tests/ndr_deprecations.pl
M /branches/SAMBA_4_0/source/pidl/tests/ndr_represent.pl
M /branches/SAMBA_4_0/source/pidl/tests/util.pl
M /branches/SAMBA_4_0/source/torture/smbtorture.c
M /branches/SAMBA_4_0/source/torture/torture.c
Merge a couple of pidl fixes:
* Pidl will now warn when trying to use pointers as integers in expressions.
* "subcontext()" is now marked as deprecated. The alternatives,
transmit_as() / represent_as() should be available soon.
* More tests.
* Remove some unused code in smbtorture.
------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============
svn path=/trunk/; revision=20744
2007-02-08 13:54:27 +00:00
|
|
|
# print_uuid()
|
|
|
|
is(undef, print_uuid("invalid"));
|
|
|
|
is("{0x12345778,0x1234,0xabcd,{0xef,0x00},{0x01,0x23,0x45,0x67,0x89,0xac}}",
|
|
|
|
print_uuid("12345778-1234-abcd-ef00-0123456789ac"));
|
|
|
|
is("{0x12345778,0x1234,0xabcd,{0xef,0x00},{0x01,0x23,0x45,0x67,0x89,0xac}}",
|
|
|
|
print_uuid("\"12345778-1234-abcd-ef00-0123456789ac\""));
|
|
|
|
|
|
|
|
# property_matches()
|
|
|
|
# missing property
|
|
|
|
ok(not property_matches({PROPERTIES => {}}, "x", "data"));
|
|
|
|
# data not matching
|
|
|
|
ok(not property_matches({PROPERTIES => {x => "bar"}}, "x", "data"));
|
|
|
|
# data matching exactly
|
|
|
|
ok(property_matches({PROPERTIES => {x => "data"}}, "x", "data"));
|
|
|
|
# regex matching
|
|
|
|
ok(property_matches({PROPERTIES => {x => "data"}}, "x", "^([dat]+)\$"));
|
|
|
|
|
|
|
|
# ParseExpr()
|
|
|
|
is(undef, ParseExpr("", {}, undef));
|
|
|
|
is("a", ParseExpr("a", {"b" => "2"}, undef));
|
|
|
|
is("2", ParseExpr("a", {"a" => "2"}, undef));
|
|
|
|
is("2 * 2", ParseExpr("a*a", {"a" => "2"}, undef));
|
|
|
|
is("r->length + r->length",
|
|
|
|
ParseExpr("length+length", {"length" => "r->length"}, undef));
|
|
|
|
is("2 / 2 * (r->length)",
|
|
|
|
ParseExpr("constant/constant*(len)", {"constant" => "2",
|
|
|
|
"len" => "r->length"}, undef));
|
|
|
|
is("2 + 2 - r->length",
|
|
|
|
ParseExpr("constant+constant-len", {"constant" => "2",
|
|
|
|
"len" => "r->length"}, undef));
|
|
|
|
is("*r->length", ParseExpr("*len", { "len" => "r->length"}, undef));
|
|
|
|
is("**r->length", ParseExpr("**len", { "len" => "r->length"}, undef));
|
|
|
|
is("r->length & 2", ParseExpr("len&2", { "len" => "r->length"}, undef));
|
|
|
|
is("&r->length", ParseExpr("&len", { "len" => "r->length"}, undef));
|
|
|
|
is("calc()", ParseExpr("calc()", { "foo" => "2"}, undef));
|
|
|
|
is("calc(2 * 2)", ParseExpr("calc(foo * 2)", { "foo" => "2"}, undef));
|
|
|
|
is("strlen(\"data\")", ParseExpr("strlen(foo)", { "foo" => "\"data\""}, undef));
|
|
|
|
is("strlen(\"data\", 4)", ParseExpr("strlen(foo, 4)", { "foo" => "\"data\""}, undef));
|
|
|
|
is("foo / bar", ParseExpr("foo / bar", { "bla" => "\"data\""}, undef));
|
|
|
|
is("r->length % 2", ParseExpr("len%2", { "len" => "r->length"}, undef));
|
|
|
|
is("r->length == 2", ParseExpr("len==2", { "len" => "r->length"}, undef));
|
|
|
|
is("r->length != 2", ParseExpr("len!=2", { "len" => "r->length"}, undef));
|
|
|
|
is("pr->length", ParseExpr("pr->length", { "p" => "r"}, undef));
|
|
|
|
is("r->length", ParseExpr("p->length", { "p" => "r"}, undef));
|
|
|
|
is("_foo / bla32", ParseExpr("_foo / bla32", { "bla" => "\"data\""}, undef));
|
|
|
|
is("foo.bar.blah", ParseExpr("foo.blah", { "foo" => "foo.bar"}, undef));
|
|
|
|
is("\"bla\"", ParseExpr("\"bla\"", {}, undef));
|
|
|
|
is("1 << 2", ParseExpr("1 << 2", {}, undef));
|
|
|
|
is("1 >> 2", ParseExpr("1 >> 2", {}, undef));
|
|
|
|
is("0x200", ParseExpr("0x200", {}, undef));
|
|
|
|
is("2?3:0", ParseExpr("2?3:0", {}, undef));
|
|
|
|
is("~0", ParseExpr("~0", {}, undef));
|
|
|
|
is("b->a->a", ParseExpr("a->a->a", {"a" => "b"}, undef));
|
|
|
|
is("b.a.a", ParseExpr("a.a.a", {"a" => "b"}, undef));
|
|
|
|
|
|
|
|
test_errors("nofile:0: Parse error in `~' near `~'\n", sub {
|
|
|
|
is(undef, ParseExpr("~", {}, {FILE => "nofile", LINE => 0})); });
|
|
|
|
|
|
|
|
test_errors("nofile:0: Got pointer, expected integer\n", sub {
|
|
|
|
is(undef, ParseExprExt("foo", {}, {FILE => "nofile", LINE => 0},
|
|
|
|
undef, sub { my $x = shift;
|
|
|
|
error({FILE => "nofile", LINE => 0},
|
|
|
|
"Got pointer, expected integer");
|
|
|
|
return undef; }))});
|
|
|
|
|
|
|
|
is("b.a.a", ParseExpr("b.a.a", {"a" => "b"}, undef));
|
|
|
|
is("((rr_type) == NBT_QTYPE_NETBIOS)", ParseExpr("((rr_type)==NBT_QTYPE_NETBIOS)", {}, undef));
|
|
|
|
is("talloc_check_name", ParseExpr("talloc_check_name", {}, undef));
|
|
|
|
is("talloc_check_name()", ParseExpr("talloc_check_name()", {}, undef));
|
|
|
|
is("talloc_check_name(ndr)", ParseExpr("talloc_check_name(ndr)", {}, undef));
|
|
|
|
is("talloc_check_name(ndr, 1)", ParseExpr("talloc_check_name(ndr,1)", {}, undef));
|
|
|
|
is("talloc_check_name(ndr, \"struct ndr_push\")", ParseExpr("talloc_check_name(ndr,\"struct ndr_push\")", {}, undef));
|
|
|
|
is("((rr_type) == NBT_QTYPE_NETBIOS) && talloc_check_name(ndr, \"struct ndr_push\")", ParseExpr("((rr_type)==NBT_QTYPE_NETBIOS)&&talloc_check_name(ndr,\"struct ndr_push\")", {}, undef));
|
|
|
|
is("(rdata).data.length", ParseExpr("(rdata).data.length", {}, undef));
|
|
|
|
is("((rdata).data.length == 2)", ParseExpr("((rdata).data.length==2)", {}, undef));
|
|
|
|
is("((rdata).data.length == 2)?0:rr_type", ParseExpr("((rdata).data.length==2)?0:rr_type", {}, undef));
|
|
|
|
is("((((rr_type) == NBT_QTYPE_NETBIOS) && talloc_check_name(ndr, \"struct ndr_push\") && ((rdata).data.length == 2))?0:rr_type)", ParseExpr("((((rr_type)==NBT_QTYPE_NETBIOS)&&talloc_check_name(ndr,\"struct ndr_push\")&&((rdata).data.length==2))?0:rr_type)", {}, undef));
|