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:
2cb0055
)
snapshot: move comments to the right place
author
Brian Norris
<banorris@uci.edu>
Thu, 14 Jun 2012 05:08:57 +0000
(22:08 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 14 Jun 2012 05:08:57 +0000
(22:08 -0700)
snapshot.cc
patch
|
blob
|
history
diff --git
a/snapshot.cc
b/snapshot.cc
index afe02efd851ab39062552f972b3f30e91380a6e1..378f53b5496f131926dff662cf276edbce594195 100644
(file)
--- a/
snapshot.cc
+++ b/
snapshot.cc
@@
-17,8
+17,9
@@
#include <sys/wait.h>
#include <ucontext.h>
#include <sys/wait.h>
#include <ucontext.h>
-//extern declaration definition
#define FAILURE(mesg) { printf("failed in the API: %s with errno relative message: %s\n", mesg, strerror( errno ) ); exit(EXIT_FAILURE); }
#define FAILURE(mesg) { printf("failed in the API: %s with errno relative message: %s\n", mesg, strerror( errno ) ); exit(EXIT_FAILURE); }
+
+/* extern declaration definition */
#if USE_MPROTECT_SNAPSHOT
struct SnapShot * snapshotrecord = NULL;
struct Snapshot_t * sTheRecord = NULL;
#if USE_MPROTECT_SNAPSHOT
struct SnapShot * snapshotrecord = NULL;
struct Snapshot_t * sTheRecord = NULL;
@@
-42,7
+43,7
@@
static ucontext_t savedSnapshotContext;
static ucontext_t savedUserSnapshotContext;
static snapshot_id snapshotid = 0;
#endif
static ucontext_t savedUserSnapshotContext;
static snapshot_id snapshotid = 0;
#endif
-/* Initialize snapshot data structure */
+
#if USE_MPROTECT_SNAPSHOT
/** The initSnapShotRecord method initialized the snapshotting data
#if USE_MPROTECT_SNAPSHOT
/** The initSnapShotRecord method initialized the snapshotting data