ajcall.c
Create new function hash table
Synopsis
Prototype
AjPTable ajCallTableNew (
void
);
Type | Name | Read/Write | Description |
AjPTable | | RETURN | Hash table with string keys |
Returns
AjPTable: | Hash table with string keys |
Description
Create new function hash table
See Also
See other functions in this section
Availability
In release 6.4.0
Create hash value pair using the name and function.
Synopsis
Prototype
void ajCallTableRegister (
AjPTable table,
const char* name,
void* func
);
Type | Name | Read/Write | Description |
AjPTable | table | Output | name which is used later. |
const char* | name | Input | name which is used later. |
void* | func | Function | function to be called on name being called. |
void | | RETURN | |
Input
name: | (Input) | name which is used later. |
func: | (Function) | function to be called on name being called. |
Output
table: | (Output) | name which is used later. |
Returns
Description
Create hash value pair using the name and function.
See Also
See other functions in this section
Availability
In release 6.4.0
Create hash value pair using the name and function.
Synopsis
Prototype
void ajCallRegister (
const char* name,
CallFunc func
);
Type | Name | Read/Write | Description |
const char* | name | Input | name which is used later.. |
CallFunc | func | Function | function to be called on name being called. |
void | | RETURN | |
Input
name: | (Input) | name which is used later.. |
func: | (Function) | function to be called on name being called. |
Returns
Description
Create hash value pair using the name and function.
See Also
See other functions in this section
Availability
In release 6.4.0
Create hash value pair using an obsolete name and function.
Synopsis
Prototype
void ajCallRegisterOld (
const char* name,
CallFunc func
);
Type | Name | Read/Write | Description |
const char* | name | Input | name which is used later. |
CallFunc | func | Function | function to be called on name being called. |
void | | RETURN | |
Input
name: | (Input) | name which is used later. |
func: | (Function) | function to be called on name being called. |
Returns
Description
Create hash value pair using an obsolete name and function.
See Also
See other functions in this section
Availability
In release 6.4.0
Call a function by its name. If it does not exist then give
an error message saying so.
Synopsis
Prototype
void* ajCall (
const char* name,
...
);
Type | Name | Read/Write | Description |
const char* | name | Input | name of the function to call. |
... | vararg | Vararg | Optional arguments |
void* | | RETURN | NULL if function call not found. |
Input
name: | (Input) | name of the function to call. |
: | (Vararg) | Optional arguments |
Returns
void*: | NULL if function call not found. |
Description
Call a function by its name. If it does not exist then give
an error message saying so.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns a named function by its name. If it does not exist then give
an error message saying so.
Synopsis
Prototype
void* ajCallTableGetC (
const AjPTable table,
const char* name
);
Type | Name | Read/Write | Description |
const AjPTable | table | Input | Function hash table |
const char* | name | Input | name of the function |
void* | | RETURN | NULL if function call not found. |
Input
table: | (Input) | Function hash table |
name: | (Input) | name of the function |
Returns
void*: | NULL if function call not found. |
Description
Returns a named function by its name. If it does not exist then give
an error message saying so.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns a named function by its name. If it does not exist then give
an error message saying so.
Synopsis
Prototype
void* ajCallTableGetS (
const AjPTable table,
const AjPStr namestr
);
Type | Name | Read/Write | Description |
const AjPTable | table | Input | Function hash table |
const AjPStr | namestr | Input | name of the function |
void* | | RETURN | NULL if function call not found. |
Input
table: | (Input) | Function hash table |
namestr: | (Input) | name of the function |
Returns
void*: | NULL if function call not found. |
Description
Returns a named function by its name. If it does not exist then give
an error message saying so.
See Also
See other functions in this section
Availability
In release 6.4.0
Cleans up calls register internal memory
Synopsis
Prototype
void ajCallExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up calls register internal memory
See Also
See other functions in this section
Availability
In release 6.4.0