Commit a1ac3282 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

dbghelp/stabs: Extract growing of pending_block's buffer to pending_make_room().

parent 615fff29
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment