Setup

Introduction

This chapter deals with the setup of the FML environment. Before you can begin to work with FML fielded buffers, or use the VIEWS functions that move fields between structures and fielded buffers, you have to take care of such details as setting environment variables appropriate for your application. These activities are described in this chapter.

Directory Structure

The delivered FML software will reside in a subtree of the local file system. Several of the FML modules assume that the structure of this subtree is as described in this section. It is assumed that the environment variable for the root directory is set.

The following directories exist under the root directory:

C application software using FML must include the following header files in this order:

#include <stdio.h>   
#include "fml.h"

The file fml.h or fml32.h contains definitions for structures, symbolic constants, and macros used by the FML software.

Environment Variables

Several environment variables are used by FML and VIEWS. This section gives a summary of their use.

The following variable is used in FML to search for system supplied files:

The following variables are used throughout FML to access field table files (described in Chapter 4):

In addition to the ones needed by FML (FLDTBLDIR and FIELDTBLS), two environment variables are used by VIEWS functions: