php-developer-list | 2002112
Date: 11/21/02
- Next message: Marcus Börger: "[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y zend_language_scanner.l"
- Previous message: Brad Bulger: "[PHP-DEV] ZEND_PUTC question"
- In reply to: Brad Bulger: "[PHP-DEV] ZEND_PUTC question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Marcus Börger: "[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y zend_language_scanner.l"
- Previous message: Brad Bulger: "[PHP-DEV] ZEND_PUTC question"
- In reply to: Brad Bulger: "[PHP-DEV] ZEND_PUTC question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

