IDL [string] attribute (was svn commit: samba r11105 ...)

Michael B Allen mba2000 at ioplex.com
Tue Oct 18 17:46:49 GMT 2005


On Tue, 18 Oct 2005 18:41:41 +0200
Jelmer Vernooij <jelmer at samba.org> wrote:

> > But you still have to edit IDL imported from a Windows project.
> > Even if it is just two lines, it's just not necessary. Infer the
> > default encoding from the IDL type.
> 
> Only if you want your IDL compiler to do conversion for you, which
> doesn't always have to be the case.

Well Windows IDL users definitely will.

> > I can't see these defines really working anyway. What about 'const
> > wchar_t *' or 'struct { unsigned char flags; ...'? Even if they
> > were typedefs I think you'll have problems.
> 
> Right, that's true. Perhaps we could add a --automatic-conversion flag
> to our IDL compilers instead that provides the behaviour you describe?

The name is a little vague but yeah, that sounds good.

We'll look a lot cooler if our compilers behave the same when asked to
do things not observed in MIDL but that are required for sane operation
(e.g. automatic wchar_t conversion).

Mike


More information about the samba-technical mailing list