mirror of
https://github.com/php/php-src.git
synced 2026-10-29 02:07:35 +08:00
Except for arginfo header as PHP_FUNCTION/PHP_METHOD are marked as U_CFUNC and the `ext/date/php_date.h` header doesn't use extern C. We now specificy the header symbols that _need_ to follow the C function ABI, meaning in some places we drop U_CFUNC declarations and in others we add it. Also use the `BEGIN_EXTERN_C()` portability macro when possible so that searching for this is easier.
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| Copyright © The PHP Group and Contributors. |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to the Modified BSD License that is |
|
|
| bundled with this package in the file LICENSE, and is available |
|
|
| through the World Wide Web at <https://www.php.net/license/>. |
|
|
| |
|
|
| SPDX-License-Identifier: BSD-3-Clause |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
#ifndef DATE_FORMAT_DATA_H
|
|
#define DATE_FORMAT_DATA_H
|
|
|
|
#include <php.h>
|
|
|
|
#include <unicode/udat.h>
|
|
|
|
#include "intl_error.h"
|
|
|
|
typedef struct {
|
|
// error handling
|
|
intl_error error;
|
|
|
|
// formatter handling
|
|
UDateFormat * udatf;
|
|
} dateformat_data;
|
|
|
|
void dateformat_data_init( dateformat_data* datef_data );
|
|
void dateformat_data_free( dateformat_data* datef_data );
|
|
|
|
#endif // DATE_FORMAT_DATA_H
|