*** empty log message ***

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@1054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2001-03-16 04:38:32 +00:00
commit 7900837853

View file

@ -66,6 +66,7 @@ void *wad_page_alloc(int npages) {
void *m;
m = mmap(NULL, npages*pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, devzero, 0);
if (((long) m) == -1) return 0;
/* printf("page_alloc: %x - %x\n", m, ((char *) m) + npages*pagesize); */
return m;
}
@ -113,7 +114,7 @@ void *wad_malloc(int nbytes) {
wm = (WadMemory *) wad_page_alloc(npalloc);
if (!wm) return 0;
wm->npages = npalloc;
wm->last = sizeof(WadMemory);
wm->last = sizeof(WadMemory) + 8;
wm->next = current;
current = wm;
}