PURPOSE

Fboolpr, Fboolpr32, Fvboolpr, Fvboolpr32 - print Boolean expression as parsed

SYNOPSIS

#include <stdio.h>
#include "fml.h"
void
Fboolpr(char *tree, FILE *iop)
int
Fvboolpr(char *tree, FILE *iop, char *viewname)
#include "fml32.h"
void
Fboolpr32(char *tree, FILE *iop)
int
Fvboolpr32(char *tree, FILE *iop, char *viewname)

DESCRIPTION

Fboolpr() prints a compiled expression to the specified output stream. The evaluation tree, tree, is one previously created with Fboolco(3fml). iop is a pointer of type FILE to the output stream. The output is fully parenthesized, as it was parsed (as indicated by the evaluation tree). The function is useful for debugging.

Fboolpr32 is used with 32-bit FML.

Fvboolpr and Fvboolpr32 provide the same functionality for views. The viewname parameter indicates the view from which the field offsets are taken, and should be the same view specified for Fvboolco or Fvboolco32.

These functions are not supported on /WS platforms.

RETURN VALUES

Fboolpr() is declared as returning a void, so there are no return values. Fvboolpr returns -1 if the view name is not valid.

ERRORS

Under the following conditions, Fvboolpr() fails and sets Ferror to:

[FBADVIEW]
"cannot find or get view"
viewname was not found in the files specified by VIEWDIR or VIEWFILES.
 
[FVFOPEN]
"cannot find or open view file"
While trying to find viewname, the program failed to find one of the files specified by VIEWDIR or VIEWFILES.
 
[EUNIX]
"operating system error"
While trying to find viewname, the program failed to open one of the files specified by VIEWDIR or VIEWFILES for reading.
 
[FVFSYNTAX]
"bad viewfile"
While trying to find viewname, one of the files specified by VIEWDIR or VIEWFILES was corrupted or not a view file.
 
[FMALLOC]
"malloc failed"
While trying to find viewname, malloc() failed while allocating space to hold the view information.

PORTABILTY

This function is not supported using the TUXEDO System /WS DLL for OS/2 and Microsoft Windows.

SEE ALSO

Fintro(3fml),
Fboolco(3fml)