Re: libserveez.h #includes
Thien-Thi Nguyen <[email protected]> Sun, 11 Nov 2012 22:34:09 +0100
| Newsgroups | gmane.network.serveez.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============7912652744676247438== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Julian Graham <[email protected]> () Sun, 11 Nov 2012 13:52:18 -0500 In the process of porting my code to the "next" branch of Serveez, I noticed that libserveez.h references a bunch of libc types without #including the requisite headers. Obviously I'm still able to use libserveez.h if I do the #includes myself, but it seems to me that libserveez.h should be doing them. Specifically, the following types / typedefs are used without their #includes: FILE (from stdio.h) uint16_t (from stdint.h) in_port_t, mode_t, gid_t, addr (from netinet/in.h, among others) Have I missed something? Let me know. Stuff like #include <stdio.h> were never in libserveez.h, so for now i'm inclined to leave them out, due to inertia and lack of gumption mostly. Some things are straightforward (AFAICT), like #include <stdio.h>. Others are more complicated; e.g., see src/networking-headers.h -- i see all those =E2=80=98#ifdef=E2=80=99 .. =E2=80=98#endif=E2=80=99 as sort of a= client-code rite of passage. Perhaps it would be reasonably helpful to list in the manual all the system headers used (or rather, mentioned) in the code base and say that configuration (to determine the preprocessor conditionals) is the client code's ball of wax, standard disclaimers apply, do not taunt happy fun libserveez.h, etc... =2D-=20 Thien-Thi Nguyen ..................................... GPG key: 4C807502 . NB: ttn at glug dot org is not me . . (and has not been since 2007 or so) . . ACCEPT NO SUBSTITUTES . ........... please send technical questions to mailing lists ........... --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlCgGdQACgkQZwMiJEyAdQI9qgCgovBuAOOzsVzetBGJilhNQVQf MGMAoJfoeFOrXm7EHuVsJKxjtUqijHGc =/h0q -----END PGP SIGNATURE----- --=-=-=-- --===============7912652744676247438== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dev-serveez mailing list [email protected] https://lists.gnu.org/mailman/listinfo/dev-serveez --===============7912652744676247438==--