CWB
|
int call_predefined_function | ( | int | bf_id, |
DynCallResult * | apl, | ||
int | nr_args, | ||
Constrainttree | ctptr, | ||
DynCallResult * | result | ||
) |
Calls a predefined function from the built_function array.
bf_id | The function to call, identified as an index to the builtin_function array. |
apl | Contains the arguments to this function. |
nr_args | The number of arguments the function takes. |
ctptr | A constraint tree used in some (but not all) of the builtin functions. |
result | Where to put the result of calling the function. |
References c_tree::args, ATTAT_INT, attat_name(), ATTAT_NONE, ATTAT_PAREF, ATTAT_POS, ATTAT_STRING, c_tree::attr, CDA_OK, cderrno, _DCR::charres, CL_DYN_STRING_SIZE, cl_set_intersection(), cl_set_size(), common_prefix_length(), cqpmessage(), _DCR::dynamic_string_buffer, Error, False, c_tree::func, get_id_frequency, get_id_of_string, get_string_of_id, _DCR::intres, c_tree::pa_ref, pa_ref, _ActualParamList::param, _DCR::parefres, c_tree::sa_ref, sa_ref, True, c_tree::type, _DCR::type, and _DCR::value.
Referenced by get_leaf_value().
int find_predefined | ( | char * | name | ) |
Gets the index of a specified predefined function.
name | The name of the function to search for. |
References _builtinf::name.
Referenced by FunctionCall(), and is_predefined_function().
int is_predefined_function | ( | char * | name | ) |
Checks whether a string is the name of a predefined function.
name | The name of the function to search for. |
References find_predefined().
Global array of built-in functions.
Referenced by FunctionCall(), and print_booltree().