projects
/
SXSI
/
TextCollection.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug swcsa
[SXSI/TextCollection.git]
/
swcsa
/
utils
/
basics.h
diff --git
a/swcsa/utils/basics.h
b/swcsa/utils/basics.h
index
01741b5
..
c9089cc
100755
(executable)
--- a/
swcsa/utils/basics.h
+++ b/
swcsa/utils/basics.h
@@
-1,7
+1,7
@@
// Basics
// Basics
-
+
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
#ifndef BASICSINCLUDED
#define BASICSINCLUDED
@@
-9,7
+9,7
@@
extern "C" {
#endif
extern "C" {
#endif
- // Includes
+ // Includes
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdio.h>
@@
-23,13
+23,13
@@
extern "C" {
// Memory management
// Memory management
-
//#define malloc(n) Malloc(n
)
-
//#define free(p) Free(p
)
-
//#define realloc(p,n) Realloc(p,n
)
+
#define malloc(n) Malloc_(n,__LINE__,__FILE__
)
+
#define free(p) Free_(p,__LINE__,__FILE__
)
+
#define realloc(p,n) Realloc_(p,n,__LINE__,__FILE__
)
-
//static void *Malloc (size_t n
);
-
//static void Free (void *p
);
-
//static void *Realloc (void *p, size_t n
);
+
void *Malloc_ (size_t n, size_t l, char * file
);
+
void Free_ (void *p, size_t l, char * file
);
+
void *Realloc_ (void *p, size_t n, size_t l, char * file
);
// Data types
// Data types