Eric Pouech : dbghelp: Rely on first/last type index from type header.

Alexandre Julliard julliard at winehq.org
Tue Jun 28 15:54:15 CDT 2022


Module: wine
Branch: master
Commit: b7c231c78f84402b47c79ba744884c32ca2a8323
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b7c231c78f84402b47c79ba744884c32ca2a8323

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Wed Jun 22 16:28:08 2022 +0200

dbghelp: Rely on first/last type index from type header.

Code now follows these guidelines:
- define PDB & Codeview internals in cvconst.h and mscvinfo.h (instead
  of having definitions in .c files, some of them being duplicate of .h
  content, and their "duplicate" values eventually diverged over time)
- index of first type comes from PDB type header (instead of always being
  hardcoded as FIRST_DEFINABLE_TYPE)
- use index of last typex from type header (instead of guessing the right
  value while parsing types, which also allows a single allocation
  instead of enlarging buffer while parsing).

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---

 dlls/dbghelp/msc.c     | 108 ++++++++++++++++++++++---------------------------
 include/wine/mscvpdb.h |   3 +-
 2 files changed, 50 insertions(+), 61 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=b7c231c78f84402b47c79ba744884c32ca2a8323



More information about the wine-cvs mailing list