Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a224fdb1
Commit
a224fdb1
authored
Apr 19, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Constify some variables.
parent
d5b2a0c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+5
-5
storage.c
dlls/dbghelp/storage.c
+4
-4
symbol.c
dlls/dbghelp/symbol.c
+5
-5
type.c
dlls/dbghelp/type.c
+1
-1
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
a224fdb1
...
...
@@ -62,8 +62,8 @@ unsigned vector_length(const struct vector* v);
void
*
vector_at
(
const
struct
vector
*
v
,
unsigned
pos
);
void
*
vector_add
(
struct
vector
*
v
,
struct
pool
*
pool
);
/*void vector_pool_normalize(struct vector* v, struct pool* pool); */
void
*
vector_iter_up
(
const
struct
vector
*
v
,
void
*
elt
);
void
*
vector_iter_down
(
const
struct
vector
*
v
,
void
*
elt
);
void
*
vector_iter_up
(
const
struct
vector
*
v
,
const
void
*
elt
);
void
*
vector_iter_down
(
const
struct
vector
*
v
,
const
void
*
elt
);
struct
sparse_array
{
...
...
@@ -557,10 +557,10 @@ extern struct symt_function_point*
enum
SymTagEnum
point
,
const
struct
location
*
loc
,
const
char
*
name
);
extern
BOOL
symt_fill_func_line_info
(
struct
module
*
module
,
struct
symt_function
*
func
,
extern
BOOL
symt_fill_func_line_info
(
const
struct
module
*
module
,
const
struct
symt_function
*
func
,
DWORD
addr
,
IMAGEHLP_LINE
*
line
);
extern
BOOL
symt_get_func_line_next
(
struct
module
*
module
,
PIMAGEHLP_LINE
line
);
extern
BOOL
symt_get_func_line_next
(
const
struct
module
*
module
,
PIMAGEHLP_LINE
line
);
extern
struct
symt_thunk
*
symt_new_thunk
(
struct
module
*
module
,
struct
symt_compiland
*
parent
,
...
...
dlls/dbghelp/storage.c
View file @
a224fdb1
...
...
@@ -101,13 +101,13 @@ void* pool_alloc(struct pool* pool, unsigned len)
return
ret
;
}
static
struct
pool_arena
*
pool_is_last
(
struct
pool
*
pool
,
void
*
p
,
unsigned
old_size
)
static
struct
pool_arena
*
pool_is_last
(
const
struct
pool
*
pool
,
const
void
*
p
,
unsigned
old_size
)
{
struct
pool_arena
*
arena
;
for
(
arena
=
pool
->
first
;
arena
;
arena
=
arena
->
next
)
{
if
(
arena
->
current
==
(
char
*
)
p
+
old_size
)
return
arena
;
if
(
arena
->
current
==
(
c
onst
c
har
*
)
p
+
old_size
)
return
arena
;
}
return
NULL
;
}
...
...
@@ -206,7 +206,7 @@ static unsigned vector_position(const struct vector* v, const void* elt)
return
0
;
}
void
*
vector_iter_up
(
const
struct
vector
*
v
,
void
*
elt
)
void
*
vector_iter_up
(
const
struct
vector
*
v
,
const
void
*
elt
)
{
unsigned
pos
;
...
...
@@ -216,7 +216,7 @@ void* vector_iter_up(const struct vector* v, void* elt)
return
vector_at
(
v
,
pos
);
}
void
*
vector_iter_down
(
const
struct
vector
*
v
,
void
*
elt
)
void
*
vector_iter_down
(
const
struct
vector
*
v
,
const
void
*
elt
)
{
unsigned
pos
;
if
(
!
elt
)
return
vector_at
(
v
,
vector_length
(
v
)
-
1
);
...
...
dlls/dbghelp/symbol.c
View file @
a224fdb1
...
...
@@ -612,7 +612,7 @@ struct sym_enum
char
buffer
[
sizeof
(
SYMBOL_INFO
)
+
MAX_SYM_NAME
];
};
static
BOOL
send_symbol
(
const
struct
sym_enum
*
se
,
struct
module_pair
*
pair
,
static
BOOL
send_symbol
(
const
struct
sym_enum
*
se
,
const
struct
module_pair
*
pair
,
const
struct
symt_function
*
func
,
const
struct
symt
*
sym
)
{
symt_fill_sym_info
(
pair
,
func
,
sym
,
se
->
sym_info
);
...
...
@@ -622,7 +622,7 @@ static BOOL send_symbol(const struct sym_enum* se, struct module_pair* pair,
return
!
se
->
cb
(
se
->
sym_info
,
se
->
sym_info
->
Size
,
se
->
user
);
}
static
BOOL
symt_enum_module
(
struct
module_pair
*
pair
,
regex_t
*
regex
,
static
BOOL
symt_enum_module
(
struct
module_pair
*
pair
,
const
regex_t
*
regex
,
const
struct
sym_enum
*
se
)
{
void
*
ptr
;
...
...
@@ -752,7 +752,7 @@ struct symt_ht* symt_find_nearest(struct module* module, DWORD addr)
static
BOOL
symt_enum_locals_helper
(
struct
module_pair
*
pair
,
regex_t
*
preg
,
const
struct
sym_enum
*
se
,
struct
symt_function
*
func
,
struct
vector
*
v
)
struct
symt_function
*
func
,
const
struct
vector
*
v
)
{
struct
symt
**
plsym
=
NULL
;
struct
symt
*
lsym
=
NULL
;
...
...
@@ -1223,7 +1223,7 @@ BOOL WINAPI SymGetSymFromName(HANDLE hProcess, PCSTR Name, PIMAGEHLP_SYMBOL Symb
*
* fills information about a file
*/
BOOL
symt_fill_func_line_info
(
struct
module
*
module
,
struct
symt_function
*
func
,
BOOL
symt_fill_func_line_info
(
const
struct
module
*
module
,
const
struct
symt_function
*
func
,
DWORD
addr
,
IMAGEHLP_LINE
*
line
)
{
struct
line_info
*
dli
=
NULL
;
...
...
@@ -1450,7 +1450,7 @@ BOOL WINAPI SymGetLinePrev64(HANDLE hProcess, PIMAGEHLP_LINE64 Line)
return
TRUE
;
}
BOOL
symt_get_func_line_next
(
struct
module
*
module
,
PIMAGEHLP_LINE
line
)
BOOL
symt_get_func_line_next
(
const
struct
module
*
module
,
PIMAGEHLP_LINE
line
)
{
struct
line_info
*
li
;
...
...
dlls/dbghelp/type.c
View file @
a224fdb1
...
...
@@ -100,7 +100,7 @@ const char* symt_get_name(const struct symt* sym)
}
}
static
struct
symt
*
symt_find_type_by_name
(
struct
module
*
module
,
static
struct
symt
*
symt_find_type_by_name
(
const
struct
module
*
module
,
enum
SymTagEnum
sym_tag
,
const
char
*
typename
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment