Changeset 91b8fb9e in rtems


Ignore:
Timestamp:
Jan 31, 2008, 2:14:27 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
b3c73d83
Parents:
7d17145
Message:

2008-01-31 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/object.h, score/src/objectgetinfo.c, rtems/include/rtems/rtems/object.h, rtems/src/rtemsobjectgetapiclassname.c, rtems/src/rtemsobjectgetclassinfo.c: class is a C++ keyword and cannot be used as a parameter.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7d17145 r91b8fb9e  
     12008-01-31      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/include/rtems/score/object.h, score/src/objectgetinfo.c,
     4        rtems/include/rtems/rtems/object.h,
     5        rtems/src/rtemsobjectgetapiclassname.c,
     6        rtems/src/rtemsobjectgetclassinfo.c: class is a C++ keyword and
     7        cannot be used as a parameter.
     8
    192008-01-30      Joel Sherrill <joel.sherrill@OARcorp.com>
    210
  • cpukit/rtems/include/rtems/rtems/object.h

    r7d17145 r91b8fb9e  
    2121#endif
    2222
     23#include <stdint.h>
    2324#include <rtems/score/object.h>
    2425#include <rtems/rtems/status.h>
     
    288289 *  @a class from the specified @a api.
    289290 *
    290  *  @param[in] api is the API for the class
    291  *  @param[in] class is the class to obtain the name of
     291 *  @param[in] the_api is the API for the class
     292 *  @param[in] the_class is the class to obtain the name of
    292293 *
    293294 *  @return If successful, this method returns the name of
     
    296297 */
    297298const char *rtems_object_get_api_class_name(
    298   uint32_t api,
    299   uint32_t class
     299  uint32_t the_api,
     300  uint32_t the_class
    300301);
    301302
     
    304305 *
    305306 *  This method returns a string containing the name of the
    306  *  @a class from the specified @a api.
    307  *
    308  *  @param[in] api is the API for the class
    309  *  @param[in] class is the class to obtain information about
     307 *  @a the_class from the specified @a api.
     308 *
     309 *  @param[in] the_api is the API for the class
     310 *  @param[in] the_class is the class to obtain information about
    310311 *  @param[in] info points to the information structure to fill in
    311312 *
     
    316317 */
    317318rtems_status_code rtems_object_get_class_information(
    318   uint32_t                            api,
    319   uint32_t                            class,
     319  uint32_t                            the_api,
     320  uint32_t                            the_class,
    320321  rtems_object_api_class_information *info
    321322);
  • cpukit/rtems/src/rtemsobjectgetapiclassname.c

    r7d17145 r91b8fb9e  
    7171
    7272const char *rtems_object_get_api_class_name(
    73   uint32_t api,
    74   uint32_t class
     73  uint32_t the_api,
     74  uint32_t the_class
    7575)
    7676{
     
    7878  const rtems_assoc_t *class_assoc;
    7979 
    80   switch (api) {
     80  switch (the_api) {
    8181    case OBJECTS_INTERNAL_API:
    8282      api_assoc = rtems_object_api_internal_assoc;
     
    9898      return "BAD API";
    9999  }
    100   class_assoc = rtems_assoc_ptr_by_local( api_assoc, class );
     100  class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
    101101  if ( class_assoc )
    102102    return class_assoc->name;
  • cpukit/rtems/src/rtemsobjectgetclassinfo.c

    r7d17145 r91b8fb9e  
    2525
    2626rtems_status_code rtems_object_get_class_information(
    27   uint32_t                            api,
    28   uint32_t                            class,
     27  uint32_t                            the_api,
     28  uint32_t                            the_class,
    2929  rtems_object_api_class_information *info
    3030)
     
    4040    return RTEMS_INVALID_ADDRESS;
    4141
    42   obj_info = _Objects_Get_information( api, class );
     42  obj_info = _Objects_Get_information( the_api, the_class );
    4343  if ( !obj_info )
    4444    return RTEMS_INVALID_NUMBER;
  • cpukit/score/include/rtems/score/object.h

    r7d17145 r91b8fb9e  
    804804 *  the existence of any objects created by the API.
    805805 *
    806  *  @param[in] api indicates the API for the information we want
    807  *  @param[in] class indicates the Class for the information we want
     806 *  @param[in] the_api indicates the API for the information we want
     807 *  @param[in] the_class indicates the Class for the information we want
    808808 *
    809809 *  @return This method returns a pointer to the Object Information Table
     
    811811 */
    812812Objects_Information *_Objects_Get_information(
    813   Objects_APIs   api,
    814   uint32_t       class
     813  Objects_APIs   the_api,
     814  uint32_t       the_class
    815815);
    816816
  • cpukit/score/src/objectgetinfo.c

    r7d17145 r91b8fb9e  
    2020
    2121Objects_Information *_Objects_Get_information(
    22   Objects_APIs   api,
    23   uint32_t       class
     22  Objects_APIs   the_api,
     23  uint32_t       the_class
    2424)
    2525{
    2626  Objects_Information *info;
    2727
    28   if ( !_Objects_Is_api_valid( api ) )
     28  if ( !_Objects_Is_api_valid( the_api ) )
    2929    return NULL;
    3030
    31   if ( !class || class > _Objects_API_maximum_class(api) )
     31  if ( !the_class || the_class > _Objects_API_maximum_class(the_api) )
    3232    return NULL;
    3333
    34   info = _Objects_Information_table[ api ][ class ];
     34  info = _Objects_Information_table[ the_api ][ the_class ];
    3535  if ( !info )
    3636    return NULL;
Note: See TracChangeset for help on using the changeset viewer.