Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2005-09-30 01:14:42 +0400
committerMiguel de Icaza <miguel@gnome.org>2005-09-30 01:14:42 +0400
commitf3969aff194270fff721918baa3c187790562320 (patch)
treebc2805209d13464ee831cae28b498da3f3016110 /support
parent9261909daaa996a390429b3bec3e753d0f580227 (diff)
Add
svn path=/trunk/mono/; revision=51013
Diffstat (limited to 'support')
-rw-r--r--support/Makefile.am1
-rw-r--r--support/supportw.c18
2 files changed, 5 insertions, 14 deletions
diff --git a/support/Makefile.am b/support/Makefile.am
index c73de3351bc..847ccae0b35 100644
--- a/support/Makefile.am
+++ b/support/Makefile.am
@@ -82,6 +82,7 @@ libMonoSupportW_la_SOURCES = \
supportw.h
libMonoSupportW_la_LIBADD = \
+ ../mono/io-layer/libwapi.la \
$(GLIB_LIBS)
#
diff --git a/support/supportw.c b/support/supportw.c
index f1fa2d16ff7..650a67c55c5 100644
--- a/support/supportw.c
+++ b/support/supportw.c
@@ -19,6 +19,10 @@
#include "mono/metadata/object.h"
#include "mono/metadata/tabledefs.h"
#include "mono/io-layer/wapi.h"
+#include <limits.h> /* for PAGESIZE */
+#ifndef PAGESIZE
+#define PAGESIZE 4096
+#endif
typedef struct {
const char *fname;
@@ -28,20 +32,6 @@ typedef struct {
gpointer FindWindowExW (gpointer hwndParent, gpointer hwndChildAfter,
const char *classw, const char *window);
-gpointer HeapAlloc (gpointer unused1, gint32 unused2, gint32 nbytes);
-gpointer HeapCreate (gint32 flags, gint32 initial_size, gint32 max_size);
-gboolean HeapSetInformation (gpointer handle, gpointer heap_info_class,
- gpointer heap_info, gint32 head_info_length);
-
-gboolean HeapQueryInformation (gpointer handle, gpointer heap_info_class,
- gpointer heap_info, gint32 head_info_length, gint32 *ret_length);
-
-gpointer HeapAlloc (gpointer handle, gint32 flags, gint32 nbytes);
-gpointer HeapReAlloc (gpointer handle, gint32 flags, gpointer mem, gint32 nbytes);
-gint32 HeapSize (gpointer handle, gint32 flags, gpointer mem);
-gboolean HeapFree (gpointer handle, gint32 flags, gpointer mem);
-gboolean HeapValidate (gpointer handle, gpointer mem);
-gboolean HeapDestroy (gpointer handle);
gpointer GetProcessHeap (void);
static FnPtr functions [] = {