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
c6c4f41a
Commit
c6c4f41a
authored
Nov 07, 2017
by
Arnaud Blanchard
Browse files
Reintroduce blc_command_interpret_thread which automatically launch a thread managing the text IHM
parent
3b01d657
Changes
1
Show whitespace changes
Inline
Side-by-side
src/blc_command.cpp
View file @
c6c4f41a
...
...
@@ -231,7 +231,16 @@ int blc_command_try_to_interpret(){
return
1
;
}
/*
/// if the parameter is not null we should display the help at each command.
static
void
*
command_thread_interpret_loop
(
void
*
){
while
(
blc_status
==
BLC_RUN
){
blc_command_interpret
();
}
return
NULL
;
}
void
blc_command_interpret_thread
(
char
const
*
option
,
void
(
*
ask_quit_funcion
)()){
pthread_t
thread
;
...
...
@@ -240,7 +249,7 @@ void blc_command_interpret_thread(char const *option, void (*ask_quit_funcion)()
if
(
strchr
(
option
,
'h'
))
blc_command_add
(
"h"
,
(
type_blc_command_cb
)
blc_command_display_help
,
NULL
,
"display this help"
,
NULL
);
if
(
strchr
(
option
,
'q'
))
blc_command_add
(
"q"
,
(
type_blc_command_cb
)
ask_quit_funcion
,
NULL
,
"quit the application"
,
NULL
);
SYSTEM_ERROR_CHECK
(
pthread_create
(
&
thread
,
NULL
,
command_thread_interpret_loop
,
NULL
),
-
1
,
NULL
);
}
*/
}
void
blc_command_update_int_cb
(
char
const
*
argument
,
void
*
int_pt
){
char
*
endptr
;
...
...
Write
Preview
Markdown
is supported
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