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
Sven Gestegård Robertz
LabComm
Commits
c701a906
Commit
c701a906
authored
Apr 01, 2014
by
Tommy Olofsson
Browse files
More changes for vx.
parent
f323b4a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
compiler/C_CodeGen.jrag
View file @
c701a906
...
...
@@ -161,7 +161,7 @@ aspect C_CodeGen {
env.println("");
// Include
env.println("#include <stdint.h>");
//
env.println("#include <stdint.h>");
env.println("#include \"labcomm.h\"");
for (int i = 0 ; i < includes.size() ; i++) {
env.println("#include \"" + includes.get(i) + "\"");
...
...
lib/c/labcomm_compat_vxworks.h
View file @
c701a906
...
...
@@ -6,8 +6,16 @@
#endif
#include
<types/vxTypes.h>
#include
<selectLib.h>
#include
<types.h>
#include
<timers.h>
#include
<stdio.h>
#ifdef __INT64_MAX__
#undef INT64_MAX
#define INT64_MAX __INT64_MAX__
#endif
#if (CPU == PPC603)
#undef _LITTLE_ENDIAN
#endif
...
...
lib/c/labcomm_decoder.c
View file @
c701a906
...
...
@@ -199,9 +199,9 @@ static int decode_typedef_or_sample(struct labcomm_decoder *d, int kind)
LABCOMM_IOCTL_WRITER_GET_BYTES_WRITTEN
,
&
signature
.
size
);
if
(
err
<
0
)
{
/* fprintf(stderr,
"Failed to get size: %s\n", strerror(-err));
*/
labcomm_error_
warning
(
d
->
error
,
LABCOMM_ERROR_BAD_WRITER
,
"Failed to get size: %s
\n
"
,
strerror
(
-
err
));
printf
(
"Failed to get size: %s
\n
"
,
strerror
(
-
err
));
/*
labcomm_error_
fatal_global(
LABCOMM_ERROR_BAD_WRITER,
*/
/*
"Failed to get size: %s\n", strerror(-err));
*/
result
=
-
ENOENT
;
goto
free_signature_name
;
}
...
...
@@ -209,9 +209,9 @@ static int decode_typedef_or_sample(struct labcomm_decoder *d, int kind)
LABCOMM_IOCTL_WRITER_GET_BYTE_POINTER
,
&
signature
.
signature
);
if
(
err
<
0
)
{
/* f
printf(
stderr,
"Failed to get pointer: %s\n", strerror(-err));
*/
labcomm_error_
warning
(
d
->
error
,
LABCOMM_ERROR_BAD_WRITER
,
"Failed to get pointer: %s
\n
"
,
strerror
(
-
err
));
printf
(
"Failed to get pointer: %s
\n
"
,
strerror
(
-
err
));
/*
labcomm_error_
fatal_global(
LABCOMM_ERROR_BAD_WRITER,
*/
/*
"Failed to get pointer: %s\n", strerror(-err));
*/
result
=
-
ENOENT
;
goto
free_signature_name
;
}
...
...
lib/c/labcomm_error.c
View file @
c701a906
...
...
@@ -27,6 +27,6 @@ void labcomm_error_fatal_global(enum labcomm_error error,
char
*
format
,
...)
{
f
printf
(
stderr
,
"Fatal error %d
\n
"
,
error
);
printf
(
"Fatal error %d
\n
"
,
error
);
exit
(
1
);
}
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