Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Apr 11, 2020
1 parent 548e82b commit 99983f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion yaf_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ static zend_object *yaf_controller_new(zend_class_entry *ce) /* {{{ */ {
ctl->flags = (zend_uchar)YAF_CTL_AUTORENDER_DEPEND;
}
ctl->std.handlers = &yaf_controller_obj_handlers;
ctl->properties = NULL;

return &ctl->std;
}
Expand Down
5 changes: 3 additions & 2 deletions yaf_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@ typedef struct {
zend_uchar flags;
zend_string *module;
zend_string *name;
zend_string *script_path;
zend_array *invoke_args;
yaf_request_t *request;
yaf_response_t *response;
yaf_view_t *view;
zend_string *script_path;
struct {
yaf_controller_t ctl;
zend_string *name;
} ctl;
zend_array *invoke_args;
zend_array *properties;
zend_object std;
} yaf_controller_object;

#define Z_YAFCTLOBJ(zv) (php_yaf_controller_fetch_object(Z_OBJ(zv)))
#define Z_YAFCTLOBJ_P(zv) Z_YAFCTLOBJ(*zv)

static zend_always_inline yaf_controller_object *php_yaf_controller_fetch_object(zend_object *obj) {
return (yaf_controller_object *)((char*)(obj) - XtOffsetOf(yaf_controller_object, std));
}
Expand Down

0 comments on commit 99983f8

Please sign in to comment.