LR_GETDIR - read directive from input file.

Usage:

#include <ld.h>
code = lr_getdir();

Where:

unsigned code;
is a code identifying the directive that has been read. For most directives, this will just be the first byte. For LD_CONTROL directives, it will be
(LD_CONTROL << 8) | LC_code

where LD_CONTROL is '#' and LC_code is the code of the sub-directive.

Description:

"lr_getdir" reads a new directive from the LD input file. Subsequent "lr_" functions can be used to read fields from the directive.

If the previous directive has been completely read, "lr_getdir" verifies its checksum. Otherwise, "lr_getdir" skips over whatever is left of the previous directive and goes to the beginning of the next.

Copyright © 1996, Thinkage Ltd.