-
Notifications
You must be signed in to change notification settings - Fork 1
/
constant.c
100 lines (82 loc) · 2.93 KB
/
constant.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| License: http://www.buession.com.cn/license |
| Author: Yong.Teng <[email protected]> |
+----------------------------------------------------------------------+
*/
/* $Id: constant.c 310447 2013-11-04 12:58:37 Yong.Teng $ */
/* include php file */
#include "Zend/zend.h"
#include "Zend/zend_API.h"
#include "main/php.h"
#include "main/php_main.h"
/* include buession file */
#include "buession.h"
#include "constant.h"
#include "dict/creditcard/creditcard.h"
zend_class_entry *constant_ce;
/* {{{ arginfo */
/* }}} */
/* {{{ private void Constant::__construct() */
static BUESSION_METHOD(constant, __construct){
}
/* }}} */
/* {{{ private void Constant::__destruct() */
static BUESSION_METHOD(constant, __destruct){
}
/* }}} */
static zend_function_entry constant_methods[] = {
BUESSION_CONSTANT_ME(__construct, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_CTOR)
BUESSION_CONSTANT_ME(__destruct, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_DTOR)
ZEND_FE_END
};
/** {{{ BUESSION_STARTUP_FUNCTION */
BUESSION_STARTUP_FUNCTION(constant){
zend_class_entry ce;
BUESSION_INIT_CLASS_ENTRY(ce, "Constant", constant_methods);
constant_ce = zend_register_internal_class(&ce TSRMLS_CC);
constant_register_ip_type_constant(4);
constant_register_ip_type_constant(6);
constant_register_ip_flags_constant(PRIV_RANGE);
constant_register_ip_flags_constant(RES_RANGE);
constant_register_isbn_type_constant(10);
constant_register_isbn_type_constant(13);
constant_register_creditcard_types_constant();
return SUCCESS;
}
/* }}} */
/** {{{ BUESSION_RINIT_FUNCTION */
BUESSION_RINIT_FUNCTION(constant){
return SUCCESS;
}
/* }}} */
/** {{{ BUESSION_RSHUTDOWN_FUNCTION */
BUESSION_RSHUTDOWN_FUNCTION(constant){
return SUCCESS;
}
/* }}} */
/** {{{ BUESSION_SHUTDOWN_FUNCTION */
BUESSION_SHUTDOWN_FUNCTION(constant){
return SUCCESS;
}
/* }}} */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/