2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>

* itron/include/itronsys/mbox.h, itron/include/itronsys/types.h,
	itron/include/rtems/itron/eventflags.h,
	itron/include/rtems/itron/fmempool.h,
	itron/include/rtems/itron/mbox.h,
	itron/include/rtems/itron/msgbuffer.h,
	itron/include/rtems/itron/port.h,
	itron/include/rtems/itron/semaphore.h,
	itron/include/rtems/itron/task.h,
	itron/include/rtems/itron/vmempool.h,
	itron/inline/rtems/itron/semaphore.inl,
	itron/macros/rtems/itron/semaphore.inl, itron/src/eventflags.c,
	itron/src/fmempool.c, itron/src/itronsem.c, itron/src/mbox.c,
	itron/src/msgbuffer.c, itron/src/port.c, itron/src/snd_mbx.c,
	itron/src/task.c, itron/src/trcv_mbx.c, itron/src/vmempool.c:
	Convert to using c99 fixed size types.
This commit is contained in:
Ralf Corsepius
2004-03-23 13:13:17 +00:00
parent 39cefdda93
commit 20f78a33ff
23 changed files with 70 additions and 52 deletions
+18
View File
@@ -1,3 +1,21 @@
2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* itron/include/itronsys/mbox.h, itron/include/itronsys/types.h,
itron/include/rtems/itron/eventflags.h,
itron/include/rtems/itron/fmempool.h,
itron/include/rtems/itron/mbox.h,
itron/include/rtems/itron/msgbuffer.h,
itron/include/rtems/itron/port.h,
itron/include/rtems/itron/semaphore.h,
itron/include/rtems/itron/task.h,
itron/include/rtems/itron/vmempool.h,
itron/inline/rtems/itron/semaphore.inl,
itron/macros/rtems/itron/semaphore.inl, itron/src/eventflags.c,
itron/src/fmempool.c, itron/src/itronsem.c, itron/src/mbox.c,
itron/src/msgbuffer.c, itron/src/port.c, itron/src/snd_mbx.c,
itron/src/task.c, itron/src/trcv_mbx.c, itron/src/vmempool.c:
Convert to using c99 fixed size types.
2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>
* posix/include/rtems/posix/cond.h,
+1 -1
View File
@@ -47,7 +47,7 @@ typedef struct t_msg {
INT msgpri; /* priority of each message */
/* VB msgcont[]; XXX */
unsigned8 msgcont[1];
uint8_t msgcont[1];
} T_MSG;
/*
+20 -20
View File
@@ -22,16 +22,16 @@ extern "C" {
* off the shell programs including paranoia.
*/
typedef signed8 B; /* signed 8-bit integer */
typedef signed16 H; /* signed 16-bit integer */
typedef signed32 W; /* signed 32-bit integer */
typedef unsigned8 UB; /* unsigned 8-bit integer */
typedef unsigned16 UH; /* unsigned 16-bit integer */
typedef unsigned32 UW; /* unsigned 32-bit integer */
typedef int8_t B; /* signed 8-bit integer */
typedef int16_t H; /* signed 16-bit integer */
typedef int32_t W; /* signed 32-bit integer */
typedef uint8_t UB; /* unsigned 8-bit integer */
typedef uint16_t UH; /* unsigned 16-bit integer */
typedef uint32_t UW; /* unsigned 32-bit integer */
typedef unsigned32 VW; /* unpredictable data type (32-bit size) */
typedef unsigned16 VH; /* unpredictable data type (16-bit size) */
typedef unsigned8 VB; /* unpredictable data type (8-bit size) */
typedef uint32_t VW; /* unpredictable data type (32-bit size) */
typedef uint16_t VH; /* unpredictable data type (16-bit size) */
typedef uint8_t VB; /* unpredictable data type (8-bit size) */
typedef void *VP; /* pointer to an unpredictable data type */
@@ -53,26 +53,26 @@ typedef void (*FP)(); /* program start address */
* and/or have special meanings.
*/
typedef signed32 INT; /* Signed integer (bit width of processor) */
typedef unsigned32 UINT; /* Unsigned integer (bit width of processor) */
typedef int32_t INT; /* Signed integer (bit width of processor) */
typedef uint32_t UINT; /* Unsigned integer (bit width of processor) */
typedef boolean BOOL; /* Boolean value. TRUE (1) or FALSE (0). */
typedef signed16 FN; /* Function code. Signed integer. Maximum 2 bytes. */
typedef int16_t FN; /* Function code. Signed integer. Maximum 2 bytes. */
typedef int ID; /* Object ID number (???id) */
/* Value range depends on the system. Usually */
/* a signed integer. Certain ID values may */
/* represent objects on other nodes when the */
/* connection function is supported. */
typedef unsigned32 BOOL_ID;/* Boolean value or ID number */
typedef uint32_t BOOL_ID;/* Boolean value or ID number */
typedef signed32 HNO; /* Handler number */
typedef signed32 RNO; /* Rendezvous number */
typedef signed32 NODE; /* Node Number. Usually a signed integer. */
typedef signed32 ATR; /* Object or handler attribute. */
typedef int32_t HNO; /* Handler number */
typedef int32_t RNO; /* Rendezvous number */
typedef int32_t NODE; /* Node Number. Usually a signed integer. */
typedef int32_t ATR; /* Object or handler attribute. */
/* An unsigned integer. */
typedef signed32 ER; /* Error code. A signed integer. */
typedef unsigned32 PRI; /* Task priority. A signed integer. */
typedef signed32 TMO; /* Timeout value. A signed integer. */
typedef int32_t ER; /* Error code. A signed integer. */
typedef uint32_t PRI; /* Task priority. A signed integer. */
typedef int32_t TMO; /* Timeout value. A signed integer. */
/* TMO_POL = 0 indicates polling, */
/* while TMO_FEVR = -1 indicates wait forever. */
@@ -24,7 +24,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
unsigned32 XXX_more_stuff_goes_here;
uint32_t XXX_more_stuff_goes_here;
} ITRON_Eventflags_Control;
/*
@@ -43,7 +43,7 @@ ITRON_EXTERN Objects_Information _ITRON_Eventflags_Information;
*/
void _ITRON_Eventflags_Manager_initialization(
unsigned32 maximum_eventflags
uint32_t maximum_eventflags
);
/*
+2 -2
View File
@@ -25,7 +25,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
unsigned32 XXX_more_stuff_goes_here;
uint32_t XXX_more_stuff_goes_here;
} ITRON_Fixed_memory_pool_Control;
/*
@@ -44,7 +44,7 @@ ITRON_EXTERN Objects_Information _ITRON_Fixed_memory_pool_Information;
*/
void _ITRON_Fixed_memory_pool_Manager_initialization(
unsigned32 maximum_fixed_memory_pools
uint32_t maximum_fixed_memory_pools
);
/*
+2 -2
View File
@@ -25,7 +25,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
unsigned32 count;
uint32_t count;
boolean do_message_priority;
CORE_message_queue_Control message_queue;
} ITRON_Mailbox_Control;
@@ -46,7 +46,7 @@ ITRON_EXTERN Objects_Information _ITRON_Mailbox_Information;
*/
void _ITRON_Mailbox_Manager_initialization(
unsigned32 maximum_mailboxes
uint32_t maximum_mailboxes
);
/*
+1 -1
View File
@@ -46,7 +46,7 @@ ITRON_EXTERN Objects_Information _ITRON_Message_buffer_Information;
*/
void _ITRON_Message_buffer_Manager_initialization(
unsigned32 maximum_message_buffers
uint32_t maximum_message_buffers
);
/*
+2 -2
View File
@@ -24,7 +24,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
unsigned32 XXX_more_stuff_goes_here;
uint32_t XXX_more_stuff_goes_here;
} ITRON_Port_Control;
/*
@@ -43,7 +43,7 @@ ITRON_EXTERN Objects_Information _ITRON_Port_Information;
*/
void _ITRON_Port_Manager_initialization(
unsigned32 maximum_ports
uint32_t maximum_ports
);
/*
+1 -1
View File
@@ -45,7 +45,7 @@ ITRON_EXTERN Objects_Information _ITRON_Semaphore_Information;
*/
void _ITRON_Semaphore_Manager_initialization(
unsigned32 maximum_semaphores
uint32_t maximum_semaphores
);
#include <rtems/itron/semaphore.inl>
+4 -4
View File
@@ -39,7 +39,7 @@ extern "C" {
typedef struct {
unsigned32 unused; /* no use for the API extension */
uint32_t unused; /* no use for the API extension */
/* structure for ITRON identified yet */
} ITRON_API_Control;
@@ -56,7 +56,7 @@ ITRON_EXTERN Objects_Information _ITRON_Task_Information;
ITRON_EXTERN itron_initialization_tasks_table
*_ITRON_Task_User_initialization_tasks;
ITRON_EXTERN unsigned32 _ITRON_Task_Number_of_initialization_tasks;
ITRON_EXTERN uint32_t _ITRON_Task_Number_of_initialization_tasks;
/*
@@ -66,8 +66,8 @@ ITRON_EXTERN unsigned32 _ITRON_Task_Number_of_initialization_tasks;
*/
void _ITRON_Task_Manager_initialization(
unsigned32 maximum_tasks,
unsigned32 number_of_initialization_tasks,
uint32_t maximum_tasks,
uint32_t number_of_initialization_tasks,
itron_initialization_tasks_table *user_tasks
);
+2 -2
View File
@@ -25,7 +25,7 @@ extern "C" {
typedef struct {
ITRON_Objects_Control Object;
unsigned32 XXX_more_stuff_goes_here;
uint32_t XXX_more_stuff_goes_here;
} ITRON_Variable_memory_pool_Control;
/*
@@ -44,7 +44,7 @@ ITRON_EXTERN Objects_Information _ITRON_Variable_memory_pool_Information;
*/
void _ITRON_Variable_memory_pool_Manager_initialization(
unsigned32 maximum_variable_memory_pools
uint32_t maximum_variable_memory_pools
);
/*
@@ -153,7 +153,7 @@ RTEMS_INLINE_ROUTINE boolean _ITRON_Semaphore_Is_null (
*/
RTEMS_INLINE_ROUTINE ER _ITRON_Semaphore_Translate_core_semaphore_return_code (
unsigned32 the_semaphore_status
uint32_t the_semaphore_status
)
{
/* XXX need to be able to return "E_RLWAI" */
@@ -72,7 +72,7 @@ extern "C" {
/* XXX fix me */
static ER _ITRON_Semaphore_Translate_core_semaphore_return_code (
unsigned32 the_semaphore_status
uint32_t the_semaphore_status
)
{
/* XXX need to be able to return "E_RLWAI" */
+1 -1
View File
@@ -29,7 +29,7 @@
*/
void _ITRON_Eventflags_Manager_initialization(
unsigned32 maximum_eventflags
uint32_t maximum_eventflags
)
{
_Objects_Initialize_information(
+1 -1
View File
@@ -30,7 +30,7 @@
*/
void _ITRON_Fixed_memory_pool_Manager_initialization(
unsigned32 maximum_fixed_memory_pools
uint32_t maximum_fixed_memory_pools
)
{
_Objects_Initialize_information(
+1 -1
View File
@@ -33,7 +33,7 @@
*/
void _ITRON_Semaphore_Manager_initialization(
unsigned32 maximum_semaphores
uint32_t maximum_semaphores
)
{
_Objects_Initialize_information(
+1 -1
View File
@@ -32,7 +32,7 @@
*/
void _ITRON_Mailbox_Manager_initialization(
unsigned32 maximum_mailboxes
uint32_t maximum_mailboxes
)
{
_Objects_Initialize_information(
+1 -1
View File
@@ -33,7 +33,7 @@
*/
void _ITRON_Message_buffer_Manager_initialization(
unsigned32 maximum_message_buffers
uint32_t maximum_message_buffers
)
{
_Objects_Initialize_information(
+1 -1
View File
@@ -29,7 +29,7 @@
*/
void _ITRON_Port_Manager_initialization(
unsigned32 maximum_ports
uint32_t maximum_ports
)
{
_Objects_Initialize_information(
+1 -1
View File
@@ -31,7 +31,7 @@ ER snd_msg(
{
register ITRON_Mailbox_Control *the_mailbox;
Objects_Locations location;
unsigned32 message_priority;
uint32_t message_priority;
void *message_contents;
CORE_message_queue_Status msg_status;
+4 -4
View File
@@ -79,8 +79,8 @@ User_extensions_routine _ITRON_Task_Delete_extension(
void _ITRON_Task_Initialize_user_tasks( void )
{
unsigned32 index;
unsigned32 maximum;
uint32_t index;
uint32_t maximum;
ER return_value;
itron_initialization_tasks_table *user_tasks;
@@ -178,8 +178,8 @@ User_extensions_Control _ITRON_Task_User_extensions = {
*/
void _ITRON_Task_Manager_initialization(
unsigned32 maximum_tasks,
unsigned32 number_of_initialization_tasks,
uint32_t maximum_tasks,
uint32_t number_of_initialization_tasks,
itron_initialization_tasks_table *user_tasks
)
{
+1 -1
View File
@@ -34,7 +34,7 @@ ER trcv_msg(
Watchdog_Interval interval;
boolean wait;
Objects_Locations location;
unsigned32 size;
uint32_t size;
if (!ppk_msg)
return E_PAR;
+1 -1
View File
@@ -30,7 +30,7 @@
*/
void _ITRON_Variable_memory_pool_Manager_initialization(
unsigned32 maximum_variable_memory_pools
uint32_t maximum_variable_memory_pools
)
{
_Objects_Initialize_information(