Searched refs:generator (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/ext/interbase/
H A Dinterbase.c108 ZEND_ARG_INFO(0, generator)
1417 /* {{{ proto int ibase_gen_id(string generator [, int increment [, resource link_identifier ]])
1418 Increments the named generator and returns its new value */
1422 char query[128], *generator; local
1432 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr", &generator, &gen_len,
1438 php_error_docref(NULL, E_WARNING, "Invalid generator name");
1444 snprintf(query, sizeof(query), "SELECT GEN_ID(%s,%ld) FROM rdb$database", generator, inc);
1463 /* don't return the generator value as a string unless it doesn't fit in a long */
/PHP_TRUNK/Zend/
H A Dzend_generators.h36 * That way, when we advance any generator, we just need to look up a leaf node (which all have a reference to a root node). Then we can see at the root node whether current Generator is finished. If it isn't, all is fine and we can just continue. If the Generator finished, there will be two cases. Either it is a simple node with just one child, then go down to child node. Or it has multiple children and we now will remove the current leaf node from the list of nodes (unnecessary, is microoptimization) and go down to the child node whose reference was paired with current leaf node. Child node is then removed its parent reference and becomes new top node. Or the current node references the Generator we're currently executing, then we can continue from the YIELD_FROM opcode. When a node referenced as root node in a leaf node has a parent, then we go the way up until we find a root node without parent.
65 /* The separate stack used by generator */
79 /* Values specified by "yield from" to yield from this generator.
80 * This is only used for arrays or non-generator Traversables.
103 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution);
104 ZEND_API void zend_generator_resume(zend_generator *generator);
107 ZEND_API zend_generator *zend_generator_get_current(zend_generator *generator);
H A Dzend_generators.c34 static void zend_generator_cleanup_unfinished_execution(zend_generator *generator) /* {{{ */ argument
36 zend_execute_data *execute_data = generator->execute_data;
39 if (generator->send_target) {
40 if (Z_REFCOUNTED_P(generator->send_target)) Z_DELREF_P(generator->send_target);
41 generator->send_target = NULL;
87 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution) /* {{{ */ argument
89 if (Z_TYPE(generator->value) != IS_UNDEF) {
90 zval_ptr_dtor(&generator->value);
91 ZVAL_UNDEF(&generator
145 zend_generator *generator = (zend_generator*) object; local
192 zend_generator *generator = (zend_generator*) object; local
223 zend_generator *generator; local
249 zend_generator *generator; local
297 zend_generator *generator = (zend_generator *) Z_OBJ(ptr->This); local
314 zend_generator_throw_exception(zend_generator *generator, zval *exception) argument
404 zend_generator_add_child(zend_generator *generator, zend_generator *child) argument
494 zend_generator_get_current(zend_generator *generator) argument
570 zend_generator_get_next_delegated_value(zend_generator *generator) argument
648 zend_generator *generator; local
747 zend_generator_ensure_initialized(zend_generator *generator) argument
758 zend_generator_rewind(zend_generator *generator) argument
772 zend_generator *generator; local
788 zend_generator *generator; local
808 zend_generator *generator, *root; local
829 zend_generator *generator, *root; local
850 zend_generator *generator; local
869 zend_generator *generator, *root; local
905 zend_generator *generator; local
940 zend_generator *generator; local
984 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
993 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1005 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; local
1017 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; local
1033 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1043 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1061 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_execute.c2161 /* The generator object is stored in EX(return_value) */
2162 zend_generator *generator = (zend_generator *) EX(return_value); local
2163 /* However control may currently be delegated to another generator.
2165 return generator;
H A Dzend_vm_def.h3923 zend_generator *generator = zend_get_running_generator(execute_data); variable
3928 /* Copy return value into generator->retval */
3930 ZVAL_COPY_VALUE(&generator->retval, retval);
3932 if (UNEXPECTED(Z_OPT_COPYABLE(generator->retval))) {
3933 zval_copy_ctor_func(&generator->retval);
3938 ZVAL_COPY(&generator->retval, retval);
3944 ZVAL_COPY_VALUE(&generator->retval, retval);
3951 ZVAL_COPY_VALUE(&generator->retval, retval);
3955 /* Close the generator to free up resources */
3956 zend_generator_close(generator,
7098 zend_generator *generator = zend_get_running_generator(execute_data); variable
7131 zend_generator *generator = zend_get_running_generator(execute_data); variable
7230 zend_generator *generator = zend_get_running_generator(execute_data); variable
7368 zend_generator *generator = zend_get_running_generator(execute_data); variable
7515 zend_generator *generator = zend_get_running_generator(execute_data); variable
[all...]
H A Dzend_vm_execute.h1610 zend_generator *generator = zend_get_running_generator(execute_data); local
1611 zend_generator_close(generator, 1);
1643 zend_generator *generator = zend_get_running_generator(execute_data); local
1644 zend_generator_close(generator, 1);
1721 zend_generator *generator = zend_get_running_generator(execute_data); local
1722 zend_generator_close(generator, 1);
3101 zend_generator *generator = zend_get_running_generator(execute_data); local
3106 /* Copy return value into generator->retval */
3108 ZVAL_COPY_VALUE(&generator->retval, retval);
3110 if (UNEXPECTED(Z_OPT_COPYABLE(generator
4021 zend_generator *generator = zend_get_running_generator(execute_data); local
6271 zend_generator *generator = zend_get_running_generator(execute_data); local
6454 zend_generator *generator = zend_get_running_generator(execute_data); local
6983 zend_generator *generator = zend_get_running_generator(execute_data); local
7862 zend_generator *generator = zend_get_running_generator(execute_data); local
9575 zend_generator *generator = zend_get_running_generator(execute_data); local
11357 zend_generator *generator = zend_get_running_generator(execute_data); local
11976 zend_generator *generator = zend_get_running_generator(execute_data); local
12495 zend_generator *generator = zend_get_running_generator(execute_data); local
12663 zend_generator *generator = zend_get_running_generator(execute_data); local
12831 zend_generator *generator = zend_get_running_generator(execute_data); local
13195 zend_generator *generator = zend_get_running_generator(execute_data); local
13716 zend_generator *generator = zend_get_running_generator(execute_data); local
14501 zend_generator *generator = zend_get_running_generator(execute_data); local
15679 zend_generator *generator = zend_get_running_generator(execute_data); local
17472 zend_generator *generator = zend_get_running_generator(execute_data); local
17675 zend_generator *generator = zend_get_running_generator(execute_data); local
17937 zend_generator *generator = zend_get_running_generator(execute_data); local
18898 zend_generator *generator = zend_get_running_generator(execute_data); local
20655 zend_generator *generator = zend_get_running_generator(execute_data); local
23884 zend_generator *generator = zend_get_running_generator(execute_data); local
24021 zend_generator *generator = zend_get_running_generator(execute_data); local
24158 zend_generator *generator = zend_get_running_generator(execute_data); local
24670 zend_generator *generator = zend_get_running_generator(execute_data); local
26176 zend_generator *generator = zend_get_running_generator(execute_data); local
28245 zend_generator *generator = zend_get_running_generator(execute_data); local
29277 zend_generator *generator = zend_get_running_generator(execute_data); local
32321 zend_generator *generator = zend_get_running_generator(execute_data); local
32594 zend_generator *generator = zend_get_running_generator(execute_data); local
33258 zend_generator *generator = zend_get_running_generator(execute_data); local
34431 zend_generator *generator = zend_get_running_generator(execute_data); local
37059 zend_generator *generator = zend_get_running_generator(execute_data); local
[all...]

Completed in 45 milliseconds