Lines Matching refs:THIS
115 #define THIS _request macro
120 #define MY_FD (THIS->my_fd)
125 #define MY_FD_OBJ ((struct object *)(THIS->my_fd_obj))
130 #define REQUEST_DATA ((struct mapping *)(THIS->request_data))
260 THIS->written += sent_bytes; in php_caudium_sapi_ub_write()
270 THIS->written += sent_bytes; in php_caudium_sapi_ub_write()
574 THIS->filename = ureq->filename; in php_caudium_module_main()
575 THIS->done_cb = ureq->done_cb; in php_caudium_module_main()
576 THIS->my_fd_obj = ureq->my_fd_obj; in php_caudium_module_main()
577 THIS->my_fd = ureq->my_fd; in php_caudium_module_main()
578 THIS->request_data = ureq->request_data; in php_caudium_module_main()
643 file_handle.filename = THIS->filename->str; in php_caudium_module_main()
647 THIS->written = 0; in php_caudium_module_main()
652 apply_svalue(&THIS->done_cb, 0); in php_caudium_module_main()
660 push_int(THIS->written); in php_caudium_module_main()
661 apply_svalue(&THIS->done_cb, 1); in php_caudium_module_main()
705 THIS = malloc(sizeof(php_caudium_request)); in f_php_caudium_request_handler()
706 if(THIS == NULL) in f_php_caudium_request_handler()
717 THIS->request_data = request_data; in f_php_caudium_request_handler()
718 THIS->my_fd_obj = my_fd_obj; in f_php_caudium_request_handler()
719 THIS->filename = script; in f_php_caudium_request_handler()
720 assign_svalue_no_free(&THIS->done_cb, done_callback); in f_php_caudium_request_handler()
723 raw_fd = low_mapping_string_lookup(THIS->request_data, ind); in f_php_caudium_request_handler()
728 THIS->my_fd = 0; /* Don't send directly to this FD... */ in f_php_caudium_request_handler()
730 THIS->my_fd = fd; in f_php_caudium_request_handler()
732 THIS->my_fd = 0; in f_php_caudium_request_handler()
734 php_caudium_module_main(THIS); in f_php_caudium_request_handler()
736 th_farm((void (*)(void *))php_caudium_module_main, THIS); in f_php_caudium_request_handler()
744 if(THIS->request_data) free_mapping(THIS->request_data); in free_struct()
745 if(THIS->my_fd_obj) free_object(THIS->my_fd_obj); in free_struct()
746 free_svalue(&THIS->done_cb); in free_struct()
747 if(THIS->filename) free_string(THIS->filename); in free_struct()
748 MEMSET(THIS, 0, sizeof(php_caudium_request)); in free_struct()