Extension to Samba IDL.
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:
You can do this sort of thing without bitfields.
switch (var & 2)
switch ((var & 0xe) >> 1)
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.
Matthew "Austin" Chapman
SysAdmin, Developer, Samba Team Member
More information about the samba-technical