CVS update: php31/sapi
| From: | shane | Date: | Fri, 21 Aug 1998 16:52:24 +0000 |
| Subject: | CVS update: php31/sapi | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-428@lists.php.net to get a copy of this message | ||
Date: Friday August 21, 1998 @ 12:52
Author: shane
Update of /repository/php31/sapi
In directory asf:/tmp/cvs-serv28145/sapi
Modified Files:
sapi.h
Log Message:
optimize output functions to all go through php3_write
php3_sapi_writeclient was not needed here. Also removed php3_puts and putc
as the defines for PUTS and PUTC in sapi.h cover that.
Index: php31/sapi/sapi.h
diff -c php31/sapi/sapi.h:2.9 php31/sapi/sapi.h:2.10
*** php31/sapi/sapi.h:2.9 Fri Aug 21 12:41:07 1998
--- php31/sapi/sapi.h Fri Aug 21 12:52:23 1998
***************
*** 112,125 ****
extern struct sapi_request_info *sapi_rqst;
#endif
- #if defined(COMPILE_DL)
- #define PUTS(s) php3_putc(s);
- #define PUTC(c) php3_puts(c);
#define PHPWRITE(a,n) php3_write((a),(n))
- #else
- #define PHPWRITE(a,n) php3_sapi_writeclient((a),(n))
#define PUTS(s) { char *str=(s); PHPWRITE(s,strlen(s)); }
#define PUTC(c) { char ch=(c); PHPWRITE(&ch, 1); }
#define BLOCK_INTERRUPTIONS
if(GLOBAL(sapi_rqst))GLOBAL(sapi_rqst)->blockalarms(SAPI_GLOBAL_PASS_V)
#define UNBLOCK_INTERRUPTIONS
if(GLOBAL(sapi_rqst))GLOBAL(sapi_rqst)->unblockalarms(SAPI_GLOBAL_PASS_V)
#endif
--- 112,122 ----
extern struct sapi_request_info *sapi_rqst;
#endif
#define PHPWRITE(a,n) php3_write((a),(n))
#define PUTS(s) { char *str=(s); PHPWRITE(s,strlen(s)); }
#define PUTC(c) { char ch=(c); PHPWRITE(&ch, 1); }
+
+ #ifndef COMPILE_DL
#define BLOCK_INTERRUPTIONS
if(GLOBAL(sapi_rqst))GLOBAL(sapi_rqst)->blockalarms(SAPI_GLOBAL_PASS_V)
#define UNBLOCK_INTERRUPTIONS
if(GLOBAL(sapi_rqst))GLOBAL(sapi_rqst)->unblockalarms(SAPI_GLOBAL_PASS_V)
#endif
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net