projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f9fec
)
mymemory: define the "opposite" of MEMALLOC
author
Brian Norris
<banorris@uci.edu>
Thu, 24 May 2012 17:32:19 +0000
(10:32 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 24 May 2012 17:32:19 +0000
(10:32 -0700)
We may want an identifier to show that a particular class is intended to be
snapshotted.
mymemory.h
patch
|
blob
|
history
diff --git
a/mymemory.h
b/mymemory.h
index 85ef7b0e67528be88d885e85c902723ebe47c5fa..afaffa458300293a9b5691220ace2dc4533ef97f 100644
(file)
--- a/
mymemory.h
+++ b/
mymemory.h
@@
-17,6
+17,9
@@
MYFREE(p);\
}
+/* Empty define; represents opposite of MEMALLOC */
+#define SNAPSHOTALLOC
+
void *MYMALLOC(size_t size);
void MYFREE(void *ptr);