Skip to content

Commit

Permalink
remove env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Oct 24, 2024
1 parent 47f2f24 commit aa5d4f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions cobc/cobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8320,8 +8320,6 @@ process_translate (struct filename *fn)
}
}

if (!dump_ast_to_file)
dump_ast_to_file = getenv("COB_DUMP_AST");
if (dump_ast_to_file)
cb_dump_ast_to_file (current_program, dump_ast_to_file, dump_ast_flags);

Expand Down
3 changes: 0 additions & 3 deletions cobc/dump_ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,8 @@ void set_flags (const char* flags)

void cb_dump_ast_to_file (struct cb_program *prog, const char *filename, const char* flags)
{
char *env;
int close_fd = 1;

env = getenv ("COB_DUMP_AST_FLAGS");
if (env) set_flags (env);
if (flags) set_flags (flags);

if (!strcmp(filename, COB_DASH)){
Expand Down

0 comments on commit aa5d4f3

Please sign in to comment.