Andrew Talbot : dbghelp: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 19 05:24:21 CDT 2007


Module: wine
Branch: master
Commit: 645d76f8890a9624621798decfb1723204464dc7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=645d76f8890a9624621798decfb1723204464dc7

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed Apr 18 22:24:27 2007 +0100

dbghelp: Constify some variables.

---

 dlls/dbghelp/msc.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index dcd24e9..6b99ed4 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -321,7 +321,7 @@ struct codeview_type_parse
     DWORD               num;
 };
 
-static inline const void* codeview_jump_to_type(struct codeview_type_parse* ctp, DWORD idx)
+static inline const void* codeview_jump_to_type(const struct codeview_type_parse* ctp, DWORD idx)
 {
     if (idx < FIRST_DEFINABLE_TYPE) return NULL;
     idx -= FIRST_DEFINABLE_TYPE;
@@ -1926,7 +1926,7 @@ static HANDLE open_pdb_file(const struct process* pcs,
 }
 
 static void pdb_process_types(const struct msc_debug_info* msc_dbg, 
-                              const char* image, struct pdb_lookup* pdb_lookup)
+                              const char* image, const struct pdb_lookup* pdb_lookup)
 {
     BYTE*       types_image = NULL;
 
@@ -2098,9 +2098,10 @@ static BOOL pdb_process_internal(const struct process* pcs,
 
 static void pdb_process_symbol_imports(const struct process* pcs, 
                                        const struct msc_debug_info* msc_dbg,
-                                       PDB_SYMBOLS* symbols, 
+                                       const PDB_SYMBOLS* symbols,
                                        const void* symbols_image,
-                                       char* image, struct pdb_lookup* pdb_lookup,
+                                       const char* image,
+                                       const struct pdb_lookup* pdb_lookup,
                                        unsigned module_index)
 {
     if (module_index == -1 && symbols && symbols->pdbimport_size)




More information about the wine-cvs mailing list