Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
1ea5cf12
Commit
1ea5cf12
authored
Dec 18, 2020
by
Sébastien Timmermans
Browse files
[ErrMsg] lut and buffer remove mbs_error
parent
97cfa6cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
MBsysC/mbs_common/mbs_utilities/lut.c
View file @
1ea5cf12
...
...
@@ -602,7 +602,7 @@ MbsLut1D* mbs_lut_1D_load_file(char* fileName)
if
(
flut
==
0
)
{
mbs_msg
(
"
\t
>LOOK UP TABLE> Error in mbs_lut_1D_load_file.
\n
"
);
mbs_msg
(
"
\t
> > Impossible to find the file %s.
\n
"
,
fileName
);
mbs_
error_
msg
(
"In Look up table loading file, shuting down the process.
\n
"
);
mbs_msg
(
"In Look up table loading file, shuting down the process.
\n
"
);
mbs_lut_1D_free
(
lut
);
return
NULL
;
}
...
...
@@ -647,7 +647,7 @@ MbsLut2D* mbs_lut_2D_load_file(char* fileName)
if
(
flut
==
0
)
{
mbs_msg
(
"
\t
>LOOK UP TABLE> Error in mbs_lut_2D_load_file.
\n
"
);
mbs_msg
(
"
\t
> > Impossible to find the file %s."
,
fileName
);
mbs_
error_
msg
(
"In Look up table loading file
, shuting down the process
.
\n
"
);
mbs_msg
(
"In Look up table loading file
.
\n
"
);
mbs_lut_2D_free
(
lut
);
return
NULL
;
}
...
...
@@ -785,7 +785,7 @@ MbsLut1Dvec* mbs_lut_1Dvec_load_file(char* fileName)
}
// Checking if the file is empty
if
(
NULL
==
fgets
(
line
,
size
,
flut
))
{
mbs_
error_
msg
(
"The file %s is empty."
,
fileName
);
mbs_msg
(
"The file %s is empty."
,
fileName
);
mbs_msg
(
"In Look up table loading file .
\n
"
);
return
NULL
;
}
...
...
MBsysC/mbs_common/mbs_utilities/mbs_buffer.c
View file @
1ea5cf12
...
...
@@ -88,7 +88,7 @@ MbsBuffer* mbs_new_buffer(char* filename, char* anim_name, int nx, int size, int
fid
=
fopen
(
b
->
anim
->
filename
,
"w"
);
if
(
fid
==
NULL
)
{
mbs_
error_
msg
(
"in mbs_buffer_save: cannot open file '%s'
\n
"
,
b
->
anim
->
filename
);
mbs_msg
(
"in mbs_buffer_save: cannot open file '%s'
\n
"
,
b
->
anim
->
filename
);
free
(
b
->
tx
);
free
(
b
->
last_x
);
free
(
b
->
anim
);
...
...
@@ -359,7 +359,7 @@ int mbs_buffer_write(MbsBuffer* b) {
{
err
=
mbs_anim_write
(
b
);
if
(
err
<
0
){
mbs_
error_
msg
(
"
\t
>Buffer writing> Error during mbs_buffer_write.
\n
"
);
mbs_msg
(
"
\t
>Buffer writing> Error during mbs_buffer_write.
\n
"
);
return
err
;
}
}
...
...
@@ -385,7 +385,7 @@ int mbs_anim_write(MbsBuffer* b)
if
(
fid
==
NULL
)
{
mbs_
error_
msg
(
"
\t
>ANIM WRITE> in mbs_anim_write: cannot open file '%s'
\n
"
,
b
->
anim
->
filename
);
mbs_msg
(
"
\t
>ANIM WRITE> in mbs_anim_write: cannot open file '%s'
\n
"
,
b
->
anim
->
filename
);
return
_MBS_ERR_LOW_FILES
;
}
...
...
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