projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add PTSPAN.
[pintos-anon]
/
src
/
threads
/
malloc.h
diff --git
a/src/threads/malloc.h
b/src/threads/malloc.h
index 231531247b86fc72d015c7595eb8ff3f0ff439c9..2f191557817347e1f9c8d5c6bf6aacc710d79b79 100644
(file)
--- a/
src/threads/malloc.h
+++ b/
src/threads/malloc.h
@@
-1,12
+1,12
@@
-#ifndef
HEADER
_MALLOC_H
-#define
HEADER
_MALLOC_H
+#ifndef
THREADS
_MALLOC_H
+#define
THREADS
_MALLOC_H
-#include
"debug.h"
+#include
<debug.h>
#include <stddef.h>
void malloc_init (void);
#include <stddef.h>
void malloc_init (void);
-void *malloc (size_t)
-
ATTRIBUTE
((malloc));
+void *malloc (size_t)
__attribute__ ((malloc));
+
void *calloc (size_t, size_t) __attribute__
((malloc));
void free (void *);
void free (void *);
-#endif /* malloc.h */
+#endif /*
threads/
malloc.h */