1. Ruslan Osmanov
  2. pecl-event

Source

pecl-event / src / structs.h

Diff from to

File src/structs.h

  • Ignore whitespace
 /* Thread context. With it we are getting rid of need
  * to call the heavy TSRMLS_FETCH() */
 #ifdef ZTS
-# define PHP_EVENT_COMMON_THREAD_CTX void ***thread_ctx
+# define PHP_EVENT_COMMON_THREAD_CTX void ***thread_ctx;
 #else
 # define PHP_EVENT_COMMON_THREAD_CTX
 #endif
 	zend_fcall_info       *fci;
 	zend_fcall_info_cache *fcc;
 
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 } php_event_t;
 
 /* Represents EventConfig object */
 	zend_fcall_info       *fci_event;
 	zend_fcall_info_cache *fcc_event;
 
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 } php_event_bevent_t;
 
 /* Represents EventBuffer object */
 	zend_fcall_info       *fci_err;
 	zend_fcall_info_cache *fcc_err;
 
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 } php_event_listener_t;
 
 typedef struct _php_event_http_cb_t php_event_http_cb_t;
 	zend_fcall_info       *fci;
 	zend_fcall_info_cache *fcc;
 
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 };
 
 /* Represents EventHttp object */
 	/* Linked list of attached callbacks */
 	php_event_http_cb_t   *cb_head;
 
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 } php_event_http_t;
 
 /* Represents EventHttpConnection object */
 	zend_fcall_info       *fci_closecb;
 	zend_fcall_info_cache *fcc_closecb;
 	
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 } php_event_http_conn_t;
 
 typedef struct {
 	zend_fcall_info       *fci;
 	zend_fcall_info_cache *fcc;
 
-	PHP_EVENT_COMMON_THREAD_CTX;
+	PHP_EVENT_COMMON_THREAD_CTX
 } php_event_http_req_t;
 
 #endif/* HAVE_EVENT_EXTRA_LIB }}} */