mirror of
https://github.com/t-crest/rtems.git
synced 2025-12-05 15:15:48 +00:00
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1460/cpukit * user/object.t: Change return type on methods accessing portions of RTEMS Ids to int. This allows -1 to be return on error.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
PR 1460/cpukit
|
||||||
|
* user/object.t: Change return type on methods accessing portions of
|
||||||
|
RTEMS Ids to int. This allows -1 to be return on error.
|
||||||
|
|
||||||
2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* ada_user/Makefile.am, ada_user/ada_user.texi, user/Makefile.am,
|
* ada_user/Makefile.am, ada_user/ada_user.texi, user/Makefile.am,
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ its constituent parts and "pretty-printed."
|
|||||||
@example
|
@example
|
||||||
void prettyPrintObjectId(rtems_id id)
|
void prettyPrintObjectId(rtems_id id)
|
||||||
@{
|
@{
|
||||||
uint32_t tmpAPI, tmpClass;
|
int tmpAPI, tmpClass;
|
||||||
|
|
||||||
tmpAPI = rtems_object_id_get_api(id),
|
tmpAPI = rtems_object_id_get_api(id),
|
||||||
tmpClass = rtems_object_id_get_class(id),
|
tmpClass = rtems_object_id_get_class(id),
|
||||||
@@ -380,7 +380,7 @@ from the RTEMS Workspace to make a copy of the string
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_id_get_api
|
@findex rtems_object_id_get_api
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_id_get_api(
|
int rtems_object_id_get_api(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@@ -422,7 +422,7 @@ This directive does NOT validate the @code{id} provided.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_id_get_class
|
@findex rtems_object_id_get_class
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_id_get_class(
|
int rtems_object_id_get_class(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@@ -464,7 +464,7 @@ This directive does NOT validate the @code{id} provided.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_id_get_node
|
@findex rtems_object_id_get_node
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_id_get_node(
|
int rtems_object_id_get_node(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@@ -506,7 +506,7 @@ This directive does NOT validate the @code{id} provided.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_id_get_index
|
@findex rtems_object_id_get_index
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_id_get_index(
|
int rtems_object_id_get_index(
|
||||||
rtems_id id
|
rtems_id id
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@@ -549,10 +549,10 @@ This directive does NOT validate the @code{id} provided.
|
|||||||
@findex rtems_build_id
|
@findex rtems_build_id
|
||||||
@example
|
@example
|
||||||
rtems_id rtems_build_id(
|
rtems_id rtems_build_id(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class,
|
int the_class,
|
||||||
uint32_t the_node,
|
int the_node,
|
||||||
uint32_t the_index
|
int the_index
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
@@ -598,7 +598,7 @@ or the Object id returned.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_id_api_minimum
|
@findex rtems_object_id_api_minimum
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_id_api_minimum(void);
|
int rtems_object_id_api_minimum(void);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
|
|
||||||
@@ -634,7 +634,7 @@ This directive is strictly local and does not impact task scheduling.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_id_api_maximum
|
@findex rtems_object_id_api_maximum
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_id_api_maximum(void);
|
int rtems_object_id_api_maximum(void);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
|
|
||||||
@@ -670,8 +670,8 @@ This directive is strictly local and does not impact task scheduling.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_api_minimum_class
|
@findex rtems_object_api_minimum_class
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_api_minimum_class(
|
int rtems_object_api_minimum_class(
|
||||||
uint32_t api
|
int api
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
@@ -714,8 +714,8 @@ This directive is strictly local and does not impact task scheduling.
|
|||||||
@ifset is-C
|
@ifset is-C
|
||||||
@findex rtems_object_api_maximum_class
|
@findex rtems_object_api_maximum_class
|
||||||
@example
|
@example
|
||||||
uint32_t rtems_object_api_maximum_class(
|
int rtems_object_api_maximum_class(
|
||||||
uint32_t api
|
int api
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
@@ -760,7 +760,7 @@ This directive is strictly local and does not impact task scheduling.
|
|||||||
@findex rtems_object_get_api_name
|
@findex rtems_object_get_api_name
|
||||||
@example
|
@example
|
||||||
const char *rtems_object_get_api_name(
|
const char *rtems_object_get_api_name(
|
||||||
uint32_t api
|
int api
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
@@ -806,8 +806,8 @@ or free it.
|
|||||||
@findex rtems_object_get_api_class_name
|
@findex rtems_object_get_api_class_name
|
||||||
@example
|
@example
|
||||||
const char *rtems_object_get_api_class_name(
|
const char *rtems_object_get_api_class_name(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class
|
int the_class
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
@@ -857,8 +857,8 @@ or free it.
|
|||||||
@findex rtems_object_get_class_information
|
@findex rtems_object_get_class_information
|
||||||
@example
|
@example
|
||||||
rtems_status_code rtems_object_get_class_information(
|
rtems_status_code rtems_object_get_class_information(
|
||||||
uint32_t the_api,
|
int the_api,
|
||||||
uint32_t the_class,
|
int the_class,
|
||||||
rtems_object_api_class_information *info
|
rtems_object_api_class_information *info
|
||||||
);
|
);
|
||||||
@end example
|
@end example
|
||||||
@@ -894,9 +894,9 @@ follows:
|
|||||||
typedef struct @{
|
typedef struct @{
|
||||||
rtems_id minimum_id;
|
rtems_id minimum_id;
|
||||||
rtems_id maximum_id;
|
rtems_id maximum_id;
|
||||||
uint32_t maximum;
|
int maximum;
|
||||||
bool auto_extend;
|
bool auto_extend;
|
||||||
uint32_t unallocated;
|
int unallocated;
|
||||||
@} rtems_object_api_class_information;
|
@} rtems_object_api_class_information;
|
||||||
@end example
|
@end example
|
||||||
@end ifset
|
@end ifset
|
||||||
|
|||||||
Reference in New Issue
Block a user