summaryrefslogtreecommitdiffstats
path: root/private/crt32/h/sizeptr.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/crt32/h/sizeptr.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/crt32/h/sizeptr.h')
-rw-r--r--private/crt32/h/sizeptr.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/private/crt32/h/sizeptr.h b/private/crt32/h/sizeptr.h
new file mode 100644
index 000000000..735622819
--- /dev/null
+++ b/private/crt32/h/sizeptr.h
@@ -0,0 +1,45 @@
+/***
+*sizeptr.h - defines constants based on memory model
+*
+* Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved.
+*
+*Purpose:
+* This file defines the constants SIZEC, SIZED, DIST, BDIST based
+* on the current memory model.
+* SIZEC is for far code models (medium, large).
+* SIZED is for large data models (compact, large).
+* [Internal]
+*
+*Revision History:
+* 08-15-89 GJF Fixed copyright, changed far to _far, near to _near
+* 10-30-89 GJF Fixed copyright (again)
+*
+****/
+
+
+#ifdef M_I86MM
+#undef SIZED
+#define SIZEC
+#endif
+
+#ifdef M_I86CM
+#undef SIZEC
+#define SIZED
+#endif
+
+#ifdef M_I86LM
+#define SIZEC
+#define SIZED
+#endif
+
+#ifdef SS_NE_DS
+#define SIZED
+#endif
+
+#ifdef SIZED
+#define DIST _far
+#define BDIST _near /*bizzare distance*/
+#else
+#define DIST _near
+#define BDIST _far /*bizzare distance*/
+#endif