[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] RE : [lwip-commits] lwip/src api/api_lib.capi/netdb.c a
From: |
Pettinato, Jim |
Subject: |
RE: [lwip-devel] RE : [lwip-commits] lwip/src api/api_lib.capi/netdb.c api/sockets.... |
Date: |
Thu, 19 Feb 2009 09:41:52 -0500 |
The # flag (alternate form) should be very well known, it is documented in the
Bible (K&R 2nd ed, appendix B section B.1.2, formatted output). I would hope
all modern compilers support it, I know all the ones I've used do.
- Jim
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Simon Goldschmidt
Sent: Thursday, February 19, 2009 8:48 AM
To: lwip-devel
Subject: Re: [lwip-devel] RE : [lwip-commits] lwip/src api/api_lib.capi/netdb.c
api/sockets....
> You should add a comment in the CHANGELOG, else, it could be difficult
> to remember that ports have to be upgraded.
Yes, I forgot that.
> In the same spirit, about another recent change, shouldn't we add
> another format string for pointers (actually %p is used in igmp.c by example)
> ?
I don't think so: pointers (%p, used all over the stack), integers (%d) and
some others are well define at
http://opengroup.org/onlinepubs/007908799/xsh/fprintf.html
We only need defines for types that are not defined there and especially for
those which can be mapped to int/long/long-long depending on the platform.
Aside from that, I don't know how well known the '#' flag is. Does anybody know
if that is portable enough to be used?
Simon
--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95
Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
_______________________________________________
lwip-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-devel