Data types in samba4

Christopher R. Hertel crh at ubiqx.mn.org
Fri Jan 16 03:15:08 GMT 2004


tridge at samba.org wrote:
:
> Alternatively we could standardise on *_t naming, as that allows
> syntax highlighting editors (such as emacs) to do a better job. So we
> would have uint32_t, uint64_t etc.

The <stdint.h> file on my Linux box uses the _t syntax.  It appears to be,
er, standard.

I am curious to know how we make use of these types in a cross-platform way.
I assume it's some autoconf tests or somesuch.  I'm just interested in the
details.  I figure we have to test for the existence of <stdint.h> and/or
test for [u]int[8
|16|32|64]_t and define them ourselves if they don't exist.

Am I close?

Chris -)-----

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the samba-technical mailing list