Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
engboris committed Jun 12, 2024
1 parent 67f4382 commit d54fb0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions cobc/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1841,15 +1841,15 @@ output_gnucobol_defines (const char *formatted_date)

l = cb_include_file_list_directive;
while (l) {
struct cb_text_list *last = l;
struct cb_text_list *last = l;
if (l->text[0] == '<') {
output_line ("#include %s", l->text);
} else {
output_line ("#include \"%s\"", l->text);
}
l = l->next;
cobc_free (last->text);
cobc_free (last);
l = l->next;
cobc_free (last->text);
cobc_free (last);
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions cobc/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -2798,5 +2798,3 @@ cb_find_defined_program_by_id (const char *orig_id)

return NULL;
}


8 changes: 1 addition & 7 deletions tests/testsuite.src/used_binaries.at
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ AT_CLEANUP


AT_SETUP([check include header file])
#AT_KEYWORDS([include])
#AT_KEYWORDS([include imp])

AT_DATA([file.h], [
COB_EXT_IMPORT void f (char *, long);
Expand Down Expand Up @@ -1138,12 +1138,6 @@ AT_CHECK([$COMPILE_MODULE -Wno-unfinished --copy "f.copy" -fstatic-call prog2.co
[prog2.cob:8: warning: unexpected RETURNING item
])

AT_CLEANUP


AT_SETUP([check include header file with directive])
#AT_KEYWORDS([imp include])

AT_DATA([file.h], [
COB_EXT_IMPORT void f (char *, long);
])
Expand Down

0 comments on commit d54fb0c

Please sign in to comment.