On 10/25/2010 03:40 AM, Paul Eggert wrote:
+/* Easier-to-use macros, which don't require a string buffer argument.
+   They can be used in code that assumes C99-style compound literals.
+   They return a pointer to storage with scope equal to that of the
+   enclosing block.  */
+#define int2str_call(t, func, n)                        \
+  func (n, ((char [INT_BUFSIZE_BOUND (t)]) {0,}))

Maybe this could use "func (n, alloca (INT_BUFSIZE_BOUND (t)))" if C99 is not in use? Alloca and VLA are not compatible, but if you are not using C99 then you are not using VLAs.

Paolo

Reply via email to