6262
6363/* Protected sending of data down the wire to a RedisSock->stream */
6464#define CLUSTER_SEND_PAYLOAD (sock , buf , len ) \
65- (sock && !cluster_sock_open(sock TSRMLS_CC ) && sock->stream && !redis_check_eof(sock, 1 TSRMLS_CC ) && \
65+ (sock && !cluster_sock_open(sock) && sock->stream && !redis_check_eof(sock, 1 ) && \
6666 php_stream_write(sock->stream, buf, len)==len)
6767
6868/* Macro to read our reply type character */
6969#define CLUSTER_VALIDATE_REPLY_TYPE (sock , type ) \
70- (redis_check_eof(sock, 1 TSRMLS_CC ) == 0 && \
70+ (redis_check_eof(sock, 1) == 0 && \
7171 (php_stream_getc(sock->stream) == type))
7272
7373/* Reset our last single line reply buffer and length */
@@ -141,7 +141,7 @@ typedef enum CLUSTER_REDIR_TYPE {
141141} CLUSTER_REDIR_TYPE ;
142142
143143/* MULTI BULK response callback typedef */
144- typedef int (* mbulk_cb )(RedisSock * ,zval * ,long long , void * TSRMLS_DC );
144+ typedef int (* mbulk_cb )(RedisSock * ,zval * ,long long , void * );
145145
146146/* A list of covered slot ranges */
147147typedef struct redisSlotRange {
@@ -340,9 +340,9 @@ typedef struct clusterReply {
340340} clusterReply ;
341341
342342/* Direct variant response handler */
343- clusterReply * cluster_read_resp (redisCluster * c , int status_strings TSRMLS_DC );
343+ clusterReply * cluster_read_resp (redisCluster * c , int status_strings );
344344clusterReply * cluster_read_sock_resp (RedisSock * redis_sock ,
345- REDIS_REPLY_TYPE type , char * line_reply , size_t reply_len TSRMLS_DC );
345+ REDIS_REPLY_TYPE type , char * line_reply , size_t reply_len );
346346void cluster_free_reply (clusterReply * reply , int free_data );
347347
348348/* Cluster distribution helpers for WATCH */
@@ -351,7 +351,7 @@ void cluster_dist_free(HashTable *ht);
351351int cluster_dist_add_key (redisCluster * c , HashTable * ht , char * key ,
352352 size_t key_len , clusterKeyVal * * kv );
353353void cluster_dist_add_val (redisCluster * c , clusterKeyVal * kv , zval * val
354- TSRMLS_DC );
354+ );
355355
356356/* Aggregation for multi commands like MGET, MSET, and MSETNX */
357357void cluster_multi_init (clusterMultiCmd * mc , char * kw , int kw_len );
@@ -367,25 +367,25 @@ unsigned short cluster_hash_key(const char *key, int len);
367367long long mstime (void );
368368
369369PHP_REDIS_API short cluster_send_command (redisCluster * c , short slot , const char * cmd ,
370- int cmd_len TSRMLS_DC );
370+ int cmd_len );
371371
372- PHP_REDIS_API void cluster_disconnect (redisCluster * c , int force TSRMLS_DC );
372+ PHP_REDIS_API void cluster_disconnect (redisCluster * c , int force );
373373
374- PHP_REDIS_API int cluster_send_exec (redisCluster * c , short slot TSRMLS_DC );
375- PHP_REDIS_API int cluster_send_discard (redisCluster * c , short slot TSRMLS_DC );
376- PHP_REDIS_API int cluster_abort_exec (redisCluster * c TSRMLS_DC );
374+ PHP_REDIS_API int cluster_send_exec (redisCluster * c , short slot );
375+ PHP_REDIS_API int cluster_send_discard (redisCluster * c , short slot );
376+ PHP_REDIS_API int cluster_abort_exec (redisCluster * c );
377377PHP_REDIS_API int cluster_reset_multi (redisCluster * c );
378378
379379PHP_REDIS_API short cluster_find_slot (redisCluster * c , const char * host ,
380380 unsigned short port );
381381PHP_REDIS_API int cluster_send_slot (redisCluster * c , short slot , char * cmd ,
382- int cmd_len , REDIS_REPLY_TYPE rtype TSRMLS_DC );
382+ int cmd_len , REDIS_REPLY_TYPE rtype );
383383
384384PHP_REDIS_API redisCluster * cluster_create (double timeout , double read_timeout ,
385385 int failover , int persistent );
386- PHP_REDIS_API void cluster_free (redisCluster * c , int free_ctx TSRMLS_DC );
386+ PHP_REDIS_API void cluster_free (redisCluster * c , int free_ctx );
387387PHP_REDIS_API int cluster_init_seeds (redisCluster * c , HashTable * ht_seeds );
388- PHP_REDIS_API int cluster_map_keyspace (redisCluster * c TSRMLS_DC );
388+ PHP_REDIS_API int cluster_map_keyspace (redisCluster * c );
389389PHP_REDIS_API void cluster_free_node (redisClusterNode * node );
390390
391391/* Functions for interacting with cached slots maps */
@@ -396,7 +396,7 @@ PHP_REDIS_API void cluster_init_cache(redisCluster *c, redisCachedCluster *rcc);
396396/* Functions to facilitate cluster slot caching */
397397
398398PHP_REDIS_API char * * cluster_sock_read_multibulk_reply (RedisSock * redis_sock ,
399- int * len TSRMLS_DC );
399+ int * len );
400400
401401/*
402402 * Redis Cluster response handlers. Our response handlers generally take the
@@ -492,15 +492,15 @@ PHP_REDIS_API void cluster_xinfo_resp(INTERNAL_FUNCTION_PARAMETERS,
492492
493493/* MULTI BULK processing callbacks */
494494int mbulk_resp_loop (RedisSock * redis_sock , zval * z_result ,
495- long long count , void * ctx TSRMLS_DC );
495+ long long count , void * ctx );
496496int mbulk_resp_loop_raw (RedisSock * redis_sock , zval * z_result ,
497- long long count , void * ctx TSRMLS_DC );
497+ long long count , void * ctx );
498498int mbulk_resp_loop_zipstr (RedisSock * redis_sock , zval * z_result ,
499- long long count , void * ctx TSRMLS_DC );
499+ long long count , void * ctx );
500500int mbulk_resp_loop_zipdbl (RedisSock * redis_sock , zval * z_result ,
501- long long count , void * ctx TSRMLS_DC );
501+ long long count , void * ctx );
502502int mbulk_resp_loop_assoc (RedisSock * redis_sock , zval * z_result ,
503- long long count , void * ctx TSRMLS_DC );
503+ long long count , void * ctx );
504504
505505#endif
506506
0 commit comments