Changeset b72e368c in rtems


Ignore:
Timestamp:
Jan 4, 2002, 6:29:03 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a02224e
Parents:
e180a77e
Message:

2002-01-04 Ralf Corsepius <corsepiu@…>

  • include/rtems/seterr.h: Add do {..} while (0) in defines. Rename set_errno_and_return_minus_one into rtems_set_errno_and_return_minus_one.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/ChangeLog

    re180a77e rb72e368c  
     12002-01-04      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * include/rtems/seterr.h: Add do {..} while (0) in defines.
     4        Rename set_errno_and_return_minus_one into
     5        rtems_set_errno_and_return_minus_one.
     6
    172001-12-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/exec/score/include/rtems/seterr.h

    re180a77e rb72e368c  
    1313#define __RTEMS_SET_ERRNO_h
    1414 
    15 #define set_errno_and_return_minus_one( _error ) \
    16   { errno = (_error); return -1; }
     15#define rtems_set_errno_and_return_minus_one( _error ) \
     16  do { errno = (_error); return -1; } while(0)
    1717
    18 #define set_errno_and_return_minus_one_cast( _error, _cast ) \
    19   { errno = (_error); return (_cast) -1; }
     18#define rtems_set_errno_and_return_minus_one_cast( _error, _cast ) \
     19  do { errno = (_error); return (_cast) -1; } while(0)
    2020
    2121#endif
  • cpukit/score/ChangeLog

    re180a77e rb72e368c  
     12002-01-04      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * include/rtems/seterr.h: Add do {..} while (0) in defines.
     4        Rename set_errno_and_return_minus_one into
     5        rtems_set_errno_and_return_minus_one.
     6
    172001-12-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/score/include/rtems/seterr.h

    re180a77e rb72e368c  
    1313#define __RTEMS_SET_ERRNO_h
    1414 
    15 #define set_errno_and_return_minus_one( _error ) \
    16   { errno = (_error); return -1; }
     15#define rtems_set_errno_and_return_minus_one( _error ) \
     16  do { errno = (_error); return -1; } while(0)
    1717
    18 #define set_errno_and_return_minus_one_cast( _error, _cast ) \
    19   { errno = (_error); return (_cast) -1; }
     18#define rtems_set_errno_and_return_minus_one_cast( _error, _cast ) \
     19  do { errno = (_error); return (_cast) -1; } while(0)
    2020
    2121#endif
Note: See TracChangeset for help on using the changeset viewer.