Changeset 4616790 in rtems


Ignore:
Timestamp:
Dec 7, 2007, 2:42:58 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
edb55fd
Parents:
545ae5b
Message:

Eliminate unsigned8, unsigned16, unsigned32. Use size_t, ptrdiff_t, intptr_t for 64bit compliance.

Location:
doc/tools/bmenu
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • doc/tools/bmenu/address.h

    r545ae5b r4616790  
    1414#define __ADDRESSES_h
    1515
     16#include <stddef.h>
     17
    1618/*
    1719 *  _Addresses_Add_offset
     
    2628STATIC INLINE void *_Addresses_Add_offset (
    2729  void       *base,
    28   unsigned32  offset
     30  size_t      offset
    2931);
    3032
     
    4143STATIC INLINE void *_Addresses_Subtract_offset(
    4244  void       *base,
    43   unsigned32  offset
     45  size_t      offset
    4446);
    4547
     
    6870 */
    6971
    70 STATIC INLINE unsigned32 _Addresses_Subtract (
     72STATIC INLINE ptrdiff_t _Addresses_Subtract (
    7173  void *left,
    7274  void *right
  • doc/tools/bmenu/address.inl

    r545ae5b r4616790  
    1414#define __INLINE_ADDRESSES_inl
    1515
     16#include <stddef.h>
     17#include <stdint.h>
     18
    1619/*PAGE
    1720 *
     
    2225STATIC INLINE void *_Addresses_Add_offset (
    2326  void       *base,
    24   unsigned32  offset
     27  size_t      offset
    2528)
    2629{
     
    3639STATIC INLINE void *_Addresses_Subtract_offset (
    3740  void       *base,
    38   unsigned32  offset
     41  size_t      offset
    3942)
    4043{
     
    5558)
    5659{
    57   return (left + (unsigned32)right);
     60  return (left + (ptrdiff_t) right);
    5861}
    5962
     
    6669 */
    6770
    68 STATIC INLINE unsigned32 _Addresses_Subtract (
     71STATIC INLINE ptrdiff_t _Addresses_Subtract (
    6972  void *left,
    7073  void *right
     
    8487)
    8588{
    86     return ( ( (unsigned32)address % 4 ) == 0 );
     89    return ( ( (intptr_t)address % 4 ) == 0 );
    8790}
    8891
  • doc/tools/bmenu/chain.c

    r545ae5b r4616790  
    3131  Chain_Control *the_chain,
    3232  void           *starting_address,
    33   unsigned32     number_nodes,
    34   unsigned32     node_size
     33  size_t         number_nodes,
     34  size_t         node_size
    3535)
    3636{
    37   unsigned32  count;
     37  size_t  count;
    3838  Chain_Node *current;
    3939  Chain_Node *next;
  • doc/tools/bmenu/chain.h

    r545ae5b r4616790  
    1313#ifndef __CHAIN_h
    1414#define __CHAIN_h
     15
     16#include <stddef.h>
    1517
    1618#include "address.h"
     
    6769  Chain_Control *the_chain,
    6870  void          *starting_address,
    69   unsigned32     number_nodes,
    70   unsigned32     node_size
     71  size_t         number_nodes,
     72  size_t         node_size
    7173);
    7274
  • doc/tools/bmenu/system.h

    r545ae5b r4616790  
    99#ifndef __SYSTEM_h
    1010#define __SYSTEM_h
    11 
    12 typedef unsigned int   unsigned32;
    13 typedef unsigned short unsigned16;
    14 typedef unsigned char  unsigned8;
    1511
    1612#define STATIC static
Note: See TracChangeset for help on using the changeset viewer.