summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-12 14:54:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-12 14:54:13 +0000
commit95bb27997351eb2f673157c1b199afff9348b93d (patch)
tree0736584c9dda74f917f7830dc00b3a79acc0e273 /c
parentAdded per-task variable data stucture (rtems_task_variable_t), (diff)
downloadrtems-95bb27997351eb2f673157c1b199afff9348b93d.tar.bz2
Used typedef so all "struct rtems_task_variable_t" uses are now
just "rtems_task_variable_t".
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/rtems/include/rtems/rtems/tasks.h14
-rw-r--r--c/src/exec/rtems/src/tasks.c8
-rw-r--r--c/src/exec/rtems/src/taskvariableadd.c8
-rw-r--r--c/src/exec/rtems/src/taskvariabledelete.c8
4 files changed, 19 insertions, 19 deletions
diff --git a/c/src/exec/rtems/include/rtems/rtems/tasks.h b/c/src/exec/rtems/include/rtems/rtems/tasks.h
index 3627cdd627..65bf95a9c6 100644
--- a/c/src/exec/rtems/include/rtems/rtems/tasks.h
+++ b/c/src/exec/rtems/include/rtems/rtems/tasks.h
@@ -150,11 +150,11 @@ typedef struct {
* Per task variable structure
*/
-struct rtems_task_variable_t {
+typedef struct {
struct rtems_task_variable_t *next;
int *ptr;
int var;
-};
+} rtems_task_variable_t;
/*
* This is the API specific information required by each thread for
@@ -163,11 +163,11 @@ struct rtems_task_variable_t {
typedef struct {
- unsigned32 Notepads[ RTEMS_NUMBER_NOTEPADS ];
- rtems_event_set pending_events;
- rtems_event_set event_condition;
- ASR_Information Signal;
- struct rtems_task_variable_t *task_variables;
+ unsigned32 Notepads[ RTEMS_NUMBER_NOTEPADS ];
+ rtems_event_set pending_events;
+ rtems_event_set event_condition;
+ ASR_Information Signal;
+ rtems_task_variable_t *task_variables;
} RTEMS_API_Control;
/*
diff --git a/c/src/exec/rtems/src/tasks.c b/c/src/exec/rtems/src/tasks.c
index 283d5e8f20..e05aecca3f 100644
--- a/c/src/exec/rtems/src/tasks.c
+++ b/c/src/exec/rtems/src/tasks.c
@@ -94,8 +94,8 @@ User_extensions_routine _RTEMS_tasks_Delete_extension(
Thread_Control *deleted
)
{
- RTEMS_API_Control *api;
- struct rtems_task_variable_t *tvp, *next;
+ RTEMS_API_Control *api;
+ rtems_task_variable_t *tvp, *next;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
@@ -132,8 +132,8 @@ void _RTEMS_tasks_Switch_extension(
Thread_Control *heir
)
{
- RTEMS_API_Control *api;
- struct rtems_task_variable_t *tvp;
+ RTEMS_API_Control *api;
+ rtems_task_variable_t *tvp;
/*
* Per Task Variables
diff --git a/c/src/exec/rtems/src/taskvariableadd.c b/c/src/exec/rtems/src/taskvariableadd.c
index 9307612fe6..b3649ec8c3 100644
--- a/c/src/exec/rtems/src/taskvariableadd.c
+++ b/c/src/exec/rtems/src/taskvariableadd.c
@@ -28,10 +28,10 @@ rtems_status_code rtems_task_variable_add(
int *ptr
)
{
- Thread_Control *the_thread;
- Objects_Locations location;
- RTEMS_API_Control *api;
- struct rtems_task_variable_t *tvp, *new;
+ Thread_Control *the_thread;
+ Objects_Locations location;
+ RTEMS_API_Control *api;
+ rtems_task_variable_t *tvp, *new;
the_thread = _Thread_Get (tid, &location);
switch (location) {
diff --git a/c/src/exec/rtems/src/taskvariabledelete.c b/c/src/exec/rtems/src/taskvariabledelete.c
index 8bc214665b..551e7057a9 100644
--- a/c/src/exec/rtems/src/taskvariabledelete.c
+++ b/c/src/exec/rtems/src/taskvariabledelete.c
@@ -28,10 +28,10 @@ rtems_status_code rtems_task_variable_delete(
int *ptr
)
{
- Thread_Control *the_thread;
- Objects_Locations location;
- RTEMS_API_Control *api;
- struct rtems_task_variable_t *tvp, *prev;
+ Thread_Control *the_thread;
+ Objects_Locations location;
+ RTEMS_API_Control *api;
+ rtems_task_variable_t *tvp, *prev;
prev = NULL;