php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
calendar_class.h File Reference
#include <math.h>
#include <php.h>
#include "intl_error.h"
#include "intl_data.h"

Go to the source code of this file.

Data Structures

struct  Calendar_object
 

Macros

#define Z_INTL_CALENDAR_P(zv)
 
#define CALENDAR_ERROR(co)
 
#define CALENDAR_ERROR_P(co)
 
#define CALENDAR_ERROR_CODE(co)
 
#define CALENDAR_ERROR_CODE_P(co)
 
#define CALENDAR_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(Calendar, co)
 
#define CALENDAR_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_CALENDAR, co)
 
#define CALENDAR_METHOD_FETCH_OBJECT
 

Typedefs

typedef void Calendar
 

Functions

void calendar_object_create (zval *object, Calendar *calendar)
 
Calendarcalendar_fetch_native_calendar (zend_object *object)
 
void calendar_object_construct (zval *object, Calendar *calendar)
 
void calendar_register_IntlCalendar_class (void)
 

Variables

zend_class_entryCalendar_ce_ptr
 
zend_class_entryGregorianCalendar_ce_ptr
 
zend_object_handlers Calendar_handlers
 

Macro Definition Documentation

◆ CALENDAR_ERROR

#define CALENDAR_ERROR ( co)
Value:
(co)->err
char * err
Definition ffi.c:3029

Definition at line 46 of file calendar_class.h.

◆ CALENDAR_ERROR_CODE

#define CALENDAR_ERROR_CODE ( co)
Value:
#define CALENDAR_ERROR(co)
#define INTL_ERROR_CODE(e)
Definition intl_error.h:24

Definition at line 49 of file calendar_class.h.

◆ CALENDAR_ERROR_CODE_P

#define CALENDAR_ERROR_CODE_P ( co)
Value:

Definition at line 50 of file calendar_class.h.

◆ CALENDAR_ERROR_P

#define CALENDAR_ERROR_P ( co)
Value:

Definition at line 47 of file calendar_class.h.

◆ CALENDAR_METHOD_FETCH_OBJECT

#define CALENDAR_METHOD_FETCH_OBJECT
Value:
if (co->ucal == NULL) \
{ \
zend_throw_error(NULL, "Found unconstructed IntlCalendar"); \
RETURN_THROWS(); \
}
#define CALENDAR_METHOD_FETCH_OBJECT_NO_CHECK
#define NULL
Definition gdcache.h:45

Definition at line 54 of file calendar_class.h.

◆ CALENDAR_METHOD_FETCH_OBJECT_NO_CHECK

#define CALENDAR_METHOD_FETCH_OBJECT_NO_CHECK   INTL_METHOD_FETCH_OBJECT(INTL_CALENDAR, co)

Definition at line 53 of file calendar_class.h.

◆ CALENDAR_METHOD_INIT_VARS

#define CALENDAR_METHOD_INIT_VARS   INTL_METHOD_INIT_VARS(Calendar, co)

Definition at line 52 of file calendar_class.h.

◆ Z_INTL_CALENDAR_P

#define Z_INTL_CALENDAR_P ( zv)
Value:
php_intl_calendar_fetch_object(Z_OBJ_P(zv))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 44 of file calendar_class.h.

Typedef Documentation

◆ Calendar

typedef void Calendar

Definition at line 26 of file calendar_class.h.

Function Documentation

◆ calendar_fetch_native_calendar()

Calendar * calendar_fetch_native_calendar ( zend_object * object)

◆ calendar_object_construct()

void calendar_object_construct ( zval * object,
Calendar * calendar )

◆ calendar_object_create()

void calendar_object_create ( zval * object,
Calendar * calendar )

◆ calendar_register_IntlCalendar_class()

void calendar_register_IntlCalendar_class ( void )

Variable Documentation

◆ Calendar_ce_ptr

zend_class_entry* Calendar_ce_ptr
extern

◆ Calendar_handlers

zend_object_handlers Calendar_handlers
extern

◆ GregorianCalendar_ce_ptr

zend_class_entry * GregorianCalendar_ce_ptr

Definition at line 70 of file calendar_class.h.