[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server debugger.h parser/action_buffer.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/server debugger.h parser/action_buffer.h |
Date: |
Wed, 07 Feb 2007 17:38:57 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/02/07 17:38:57
Modified files:
server : debugger.h
server/parser : action_buffer.h
Log message:
* server/debugger.h: const-correctness fixes.
* server/parser/action_buffer.h: buffer accessor return by const
pointer.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/debugger.h?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/server/parser/action_buffer.h?cvsroot=gnash&r1=1.10&r2=1.11
Patches:
Index: debugger.h
===================================================================
RCS file: /sources/gnash/gnash/server/debugger.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- debugger.h 6 Feb 2007 22:02:01 -0000 1.2
+++ debugger.h 7 Feb 2007 17:38:56 -0000 1.3
@@ -76,8 +76,8 @@
as_environment *getEnvStack() { return _env; };
//
- void setFramePointer(unsigned char *x) { _pc = x; };
- unsigned char *getFramePointer() { return _pc; };
+ void setFramePointer(const unsigned char *x) { _pc = x; };
+ const unsigned char *getFramePointer() const { return _pc; };
void console(as_environment &env);
void console();
@@ -114,7 +114,7 @@
debug_state_e _state;
int _skipb;
as_environment *_env;
- unsigned char *_pc;
+ const unsigned char *_pc;
std::map<std::string, watch_state_e> _watchpoints;
std::map<std::string, bool> _breakpoints;
std::map<void *, std::string> _symbols;
Index: parser/action_buffer.h
===================================================================
RCS file: /sources/gnash/gnash/server/parser/action_buffer.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- parser/action_buffer.h 6 Feb 2007 23:06:18 -0000 1.10
+++ parser/action_buffer.h 7 Feb 2007 17:38:56 -0000 1.11
@@ -121,15 +121,15 @@
}
/// Get a pointer to the current instruction within the code
- unsigned char* getFramePointer(size_t pc) const
+ const unsigned char* getFramePointer(size_t pc) const
{
- return ((unsigned char*)&m_buffer[pc]);
+ return reinterpret_cast<const unsigned char*>(&m_buffer[pc]);
}
/// Get the base pointer of the code buffer.
- unsigned char* getCodeStart()
+ const unsigned char* getCodeStart()
{
- return reinterpret_cast<unsigned char*>(&m_buffer);
+ return reinterpret_cast<const unsigned char*>(&m_buffer);
}
const unsigned char* get_buffer(size_t pc) const
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/server debugger.h parser/action_buffer.h,
Sandro Santilli <=