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
a1ac3282
Commit
a1ac3282
authored
Mar 11, 2009
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/stabs: Extract growing of pending_block's buffer to pending_make_room().
parent
615fff29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
stabs.c
dlls/dbghelp/stabs.c
+7
-2
No files found.
dlls/dbghelp/stabs.c
View file @
a1ac3282
...
...
@@ -1127,8 +1127,7 @@ struct pending_block
unsigned
allocated
;
};
static
inline
void
pending_add
(
struct
pending_block
*
pending
,
const
char
*
name
,
enum
DataKind
dt
,
const
struct
location
*
loc
)
static
inline
void
pending_make_room
(
struct
pending_list
*
pending
)
{
if
(
pending
->
num
==
pending
->
allocated
)
{
...
...
@@ -1140,6 +1139,12 @@ static inline void pending_add(struct pending_block* pending, const char* name,
pending
->
vars
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
pending
->
vars
,
pending
->
allocated
*
sizeof
(
pending
->
vars
[
0
]));
}
}
static
inline
void
pending_add
(
struct
pending_block
*
pending
,
const
char
*
name
,
enum
DataKind
dt
,
const
struct
location
*
loc
)
{
pending_make_room
(
pending
);
stab_strcpy
(
pending
->
vars
[
pending
->
num
].
name
,
sizeof
(
pending
->
vars
[
pending
->
num
].
name
),
name
);
pending
->
vars
[
pending
->
num
].
type
=
stabs_parse_type
(
name
);
...
...
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