Skip to content

Commit

Permalink
remove global xref strings in favor of per symbol group's string usage
Browse files Browse the repository at this point in the history
  • Loading branch information
RadWolfie committed Nov 7, 2021
1 parent c35518d commit 8a59f63
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/xref/list_xref.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,25 +424,6 @@ typedef enum _XRefDatabaseOffset {
// Also, if XREF_COUNT > sizeof(uint16), enlarge struct OOVPA.XRefSaveIndex (and Value somehow)
} XRefDatabaseOffset;

// TODO: Actually, this method will not work since there are multiple symbols using same xref which has
// different parameters placement. I'm under consideration to remove global strings and use string from each symbol itself.
// Unless someone else has new idea to make this useful.
static const char* xref_str[] = {
#define XREF_SYMBOL(str) #str,
#define XREF_SYMBOL_EX(e, str) #str,
#include "d3d8.def"
#include "d3d8ltcg.def"
#include "dsound.def"
#include "jvs.def"
#include "xacteng.def"
#include "xapilib.def"
#include "xgraphic.def"
#include "xnet.def"
#include "xonline.def"
#undef XREF_SYMBOL
#undef XREF_SYMBOL_EX
};

#define XREF_ADDR_UNDETERMINED -1
#define XREF_ADDR_NOT_FOUND ((void*)0)
#define XREF_ADDR_DERIVE 1

0 comments on commit 8a59f63

Please sign in to comment.