Next: , Previous: , Up: Executive Assembler Introduction   [Index]


8.1.9 Adding The Specific Functions

static int
type_fsdeck(struct context_type *context_data)
{
    const char *name;
    int status;
    const struct x1f4_function_type *function_data;

    function_data = here_set;

    name = function_data->name;
    if (name) {
	void *fsdeck;

	fsdeck = context_data->indexset_data->function_set.text;

The functions list is a regular named objects collection, add the function definitions with x1f4_post_mxpath:

See x1f4_post_mxpath.

See Named Objects Collections.

See struct x1f4_indexset_type.

	do {
	    status = x1f4_post_mxpath
		(fsdeck, name, function_data->length, function_data);
	    if (status) {
		break;
	    } else {
		function_data++;
	    }

	    name = function_data->name;
	} while (name);
    } else {
	status = 0;
    }

    return status;
}