From 7711aac1d8668b1c5ef49e61df88ffa9ce7f1f9f Mon Sep 17 00:00:00 2001 From: "Mark L. Woodward" Date: Thu, 22 Aug 2002 13:30:03 +0000 Subject: [PATCH] Removed C++ comments --- ext/msession/msession.c | 16 ++++++++-------- ext/msession/reqclient.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ext/msession/msession.c b/ext/msession/msession.c index a7084017ad..54ed9c33f5 100644 --- a/ext/msession/msession.c +++ b/ext/msession/msession.c @@ -231,11 +231,11 @@ int PHPDoRequest(void **pconn, REQB **ppreq) int result = DoRequest(conn, ppreq); - // Server closed the connection! + /* Server closed the connection! */ if((*ppreq)->req.stat == REQ_ERR && (result == REQE_BADCONN || result == REQE_NOSEND)) { - // In the case of a bad socket, this should be - // all that changs! + /* In the case of a bad socket, this should be */ + /* all that changs! */ (*ppreq)->req.stat = stat; (*ppreq)->req.param = param; ELOG("Connection was closed by server"); @@ -259,7 +259,7 @@ int PHPMsessionConnect(const char *szhost, int nport) if(!s_reqb) s_reqb = AllocateRequestBuffer(2048); - if(!s_reqb) // no buffer, it won't work! + if(!s_reqb) /* no buffer, it won't work! */ return 0; if(strcmp(s_szhost, szhost)) @@ -838,8 +838,8 @@ PHP_FUNCTION(msession_list) } else if(s_reqb->req.stat != REQ_OK) { - // May this should be an error? - if(s_reqb->req.param != REQE_NOSESSION) + /* May this should be an error? */ + if(s_reqb->req.param != REQE_NOSESSION) php_error(E_WARNING, s_szErrFmt, get_active_function_name(TSRMLS_C), ReqbErr(s_reqb)); RETURN_NULL(); } @@ -940,7 +940,7 @@ PHP_FUNCTION(msession_set_array) ELOG("have pairs"); - // Initializes pos + /* Initializes pos */ zend_hash_internal_pointer_reset_ex(htTuples, &pos); ELOG("reset pointer"); @@ -1284,7 +1284,7 @@ PS_OPEN_FUNC(msession) } ELOG( "ps_open_msession"); - PS_SET_MOD_DATA((void *)1); // session.c needs a non-zero here! + PS_SET_MOD_DATA((void *)1); /* session.c needs a non-zero here! */ return PHPMsessionConnect(path, port) ? SUCCESS : FAILURE; } diff --git a/ext/msession/reqclient.h b/ext/msession/reqclient.h index 3384b3d6c7..80faceabd8 100644 --- a/ext/msession/reqclient.h +++ b/ext/msession/reqclient.h @@ -147,7 +147,7 @@ char *ReqbErr(REQB *reqb); __FILE__,__LINE__, ReqErr(PREQ->param)); exit(-1); } #if defined (__cplusplus) - // C API but with class definitions + /* C API but with class definitions */ int ReadRequestTimeout(REQB **ppreq, MSock *sock, int timeout); int ReadRequest(REQB **preq, MSock *sock); int WriteRequest(REQB *preq, MSock *sock); -- 2.50.1