mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
wrap all PHPAPI prototypes into BEGIN_EXTERN_C/END_EXTERN_C blocks
(else they won't be usable from C++ extensions)
This commit is contained in:
parent
1727c6a2bb
commit
b8f7d9f9f5
8 changed files with 41 additions and 5 deletions
|
@ -38,13 +38,14 @@
|
|||
#define php_stream_temp_create_rel(mode, max_memory_usage) _php_stream_temp_create((mode), (max_memory_usage) STREAMS_REL_CC TSRMLS_CC)
|
||||
#define php_stream_temp_open(mode, max_memory_usage, buf, length) _php_stream_temp_open((mode), (max_memory_usage), (buf), (length) STREAMS_CC TSRMLS_CC)
|
||||
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC TSRMLS_DC);
|
||||
PHPAPI php_stream *_php_stream_memory_open(int mode, char *buf, size_t length STREAMS_DC TSRMLS_DC);
|
||||
PHPAPI char *_php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC TSRMLS_DC);
|
||||
|
||||
PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC TSRMLS_DC);
|
||||
PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, char *buf, size_t length STREAMS_DC TSRMLS_DC);
|
||||
END_EXTERN_C()
|
||||
|
||||
extern php_stream_ops php_stream_memory_ops;
|
||||
extern php_stream_ops php_stream_temp_ops;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue