- if (EQ (FLine, "</MODULE>"))
- {
- /* The symbol is not in this module, try the next one */
- state = 1;
- }
- else
- {
- /* Check if this is the symbol we are looking for. */
- if (strncmp (name, FLine, NCPS) == 0)
- {
- /* The symbol is in this module. */
-
- /* As in the original library format, it is assumed that the .rel
- files reside in the same directory as the lib files. */
- sprintf (&str[strlen (str)], "%s%c%s", ModName, FSEPX, LKOBJEXT);
-
- /* If this module has been loaded already don't load it again. */
- lbf = lbfhead;
- while (lbf)
- {
- if (EQ (str, lbf->filspc))
- return 1; /* Already loaded */
- lbf = lbf->next;
- }
-
- /* Add the embedded file to the list of files to be loaded in
- the second pass. That is performed latter by the function
- library() below. */
- lbfh = (struct lbfile *) new (sizeof (struct lbfile));
- if (lbfhead == NULL)
- {
- lbfhead = lbfh;
- }
- else
- {
- lbf = lbfhead;
- while (lbf->next)
- {
- lbf = lbf->next;
- }
- lbf->next = lbfh;
- }
-
- lbfh->libspc = lbnh->libspc;
- lbfh->filspc = str;
- lbfh->relfil = strdup (ModName);
- /* Library embedded file, so lbfh->offset must be >=0 */
- lbfh->offset = IndexOffset + FileOffset;
-
- /* Jump to where the .rel begins and load it. */
- fseek (libfp, lbfh->offset, SEEK_SET);
- if (!LoadRel (lbnh->libspc, libfp, ModName))
+ if (EQ (FLine, "</MODULE>"))
+ {
+ /* The symbol is not in this module, try the next one */
+ state = 1;
+ }
+ else
+ {
+ /* Check if this is the symbol we are looking for. */
+ if (strncmp (name, FLine, NCPS) == 0)
+ {
+ /* The symbol is in this module. */
+
+ /* As in the original library format, it is assumed that the .rel
+ files reside in the same directory as the lib files. */
+ sprintf (&str[strlen (str)], "%s%c%s", ModName, FSEPX, LKOBJEXT);
+
+ /* If this module has been loaded already don't load it again. */
+ lbf = lbfhead;
+ while (lbf)
+ {
+ if (EQ (str, lbf->filspc))
+ return 1; /* Already loaded */
+ lbf = lbf->next;
+ }
+
+ /* Add the embedded file to the list of files to be loaded in
+ the second pass. That is performed latter by the function
+ library() below. */
+ lbfh = (struct lbfile *) new (sizeof (struct lbfile));
+ if (lbfhead == NULL)
+ {
+ lbfhead = lbfh;
+ }
+ else
+ {
+ lbf = lbfhead;
+ while (lbf->next)
+ {
+ lbf = lbf->next;
+ }
+ lbf->next = lbfh;
+ }
+
+ lbfh->libspc = lbnh->libspc;
+ lbfh->filspc = strdup (str);
+ lbfh->relfil = strdup (ModName);
+ /* Library embedded file, so lbfh->offset must be >=0 */
+ lbfh->offset = IndexOffset + FileOffset;
+
+ /* Jump to where the .rel begins and load it. */
+ fseek (libfp, lbfh->offset, SEEK_SET);
+ if (!LoadRel (lbnh->libspc, libfp, ModName))