mirror of https://github.com/rusefi/lua.git
deletion of 'include mm.h'
This commit is contained in:
parent
2f1de3b1e1
commit
fb23cd2e26
4
lua.stx
4
lua.stx
|
@ -1,13 +1,11 @@
|
||||||
%{
|
%{
|
||||||
|
|
||||||
char *rcs_luastx = "$Id: lua.stx,v 2.9 1994/10/11 14:38:17 celes Exp celes $";
|
char *rcs_luastx = "$Id: lua.stx,v 2.10 1994/10/17 19:05:32 celes Exp roberto $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "mm.h"
|
|
||||||
|
|
||||||
#include "opcode.h"
|
#include "opcode.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "inout.h"
|
#include "inout.h"
|
||||||
|
|
39
mm.h
39
mm.h
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
** mm.h
|
|
||||||
** Waldemar Celes Filho
|
|
||||||
** Sep 16, 1992
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef mm_h
|
|
||||||
#define mm_h
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
#ifdef _MM_
|
|
||||||
|
|
||||||
/* switch off the debugger functions */
|
|
||||||
#define malloc(s) MmMalloc(s,__FILE__,__LINE__)
|
|
||||||
#define calloc(n,s) MmCalloc(n,s,__FILE__,__LINE__)
|
|
||||||
#define realloc(a,s) MmRealloc(a,s,__FILE__,__LINE__,#a)
|
|
||||||
#define free(a) MmFree(a,__FILE__,__LINE__,#a)
|
|
||||||
#define strdup(s) MmStrdup(s,__FILE__,__LINE__)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef void (*Ferror) (char *);
|
|
||||||
|
|
||||||
/* Exported functions */
|
|
||||||
void MmInit (Ferror f, Ferror w);
|
|
||||||
void *MmMalloc (unsigned size, char *file, int line);
|
|
||||||
void *MmCalloc (unsigned n, unsigned size, char *file, int line);
|
|
||||||
void MmFree (void *a, char *file, int line, char *var);
|
|
||||||
void *MmRealloc (void *old, unsigned size, char *file, int line, char *var);
|
|
||||||
char *MmStrdup (char *s, char *file, int line);
|
|
||||||
unsigned MmGetBytes (void);
|
|
||||||
void MmListAllocated (void);
|
|
||||||
void MmCheck (void);
|
|
||||||
void MmStatistics (void);
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue