Discussion:
[sword-devel] Fixed-width integer types in include/sysdata.h
Jaak Ristioja
2014-05-19 19:15:15 UTC
Permalink
Hi!

Why doesn't this file use the u?int(8|16|32|64)_t types from standard
C <stdint.h> (or <cstdint> #if __cplusplus >= 201103L)?

Blessings,
Jaak
Greg Hellings
2014-05-19 19:19:52 UTC
Permalink
Troy can correct me if I'm wrong, but my understanding is that there is
intention this could run in places where such is unavailable. Or at least
that it used to? I've made the same inquiry before and I believe that was
the response.

--Greg
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Why doesn't this file use the u?int(8|16|32|64)_t types from standard
C <stdint.h> (or <cstdint> #if __cplusplus >= 201103L)?
Blessings,
Jaak
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQgcBAEBAgAGBQJTelhAAAoJELozJlbjIn79Ha9AAIN03wI7bSZT+Tc7zGUmVe1n
RzonPc4m7OYxHu4aE/tTmNtl57+KBrBLZAyVMotJU9I6zCXwXR3MGuFDGlBV3NnO
cB9QC3Vj79l/CCUO+p3EsYd7rxARCU/ZefjQzegrR4DYmU7tna/3tr25szavV2A2
csW3l5ioSiCWqXL/oIJMQyVUhUTWuzbwIx6eh1awwby7g6vGjOq7NLjm4Ym5piTd
cTL0htLZXC1DQATRZTjasPsOe8YfwZ2ORw2EEj3dQssVzyeyZ68m7qcel84bI82T
MOsXum2oEcdRKDfgjwROGZl+zUUMAxshkLAnHiYqKiJAVR+EL+EGaehvdBW2YyY2
y7ZDuMQjxT4gGJ1OVU6Pb3yPpCV19cDbD4Hbs7WniwecVPocve9iiSWw3bTN59Na
umU9AezTAnbF4hUrQVhITkUbf2mNOIHFTRycOqgWjZIkRy6U92O2UlSobS9NPFZs
QxI3hq7DMExVaDhQ2CUJC3XGALpIFCZCjDaDDySKmuZbR3J50tObyxOugRlxz7ql
A9lqRXdMa9rcjtJZdbbr8OEnUxSejM7qurtuH0hp/hGzXBFxBAspQdxTOgN5wr/a
afj/4eM2R/9T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
-----END PGP SIGNATURE-----
_______________________________________________
sword-devel mailing list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140519/a303a015/attachment.html>
Jaak Ristioja
2014-05-19 20:14:47 UTC
Permalink
Is it still reasonable to assume there are places where such C99
support is not available? If so, the file is missing some static
checks to ensure that short is 16 bits etc.

Jaak
Post by Greg Hellings
Troy can correct me if I'm wrong, but my understanding is that
there is intention this could run in places where such is
unavailable. Or at least that it used to? I've made the same
inquiry before and I believe that was the response.
--Greg
On Mon, May 19, 2014 at 2:15 PM, Jaak Ristioja <jaak at ristioja.ee
Hi!
Why doesn't this file use the u?int(8|16|32|64)_t types from
standard C <stdint.h> (or <cstdint> #if __cplusplus >= 201103L)?
Blessings, Jaak
_______________________________________________ sword-devel mailing
list: sword-devel at crosswire.org <mailto:sword-devel at crosswire.org>
http://www.crosswire.org/mailman/listinfo/sword-devel Instructions
to unsubscribe/change your settings at above page
_______________________________________________ sword-devel mailing
list: sword-devel at crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel Instructions
to unsubscribe/change your settings at above page
Loading...