diff options
| author | Gareth Rees | 2013-03-08 12:10:44 +0000 |
|---|---|---|
| committer | Gareth Rees | 2013-03-08 12:10:44 +0000 |
| commit | 8232da84809ee4a2ea9fc63e8ba294bfd87920d8 (patch) | |
| tree | 13df704221f460ec15e278e7d1abb99969597f6f /mps | |
| parent | d9c1b37fad2e1f7cb3da1c738e7361e924de39f8 (diff) | |
| download | emacs-8232da84809ee4a2ea9fc63e8ba294bfd87920d8.tar.gz emacs-8232da84809ee4a2ea9fc63e8ba294bfd87920d8.zip | |
Private symbols _mps_sac_s and _mps_sac_freelist_block_s now start with underscores, as per external interface policy.
Copied from Perforce
Change: 181092
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps')
| -rw-r--r-- | mps/code/mps.h | 12 | ||||
| -rw-r--r-- | mps/code/sac.c | 2 | ||||
| -rw-r--r-- | mps/code/sac.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/mps/code/mps.h b/mps/code/mps.h index e47a4ca8e34..d4422c85f47 100644 --- a/mps/code/mps.h +++ b/mps/code/mps.h | |||
| @@ -142,22 +142,22 @@ typedef struct mps_ap_s { /* allocation point descriptor */ | |||
| 142 | /* Segregated-fit Allocation Caches */ | 142 | /* Segregated-fit Allocation Caches */ |
| 143 | /* .sac: Keep in sync with <code/sac.h>. */ | 143 | /* .sac: Keep in sync with <code/sac.h>. */ |
| 144 | 144 | ||
| 145 | typedef struct mps_sac_s *mps_sac_t; | 145 | typedef struct _mps_sac_s *mps_sac_t; |
| 146 | 146 | ||
| 147 | #define MPS_SAC_CLASS_LIMIT ((size_t)8) | 147 | #define MPS_SAC_CLASS_LIMIT ((size_t)8) |
| 148 | 148 | ||
| 149 | typedef struct mps_sac_freelist_block_s { | 149 | typedef struct _mps_sac_freelist_block_s { |
| 150 | size_t _size; | 150 | size_t _size; |
| 151 | size_t _count; | 151 | size_t _count; |
| 152 | size_t _count_max; | 152 | size_t _count_max; |
| 153 | mps_addr_t _blocks; | 153 | mps_addr_t _blocks; |
| 154 | } mps_sac_freelist_block_s; | 154 | } _mps_sac_freelist_block_s; |
| 155 | 155 | ||
| 156 | typedef struct mps_sac_s { | 156 | typedef struct _mps_sac_s { |
| 157 | size_t _middle; | 157 | size_t _middle; |
| 158 | mps_bool_t _trapped; | 158 | mps_bool_t _trapped; |
| 159 | mps_sac_freelist_block_s _freelists[2 * MPS_SAC_CLASS_LIMIT]; | 159 | _mps_sac_freelist_block_s _freelists[2 * MPS_SAC_CLASS_LIMIT]; |
| 160 | } mps_sac_s; | 160 | } _mps_sac_s; |
| 161 | 161 | ||
| 162 | /* .sacc: Keep in sync with <code/sac.h>. */ | 162 | /* .sacc: Keep in sync with <code/sac.h>. */ |
| 163 | typedef struct mps_sac_class_s { | 163 | typedef struct mps_sac_class_s { |
diff --git a/mps/code/sac.c b/mps/code/sac.c index 3b82cd846d8..2a87f9a2810 100644 --- a/mps/code/sac.c +++ b/mps/code/sac.c | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | SRCID(sac, "$Id$"); | 10 | SRCID(sac, "$Id$"); |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | typedef mps_sac_freelist_block_s *SACFreeListBlock; | 13 | typedef _mps_sac_freelist_block_s *SACFreeListBlock; |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | /* SACCheck -- check function for SACs */ | 16 | /* SACCheck -- check function for SACs */ |
diff --git a/mps/code/sac.h b/mps/code/sac.h index 78e676125d1..bd52a35daff 100644 --- a/mps/code/sac.h +++ b/mps/code/sac.h | |||
| @@ -25,7 +25,7 @@ typedef struct SACStruct { | |||
| 25 | Pool pool; | 25 | Pool pool; |
| 26 | Count classesCount; /* number of classes */ | 26 | Count classesCount; /* number of classes */ |
| 27 | Index middleIndex; /* index of the middle */ | 27 | Index middleIndex; /* index of the middle */ |
| 28 | mps_sac_s esac_s; /* variable length, must be last */ | 28 | _mps_sac_s esac_s; /* variable length, must be last */ |
| 29 | } SACStruct; | 29 | } SACStruct; |
| 30 | 30 | ||
| 31 | #define SACOfExternalSAC(esac) PARENT(SACStruct, esac_s, esac) | 31 | #define SACOfExternalSAC(esac) PARENT(SACStruct, esac_s, esac) |