diff --git a/src/memory.c b/src/memory.c
index bec045671e5a8f3202cefb02bd7f615cb5913c4d..d3c5e8ccf8364e55b875f59fa472ab986d460fb4 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
#include "glob.h"
#include <stdio.h>
#include <stdlib.h>
-#include <malloc.h>
#include <string.h>
#include "error.h"
#include "files.h"
if(!resl[h]) return;
--resl[h];
}
+
+int M_locked (int h) {
+ return (h != -1) && (h != 0xFFFF) && (resl[h & (-1 - 0x8000)] != 0);
+}
+
+int M_was_locked (int h) {
+ return (h != -1) && (h != 0xFFFF) && (resp[h & (-1 - 0x8000)] != NULL);
+}