Yes, so that it'll be compatible with the way libc's putc() works (the value is the written char).

Andi

At 01:20 PM 11/21/2002 -0800, Brad Bulger wrote:
I was looking at compile warnings for 4.3, and came across this
in Zend/zend.h

/* output support */
#define ZEND_WRITE(str, str_len)        zend_write((str), (str_len))
#define ZEND_PUTS(str)                  zend_write((str), strlen((str)))
#define ZEND_PUTC(c)                    zend_write(&(c), 1), (c)

is there a reason why that last line isn't just

#define ZEND_PUTC(c)                    zend_write(&(c), 1)

??


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to