From c05d5f98fc181668da38588cda493c349ea58ae7 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Fri, 25 May 2012 18:28:49 -0700 Subject: [PATCH] rename snapshotStack -> SnapshotStack --- main.cc | 4 ++-- snapshot-interface.cc | 12 ++++++------ snapshot-interface.h | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/main.cc b/main.cc index 8db63e6..958a445 100644 --- a/main.cc +++ b/main.cc @@ -43,8 +43,8 @@ void real_main() { thrd_t user_thread; ucontext_t main_context; - //Create the singleton snapshotStack object - snapshotObject = new snapshotStack(); + //Create the singleton SnapshotStack object + snapshotObject = new SnapshotStack(); model = new ModelChecker(); diff --git a/snapshot-interface.cc b/snapshot-interface.cc index b0df836..26e0067 100644 --- a/snapshot-interface.cc +++ b/snapshot-interface.cc @@ -18,7 +18,7 @@ typedef std::basic_string, MyAlloc > MyString; -snapshotStack * snapshotObject; +SnapshotStack * snapshotObject; /*This looks like it might leak memory... Subramanian should fix this. */ @@ -79,17 +79,17 @@ void SnapshotGlobalSegments(){ } } -//class definition of snapshotStack..... +//class definition of SnapshotStack..... //declaration of constructor.... -snapshotStack::snapshotStack(){ +SnapshotStack::SnapshotStack(){ SnapshotGlobalSegments(); stack=NULL; } -snapshotStack::~snapshotStack(){ +SnapshotStack::~SnapshotStack(){ } -int snapshotStack::backTrackBeforeStep(int seqindex) { +int SnapshotStack::backTrackBeforeStep(int seqindex) { while(true) { if (stack->index<=seqindex) { //have right entry @@ -102,7 +102,7 @@ int snapshotStack::backTrackBeforeStep(int seqindex) { } } -void snapshotStack::snapshotStep(int seqindex) { +void SnapshotStack::snapshotStep(int seqindex) { struct stackEntry *tmp=(struct stackEntry *)MYMALLOC(sizeof(struct stackEntry)); tmp->next=stack; tmp->index=seqindex; diff --git a/snapshot-interface.h b/snapshot-interface.h index 0fab53b..9a2b9cc 100644 --- a/snapshot-interface.h +++ b/snapshot-interface.h @@ -12,11 +12,11 @@ struct stackEntry { int index; }; -class snapshotStack { +class SnapshotStack { public: MEMALLOC - snapshotStack( ); - ~snapshotStack(); + SnapshotStack( ); + ~SnapshotStack(); int backTrackBeforeStep(int seq_index); void snapshotStep(int seq_index); @@ -27,5 +27,5 @@ class snapshotStack { /* Not sure what it even means to have more than one snapshot object, so let's just make a global reference to it.*/ -extern snapshotStack * snapshotObject; +extern SnapshotStack * snapshotObject; #endif -- 2.34.1