Extension to Samba IDL.
Matt Chapman
matty at cifs.org
Sat Jun 17 00:17:10 GMT 2000
On Sat, Jun 17, 2000 at 07:49:56AM +1000, Luke Kenneth Casson Leighton wrote:
> On Sat, 17 Jun 2000, Christopher R. Hertel wrote:
>
> > I want bitfields.
>
> i need bitfields. i need to do switch (bit 1) case 0: action case 1:
> actionother.
You can do this sort of thing without bitfields.
switch (var & 2)
{
case 0:
case 1:
}
or
switch ((var & 0xe) >> 1)
{
case 0:
case 2:
}
Which is what our compiler has to turn it into anyway.
Still, I guess bitfields are pretty common in the non-RPC stuff, so for
convenience I don't see any problem adding them.
Matt
--
Matthew "Austin" Chapman
SysAdmin, Developer, Samba Team Member
More information about the samba-technical
mailing list