aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorGareth Rees2013-03-08 14:03:10 +0000
committerGareth Rees2013-03-08 14:03:10 +0000
commit2dd7d8f59982678082ecacb85402927b8dec77b5 (patch)
tree2978e0385dc36a495662c699961c456e77b2b053 /mps/code
parentdebb156e8d226acac78751686d2b833a8a893768 (diff)
downloademacs-2dd7d8f59982678082ecacb85402927b8dec77b5.tar.gz
emacs-2dd7d8f59982678082ecacb85402927b8dec77b5.zip
Follow policy of not defining symbols from mpstd.h in the external interface, by removing the definition of mps_t_word from mps.h.
Copied from Perforce Change: 181096 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/mps.h7
-rw-r--r--mps/code/mv2test.c2
2 files changed, 3 insertions, 6 deletions
diff --git a/mps/code/mps.h b/mps/code/mps.h
index d4422c85f47..cc4397e7252 100644
--- a/mps/code/mps.h
+++ b/mps/code/mps.h
@@ -36,13 +36,11 @@
36 * Then Microsoft made unsigned long shorter than a pointer on Win64. Ugh. 36 * Then Microsoft made unsigned long shorter than a pointer on Win64. Ugh.
37 */ 37 */
38 38
39#ifndef MPS_T_WORD
40#if defined(_MSC_VER) && defined(_WIN32) && defined(_WIN64) && defined(_M_X64) 39#if defined(_MSC_VER) && defined(_WIN32) && defined(_WIN64) && defined(_M_X64)
41#define MPS_T_WORD unsigned __int64 40typedef unsigned __int64 mps_word_t;
42#else 41#else
43#define MPS_T_WORD unsigned long /* won't be true on W3I6MV */ 42typedef unsigned long mps_word_t;
44#endif 43#endif
45#endif /* MPS_T_WORD */
46 44
47 45
48/* Abstract Types */ 46/* Abstract Types */
@@ -67,7 +65,6 @@ typedef struct mps_frame_s
67 65
68/* Concrete Types */ 66/* Concrete Types */
69 67
70typedef MPS_T_WORD mps_word_t; /* pointer-sized word */
71typedef int mps_bool_t; /* boolean (int) */ 68typedef int mps_bool_t; /* boolean (int) */
72typedef int mps_res_t; /* result code (int) */ 69typedef int mps_res_t; /* result code (int) */
73typedef void *mps_addr_t; /* managed address (void *) */ 70typedef void *mps_addr_t; /* managed address (void *) */
diff --git a/mps/code/mv2test.c b/mps/code/mv2test.c
index b2a466d529e..f4dacd295d2 100644
--- a/mps/code/mv2test.c
+++ b/mps/code/mv2test.c
@@ -13,7 +13,7 @@
13#include "mpscmvt.h" 13#include "mpscmvt.h"
14#include "mps.h" 14#include "mps.h"
15 15
16typedef MPS_T_WORD mps_count_t; /* machine word (target dep.) */ 16typedef mps_word_t mps_count_t; /* machine word (target dep.) */
17 17
18#include "mpslib.h" 18#include "mpslib.h"
19#include "mpsavm.h" 19#include "mpsavm.h"