Function Block Definition
Previous Topic  Next Topic 

The function block consists of zero or one onsignal_declaration and zero or more function_declarations.      The onsignal function is the function that is jumped to when a signal (usually a hangup signal) is received.       Additional declaration_blocks may also apprear between the function_declarations and onsignal_declaration


{ declaration_block  }

{ onsignal_declaration }

{ declaration_block  }

{ function_declaration }

{ declaration_block }

{ function_declaration }

{ declaration_block }

etc



The order of the onsignal_declaration and the function_delarations is not important but the onsignal_declaration must reside in the same source file as the main…endmain statements (The main .TES source file),  whereas the function_declarations can optionally reside in separate (.FUN) source files (or .TEL library file).


The syntax of the onsignal_declaration and function_declaration are defined in the following sections.