Some string extractor prog I made some time ago.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@722 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-02-10 03:27:23 +00:00
parent 5ad1e0a3e7
commit 9dc34826bd
3 changed files with 245 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <stdint.h>
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef short int16;
typedef uint8 bool;
#define TRUE 1
#define FALSE 0
#define MAKE_WORD(x1, x2) (((x2) << 8) | (x1))
#define MAKE_DWORD(x1, x2, x3, x4) (((x4) << 24) | ((x3) << 16) | \
((x2) << 8) | (x1))
typedef struct {
uint32 size;
uint32 offset; // offset from beginning of strings
} entry_desc;
typedef struct {
uint16 num_entries;
entry_desc *entries;
} index_header;