cvs: php4 /ext/msession msession.c reqclient.h

From: Date: Thu, 22 Aug 2002 13:29:51 +0000
Subject: cvs: php4 /ext/msession msession.c reqclient.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13565@lists.php.net to get a copy of this message
mlwmohawk Thu Aug 22 09:29:51 2002 EDT Modified files: /php4/ext/msession msession.c reqclient.h Log: Removed C++ comments Index: php4/ext/msession/msession.c diff -u php4/ext/msession/msession.c:1.36 php4/ext/msession/msession.c:1.37 --- php4/ext/msession/msession.c:1.36 Fri Jun 28 10:51:08 2002 +++ php4/ext/msession/msession.c Thu Aug 22 09:29:50 2002 @@ -231,11 +231,11 @@ 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 @@ 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 @@ } 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 @@ ELOG("have pairs"); - // Initializes pos + /* Initializes pos */ zend_hash_internal_pointer_reset_ex(htTuples, &pos); ELOG("reset pointer"); @@ -1284,7 +1284,7 @@ } 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; } Index: php4/ext/msession/reqclient.h diff -u php4/ext/msession/reqclient.h:1.10 php4/ext/msession/reqclient.h:1.11 --- php4/ext/msession/reqclient.h:1.10 Tue Jun 4 09:59:43 2002 +++ php4/ext/msession/reqclient.h Thu Aug 22 09:29:50 2002 @@ -147,7 +147,7 @@ __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);

« previous php.cvs (#13565) next »