Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
blc_program
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blaar
blibs
blc_program
Commits
c222fdf0
Commit
c222fdf0
authored
5 years ago
by
Arnaud Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
Improve test interactive mode
parent
86891057
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/blc_command.cpp
+1
-0
1 addition, 0 deletions
src/blc_command.cpp
t_interactive/t_interactive.cpp
+2
-2
2 additions, 2 deletions
t_interactive/t_interactive.cpp
with
3 additions
and
2 deletions
src/blc_command.cpp
+
1
−
0
View file @
c222fdf0
...
...
@@ -13,6 +13,7 @@
and, more generally, to use and operate it in the same conditions as regards security.
The fact that you are presently reading this means that you have had knowledge of the CeCILL v2.1 license and that you accept its terms. */
#include
<stdio.h>
#include
"blc_command.h"
#include
"blc_realtime.h"
//us_
...
...
This diff is collapsed.
Click to expand it.
t_interactive/t_interactive.cpp
+
2
−
2
View file @
c222fdf0
...
...
@@ -15,7 +15,7 @@ void display_argument(char const* argument, void*user_data){
int
main
(
int
argc
,
char
**
argv
){
char
const
*
data_to_pass
=
"Here the text to display"
;
fprintf
(
stderr
,
"Test BLC_COMMAND_LOOP
\n
"
);
fprintf
(
stderr
,
"Test BLC_COMMAND_LOOP
for interactive actions with the terminal
\n
"
);
blc_command_add
(
"t"
,
display_test_text
,
NULL
,
"Call a function which display the test text"
,
(
void
*
)
data_to_pass
);
blc_command_add
(
"a"
,
display_argument
,
"argument to display"
,
"Call a function which display the text passed as argument"
,
NULL
);
...
...
@@ -26,7 +26,7 @@ int main( int argc, char **argv){
//>=0 loop without blocking at the period given in µs (0 as fast as possible)
BLC_COMMAND_LOOP
(
-
2
){
blc_command_display_help
();
blc_command_display_help
();
//Display the help on the list of command
}
return
EXIT_SUCCESS
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment