aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-10-21 17:00:12 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-10-21 17:00:12 -0200
commitfb23cd2e26163da34e541b64f5cfd6168ce32840 (patch)
tree9f6dbd7a668c074691d77b7f26e031cd9d14e6d2
parent2f1de3b1e14699f86ff762e95531c89b99db4727 (diff)
downloadlua-fb23cd2e26163da34e541b64f5cfd6168ce32840.tar.gz
lua-fb23cd2e26163da34e541b64f5cfd6168ce32840.tar.bz2
lua-fb23cd2e26163da34e541b64f5cfd6168ce32840.zip
deletion of 'include mm.h'
-rw-r--r--lua.stx4
-rw-r--r--mm.h39
2 files changed, 1 insertions, 42 deletions
diff --git a/lua.stx b/lua.stx
index 44c57a80..75971a45 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,13 +1,11 @@
1%{ 1%{
2 2
3char *rcs_luastx = "$Id: lua.stx,v 2.9 1994/10/11 14:38:17 celes Exp celes $"; 3char *rcs_luastx = "$Id: lua.stx,v 2.10 1994/10/17 19:05:32 celes Exp roberto $";
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
7#include <string.h> 7#include <string.h>
8 8
9#include "mm.h"
10
11#include "opcode.h" 9#include "opcode.h"
12#include "hash.h" 10#include "hash.h"
13#include "inout.h" 11#include "inout.h"
diff --git a/mm.h b/mm.h
deleted file mode 100644
index 40fdf84d..00000000
--- a/mm.h
+++ /dev/null
@@ -1,39 +0,0 @@
1/*
2** mm.h
3** Waldemar Celes Filho
4** Sep 16, 1992
5*/
6
7
8#ifndef mm_h
9#define mm_h
10
11#include <stdlib.h>
12
13#ifdef _MM_
14
15/* switch off the debugger functions */
16#define malloc(s) MmMalloc(s,__FILE__,__LINE__)
17#define calloc(n,s) MmCalloc(n,s,__FILE__,__LINE__)
18#define realloc(a,s) MmRealloc(a,s,__FILE__,__LINE__,#a)
19#define free(a) MmFree(a,__FILE__,__LINE__,#a)
20#define strdup(s) MmStrdup(s,__FILE__,__LINE__)
21#endif
22
23typedef void (*Ferror) (char *);
24
25/* Exported functions */
26void MmInit (Ferror f, Ferror w);
27void *MmMalloc (unsigned size, char *file, int line);
28void *MmCalloc (unsigned n, unsigned size, char *file, int line);
29void MmFree (void *a, char *file, int line, char *var);
30void *MmRealloc (void *old, unsigned size, char *file, int line, char *var);
31char *MmStrdup (char *s, char *file, int line);
32unsigned MmGetBytes (void);
33void MmListAllocated (void);
34void MmCheck (void);
35void MmStatistics (void);
36
37
38#endif
39