Skip to content

Commit

Permalink
Namespace ALL THE MODULES!
Browse files Browse the repository at this point in the history
(…so they don't clash with ext/standard's when compiling statically…)
  • Loading branch information
hikari-no-yume committed May 5, 2016
1 parent fab902e commit 72c011f
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions php_inspector.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
*/
PHP_MINIT_FUNCTION(inspector)
{
PHP_MINIT(scope)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(file)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(global)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(method)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(closure)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(opline)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(operand)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(entry)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_scope)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_file)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_global)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_method)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_closure)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_opline)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_operand)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(inspector_entry)(INIT_FUNC_ARGS_PASSTHRU);

return SUCCESS;
}
Expand Down
2 changes: 1 addition & 1 deletion src/closure.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static zend_function_entry php_inspector_closure_methods[] = {
PHP_FE_END
};

PHP_MINIT_FUNCTION(closure) {
PHP_MINIT_FUNCTION(inspector_closure) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Closure", php_inspector_closure_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/closure.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

extern zend_class_entry *php_inspector_closure_ce;

PHP_MINIT_FUNCTION(closure);
PHP_MINIT_FUNCTION(inspector_closure);
#endif
2 changes: 1 addition & 1 deletion src/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static zend_function_entry php_inspector_entry_methods[] = {
}; /* }}} */

/* {{{ */
PHP_MINIT_FUNCTION(entry) {
PHP_MINIT_FUNCTION(inspector_entry) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Entry", php_inspector_entry_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ extern zend_class_entry *php_inspector_entry_ce;
#define php_inspector_entry_fetch(z) php_inspector_entry_fetch_from(Z_OBJ_P(z))
#define php_inspector_entry_this() php_inspector_entry_fetch(getThis())

PHP_MINIT_FUNCTION(entry);
PHP_MINIT_FUNCTION(inspector_entry);
#endif
2 changes: 1 addition & 1 deletion src/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static zend_function_entry php_inspector_file_methods[] = {
PHP_FE_END
};

PHP_MINIT_FUNCTION(file) {
PHP_MINIT_FUNCTION(inspector_file) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "File", php_inspector_file_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

extern zend_class_entry *php_inspector_file_ce;

PHP_MINIT_FUNCTION(file);
PHP_MINIT_FUNCTION(inspector_file);
#endif
2 changes: 1 addition & 1 deletion src/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static zend_function_entry php_inspector_global_methods[] = {
PHP_FE_END
};

PHP_MINIT_FUNCTION(global) {
PHP_MINIT_FUNCTION(inspector_global) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Global", php_inspector_global_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

extern zend_class_entry *php_inspector_global_ce;

PHP_MINIT_FUNCTION(global);
PHP_MINIT_FUNCTION(inspector_global);
#endif
2 changes: 1 addition & 1 deletion src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static zend_function_entry php_inspector_method_methods[] = {
PHP_FE_END
};

PHP_MINIT_FUNCTION(method) {
PHP_MINIT_FUNCTION(inspector_method) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Method", php_inspector_method_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/method.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

extern zend_class_entry *php_inspector_method_ce;

PHP_MINIT_FUNCTION(method);
PHP_MINIT_FUNCTION(inspector_method);
#endif
2 changes: 1 addition & 1 deletion src/operand.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static zend_function_entry php_inspector_operand_methods[] = {
}; /* }}} */

/* {{{ */
PHP_MINIT_FUNCTION(operand) {
PHP_MINIT_FUNCTION(inspector_operand) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Operand", php_inspector_operand_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/operand.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ extern zend_class_entry *php_inspector_operand_ce;

void php_inspector_operand_construct(zval *object, zval *opline, uint32_t which, zend_uchar type, znode_op *operand);

PHP_MINIT_FUNCTION(operand);
PHP_MINIT_FUNCTION(inspector_operand);
#endif
2 changes: 1 addition & 1 deletion src/opline.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static zend_function_entry php_inspector_opline_methods[] = {
}; /* }}} */

/* {{{ */
PHP_MINIT_FUNCTION(opline) {
PHP_MINIT_FUNCTION(inspector_opline) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Opline", php_inspector_opline_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/opline.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ extern zend_class_entry *php_inspector_opline_ce;

void php_inspector_opline_construct(zval *object, zval *scope, zend_op *opline);

PHP_MINIT_FUNCTION(opline);
PHP_MINIT_FUNCTION(inspector_opline);
#endif
2 changes: 1 addition & 1 deletion src/scope.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static zend_function_entry php_inspector_scope_methods[] = {
}; /* }}} */

/* {{{ */
PHP_MINIT_FUNCTION(scope) {
PHP_MINIT_FUNCTION(inspector_scope) {
zend_class_entry ce;

INIT_NS_CLASS_ENTRY(ce, "Inspector", "Scope", php_inspector_scope_methods);
Expand Down
2 changes: 1 addition & 1 deletion src/scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ extern zend_class_entry *php_inspector_scope_ce;
void php_inspector_scope_construct(zval *object, zend_function *function);
zend_function* php_inspector_scope_find(zend_class_entry *scope, zend_string *name);

PHP_MINIT_FUNCTION(scope);
PHP_MINIT_FUNCTION(inspector_scope);
#endif

0 comments on commit 72c011f

Please sign in to comment.