Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
f1faf7ed
Commit
f1faf7ed
authored
Jul 16, 2019
by
yoogx
Browse files
* Remove xlocale.h
For openaadl/polyorb-hi-c#31
parent
fe7b0899
Changes
4
Hide whitespace changes
Inline
Side-by-side
include/po_hi_time.h
View file @
f1faf7ed
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
4
ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
9
ESA & ISAE.
*/
*/
#ifndef __PO_HI_TIME_H__
#ifndef __PO_HI_TIME_H__
...
@@ -14,11 +14,6 @@
...
@@ -14,11 +14,6 @@
#include <po_hi_types.h>
#include <po_hi_types.h>
#ifndef HAVE_CLOCK_GETTIME
#ifndef HAVE_CLOCK_GETTIME
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API)
#else
#include <xlocale.h>
#endif
#include <time.h>
#include <time.h>
#endif
#endif
...
...
src/po_hi_messages.c
View file @
f1faf7ed
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
7
ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
9
ESA & ISAE.
*/
*/
#include <po_hi_config.h>
#include <po_hi_config.h>
...
@@ -14,10 +14,6 @@
...
@@ -14,10 +14,6 @@
/* Headers from PolyORB-HI-C */
/* Headers from PolyORB-HI-C */
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API) || defined (FREERTOS)
#else
#include <xlocale.h>
#endif
#include <string.h>
#include <string.h>
/* Headers from the executive */
/* Headers from the executive */
...
@@ -35,8 +31,8 @@ void __po_hi_msg_reallocate (__po_hi_msg_t* message)
...
@@ -35,8 +31,8 @@ void __po_hi_msg_reallocate (__po_hi_msg_t* message)
}
}
void
__po_hi_msg_write
(
__po_hi_msg_t
*
msg
,
void
__po_hi_msg_write
(
__po_hi_msg_t
*
msg
,
void
*
data
,
void
*
data
,
__po_hi_uint32_t
len
)
__po_hi_uint32_t
len
)
{
{
memcpy
(
msg
->
content
,
data
,
len
);
memcpy
(
msg
->
content
,
data
,
len
);
msg
->
length
=
len
;
msg
->
length
=
len
;
...
@@ -48,11 +44,11 @@ int __po_hi_msg_length (__po_hi_msg_t* msg)
...
@@ -48,11 +44,11 @@ int __po_hi_msg_length (__po_hi_msg_t* msg)
void
__po_hi_msg_copy
(
__po_hi_msg_t
*
dest
,
void
__po_hi_msg_copy
(
__po_hi_msg_t
*
dest
,
__po_hi_msg_t
*
src
)
__po_hi_msg_t
*
src
)
{
{
memcpy
(
dest
->
content
,
memcpy
(
dest
->
content
,
src
->
content
,
src
->
content
,
__PO_HI_MESSAGES_MAX_SIZE
);
__PO_HI_MESSAGES_MAX_SIZE
);
dest
->
length
=
src
->
length
;
dest
->
length
=
src
->
length
;
}
}
...
@@ -157,22 +153,22 @@ void __po_hi_messages_debug (__po_hi_msg_t* msg)
...
@@ -157,22 +153,22 @@ void __po_hi_messages_debug (__po_hi_msg_t* msg)
if
(
Index_Hexa
>=
45
)
if
(
Index_Hexa
>=
45
)
{
{
Hexa
[
Index_Hexa
]
=
'\0'
;
Hexa
[
Index_Hexa
]
=
'\0'
;
ASCII
[
Index_ASCII
]
=
'\0'
;
ASCII
[
Index_ASCII
]
=
'\0'
;
printf
(
"%s || %s
\n
"
,
Hexa
,
ASCII
);
printf
(
"%s || %s
\n
"
,
Hexa
,
ASCII
);
Index_Hexa
=
0
;
Index_Hexa
=
0
;
Index_ASCII
=
0
;
Index_ASCII
=
0
;
for
(
i
=
0
;
i
<
50
;
i
++
)
for
(
i
=
0
;
i
<
50
;
i
++
)
Hexa
[
i
]
=
' '
;
Hexa
[
i
]
=
' '
;
for
(
i
=
0
;
i
<
17
;
i
++
)
for
(
i
=
0
;
i
<
17
;
i
++
)
ASCII
[
i
]
=
' '
;
ASCII
[
i
]
=
' '
;
}
}
}
}
if
(
Index_Hexa
>
0
)
if
(
Index_Hexa
>
0
)
{
{
for
(
i
=
Index_Hexa
;
i
<
44
;
i
++
)
for
(
i
=
Index_Hexa
;
i
<
44
;
i
++
)
Hexa
[
i
]
=
' '
;
Hexa
[
i
]
=
' '
;
Index_Hexa
=
45
;
Index_Hexa
=
45
;
Hexa
[
Index_Hexa
]
=
'\0'
;
Hexa
[
Index_Hexa
]
=
'\0'
;
...
...
src/po_hi_storage.c
View file @
f1faf7ed
...
@@ -5,13 +5,9 @@
...
@@ -5,13 +5,9 @@
*
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
*
* Copyright (C) 2011-201
7
ESA & ISAE.
* Copyright (C) 2011-201
9
ESA & ISAE.
*/
*/
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API) || defined (FREERTOS)
#else
#include <xlocale.h>
#endif
#include <string.h>
#include <string.h>
#include <po_hi_config.h>
#include <po_hi_config.h>
...
...
src/po_hi_task.c
View file @
f1faf7ed
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
7
ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-201
9
ESA & ISAE.
*/
*/
#if defined (__linux__) || defined (RTEMS412)
#if defined (__linux__) || defined (RTEMS412)
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
#if defined (RTEMS_POSIX) || defined (POSIX) || defined (XENO_POSIX)
#if defined (RTEMS_POSIX) || defined (POSIX) || defined (XENO_POSIX)
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API)
#if defined (__CYGWIN__) || defined (__MINGW32__) || defined (RTEMS_POSIX) || defined (__PO_HI_RTEMS_CLASSIC_API)
#else
#else
#include <xlocale.h>
#include <unistd.h>
#include <unistd.h>
#endif
#endif
...
...
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