Changeset 533f89f in rtems


Ignore:
Timestamp:
09/18/96 20:48:56 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
857c52f
Parents:
2069773
Message:

modified declaration of CORE_message_queue_Buffer_control to avoid use
of GNU C extension

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/headers/coremsg.h

    r2069773 r533f89f  
    4040 *  The following defines the data types needed to manipulate
    4141 *  the contents of message buffers.
    42  *  Since msgs are variable length we just make a ptr to 1.
     42 *
     43 *  NOTE:  The buffer field is normally longer than a single unsigned32.
     44 *         but since messages are variable length we just make a ptr to 1. 
    4345 */
    4446 
    4547typedef struct {
    4648    unsigned32  size;
    47  
    48 #ifndef __cplusplus
    49                                /* NOTE:   [0] is gcc specific,
    50                                 *   but specifically disallowed by ANSI STD C++
    51                                 * g++ warns about it, so we #ifdef it out to
    52                                 * get rid of warnings when compiled by g++.
    53                                 */
    54     unsigned32  buffer[0];
    55 #endif
    56  
     49    unsigned32  buffer[1];
    5750} CORE_message_queue_Buffer;
    5851 
  • c/src/exec/score/include/rtems/score/coremsg.h

    r2069773 r533f89f  
    4040 *  The following defines the data types needed to manipulate
    4141 *  the contents of message buffers.
    42  *  Since msgs are variable length we just make a ptr to 1.
     42 *
     43 *  NOTE:  The buffer field is normally longer than a single unsigned32.
     44 *         but since messages are variable length we just make a ptr to 1. 
    4345 */
    4446 
    4547typedef struct {
    4648    unsigned32  size;
    47  
    48 #ifndef __cplusplus
    49                                /* NOTE:   [0] is gcc specific,
    50                                 *   but specifically disallowed by ANSI STD C++
    51                                 * g++ warns about it, so we #ifdef it out to
    52                                 * get rid of warnings when compiled by g++.
    53                                 */
    54     unsigned32  buffer[0];
    55 #endif
    56  
     49    unsigned32  buffer[1];
    5750} CORE_message_queue_Buffer;
    5851 
  • cpukit/score/include/rtems/score/coremsg.h

    r2069773 r533f89f  
    4040 *  The following defines the data types needed to manipulate
    4141 *  the contents of message buffers.
    42  *  Since msgs are variable length we just make a ptr to 1.
     42 *
     43 *  NOTE:  The buffer field is normally longer than a single unsigned32.
     44 *         but since messages are variable length we just make a ptr to 1. 
    4345 */
    4446 
    4547typedef struct {
    4648    unsigned32  size;
    47  
    48 #ifndef __cplusplus
    49                                /* NOTE:   [0] is gcc specific,
    50                                 *   but specifically disallowed by ANSI STD C++
    51                                 * g++ warns about it, so we #ifdef it out to
    52                                 * get rid of warnings when compiled by g++.
    53                                 */
    54     unsigned32  buffer[0];
    55 #endif
    56  
     49    unsigned32  buffer[1];
    5750} CORE_message_queue_Buffer;
    5851 
Note: See TracChangeset for help on using the changeset viewer.