Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
blibs
blc_program
Commits
800629a7
Commit
800629a7
authored
Sep 10, 2017
by
Arnaud Blanchard
Browse files
Fix blc_stderr_ansi undefined
parent
7b62a7ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blc_program.cpp
View file @
800629a7
...
...
@@ -457,7 +457,7 @@ void blc_program_init(int *argc, char ***argv, void (*exit_cb)(void))
blc_output_terminal
=
isatty
(
STDOUT_FILENO
);
if
(
isatty
(
STDERR_FILENO
)
&&
blc_input_terminal
)
blc_stderr_ansi
=
1
;
else
blc_stderr_ansi
;
//This is not waranty. It is safer to use blc_stderr_ansi_detect but it causes trouble when many program are launched at once
else
blc_stderr_ansi
=
0
;
//This is not waranty. It is safer to use blc_stderr_ansi_detect but it causes trouble when many program are launched at once
blc_program_add_option
(
&
profile
,
'~'
,
"profile"
,
"filename"
,
"profile the execution of the loop"
,
NULL
);
blc_program_add_option
(
&
help
,
'h'
,
"help"
,
0
,
"display this help"
,
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment