From: <bi...@us...> - 2014-09-20 00:32:33
|
Revision: 10470 http://sourceforge.net/p/oorexx/code-0/10470 Author: bigrixx Date: 2014-09-20 00:32:22 +0000 (Sat, 20 Sep 2014) Log Message: ----------- ok, I lied...one more batch of changes tonight Modified Paths: -------------- main/trunk/interpreter/behaviour/RexxBehaviour.cpp main/trunk/interpreter/behaviour/RexxBehaviour.hpp main/trunk/interpreter/classes/NumberStringClass.hpp main/trunk/interpreter/classes/support/HashContents.hpp main/trunk/interpreter/classes/support/ListContents.hpp main/trunk/interpreter/classes/support/ProgramMetaData.hpp main/trunk/interpreter/expression/ExpressionCompoundVariable.hpp main/trunk/interpreter/expression/ExpressionFunction.hpp main/trunk/interpreter/expression/ExpressionLogical.hpp main/trunk/interpreter/expression/ExpressionMessage.hpp main/trunk/interpreter/instructions/ParseTrigger.hpp main/trunk/interpreter/memory/InternalStack.hpp main/trunk/interpreter/memory/MapBucket.hpp main/trunk/interpreter/memory/MemoryStack.hpp main/trunk/interpreter/memory/RexxMemory.hpp Modified: main/trunk/interpreter/behaviour/RexxBehaviour.cpp =================================================================== --- main/trunk/interpreter/behaviour/RexxBehaviour.cpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/behaviour/RexxBehaviour.cpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -64,6 +64,8 @@ * * @return A pointer to the target primitive behaviour. */ +// TODO: This probably should not be done in the NEW, but rather +// use a placement new operator void *RexxBehaviour::operator new(size_t size, size_t typenum) { // return a pointer to the static primitive one Modified: main/trunk/interpreter/behaviour/RexxBehaviour.hpp =================================================================== --- main/trunk/interpreter/behaviour/RexxBehaviour.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/behaviour/RexxBehaviour.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -54,7 +54,7 @@ { public: void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { } + inline void operator delete(void *) { } static const uintptr_t INTERNALCLASS = (((uintptr_t)1) << ((sizeof(uintptr_t) * 8) - 1)); Modified: main/trunk/interpreter/classes/NumberStringClass.hpp =================================================================== --- main/trunk/interpreter/classes/NumberStringClass.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/classes/NumberStringClass.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -171,7 +171,7 @@ }; void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { } + inline void operator delete(void *) { } NumberString(size_t) ; NumberString(size_t, size_t) ; Modified: main/trunk/interpreter/classes/support/HashContents.hpp =================================================================== --- main/trunk/interpreter/classes/support/HashContents.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/classes/support/HashContents.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -391,7 +391,7 @@ { public: void * operator new(size_t size, size_t capacity); - inline void operator delete(void *, size_t) { ; } + inline void operator delete(void *) { ; } inline IdentityHashContents() { ; }; inline IdentityHashContents(RESTORETYPE restoreType) { ; }; @@ -444,7 +444,7 @@ { public: void *operator new(size_t size, size_t capacity); - inline void operator delete(void *, size_t) { ; } + inline void operator delete(void *) { ; } inline MultiValueContents() { ; }; inline MultiValueContents(RESTORETYPE restoreType) { ; }; @@ -466,7 +466,7 @@ { public: void *operator new(size_t size, size_t capacity); - inline void operator delete(void *, size_t) { ; } + inline void operator delete(void *) { ; } inline StringHashContents() { ; }; inline StringHashContents(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/classes/support/ListContents.hpp =================================================================== --- main/trunk/interpreter/classes/support/ListContents.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/classes/support/ListContents.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -72,7 +72,7 @@ }; void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { } + inline void operator delete(void *) { } inline ListContents(RESTORETYPE restoreType) { ; }; inline ListContents() {;}; Modified: main/trunk/interpreter/classes/support/ProgramMetaData.hpp =================================================================== --- main/trunk/interpreter/classes/support/ProgramMetaData.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/classes/support/ProgramMetaData.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -45,8 +45,9 @@ class ProgramMetaData { public: + // TODO: This NEW method doesn't seem right... void *operator new (size_t size, BufferClass *buff); - void operator delete (void *p, BufferClass *buff) { SystemInterpreter::releaseResultMemory(p); } + void operator delete (void *p) { SystemInterpreter::releaseResultMemory(p); } ProgramMetaData(); ProgramMetaData(BufferClass *); Modified: main/trunk/interpreter/expression/ExpressionCompoundVariable.hpp =================================================================== --- main/trunk/interpreter/expression/ExpressionCompoundVariable.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/expression/ExpressionCompoundVariable.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -57,7 +57,7 @@ { public: void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { ; } + inline void operator delete(void *) { ; } RexxCompoundVariable(RexxString *, size_t, QueueClass *, size_t); inline RexxCompoundVariable(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/expression/ExpressionFunction.hpp =================================================================== --- main/trunk/interpreter/expression/ExpressionFunction.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/expression/ExpressionFunction.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -51,7 +51,7 @@ { public: void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { ; } + inline void operator delete(void *) { ; } RexxExpressionFunction(RexxString *, size_t, QueueClass *, BuiltinCode); inline RexxExpressionFunction(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/expression/ExpressionLogical.hpp =================================================================== --- main/trunk/interpreter/expression/ExpressionLogical.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/expression/ExpressionLogical.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -51,7 +51,7 @@ { public: void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) {;} + inline void operator delete(void *) {;} RexxExpressionLogical(size_t, QueueClass *); inline RexxExpressionLogical(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/expression/ExpressionMessage.hpp =================================================================== --- main/trunk/interpreter/expression/ExpressionMessage.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/expression/ExpressionMessage.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -52,7 +52,7 @@ friend class LanguageParser; public: void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { ; } + inline void operator delete(void *) { ; } RexxExpressionMessage(RexxObject *, RexxString *, RexxObject *, size_t, QueueClass *, bool); inline RexxExpressionMessage(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/instructions/ParseTrigger.hpp =================================================================== --- main/trunk/interpreter/instructions/ParseTrigger.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/instructions/ParseTrigger.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -64,7 +64,7 @@ { public: void *operator new(size_t, size_t); - inline void operator delete(void *, size_t) { } + inline void operator delete(void *) { } ParseTrigger(ParseTriggerType, RexxObject *, size_t, QueueClass *); inline ParseTrigger(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/memory/InternalStack.hpp =================================================================== --- main/trunk/interpreter/memory/InternalStack.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/memory/InternalStack.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -52,7 +52,7 @@ inline void operator delete(void *) { ; } InternalStack() { ; } - InternalStack::InternalStack(size_t stackSize); + InternalStack(size_t stackSize); inline InternalStack(RESTORETYPE restoreType) { ; } virtual void live(size_t); Modified: main/trunk/interpreter/memory/MapBucket.hpp =================================================================== --- main/trunk/interpreter/memory/MapBucket.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/memory/MapBucket.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -61,7 +61,7 @@ typedef size_t MapLink; // a link to another map item void *operator new(size_t base, size_t entries); - inline void operator delete(void *, size_t) {;} + inline void operator delete(void *) {;} MapBucket(size_t entries); inline MapBucket(RESTORETYPE restoreType) { ; }; Modified: main/trunk/interpreter/memory/MemoryStack.hpp =================================================================== --- main/trunk/interpreter/memory/MemoryStack.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/memory/MemoryStack.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -57,8 +57,7 @@ public: void *operator new(size_t, size_t); void *operator new(size_t, size_t, bool temporary); - inline void operator delete(void *, size_t) { }; - inline void operator delete(void *, size_t, bool temporary) { }; + inline void operator delete(void *) { }; inline LiveStack(RESTORETYPE restoreType) { ; }; LiveStack(size_t size); @@ -141,8 +140,7 @@ public: void *operator new(size_t, size_t); void *operator new(size_t, size_t, bool temporary); - inline void operator delete(void *, size_t) { }; - inline void operator delete(void *, size_t, bool temporary) { }; + inline void operator delete(void *) { }; inline PushThroughStack(RESTORETYPE restoreType) { ; }; PushThroughStack(size_t size); Modified: main/trunk/interpreter/memory/RexxMemory.hpp =================================================================== --- main/trunk/interpreter/memory/RexxMemory.hpp 2014-09-20 00:06:11 UTC (rev 10469) +++ main/trunk/interpreter/memory/RexxMemory.hpp 2014-09-20 00:32:22 UTC (rev 10470) @@ -99,7 +99,7 @@ #endif public: void *operator new(size_t size, size_t minSize); - inline void operator delete(void *, size_t) { } + inline void operator delete(void *) { } static MemorySegmentPool *createPool(); |