wrc: Convert resource output to the standard output buffer functions.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-12-10 12:53:49 +01:00
parent 952d849e48
commit 7f0943dde6
2 changed files with 444 additions and 840 deletions

File diff suppressed because it is too large Load Diff

View File

@ -78,16 +78,6 @@ typedef struct
int col;
} location_t;
/* Binary resource structure */
#define RES_BLOCKSIZE 512
typedef struct res {
unsigned int allocsize; /* Allocated datablock size */
unsigned int size; /* Actual size of data */
unsigned int dataidx; /* Tag behind the resource-header */
unsigned char *data;
} res_t;
/* Resource strings are slightly more complex because they include '\0' */
enum str_e {str_char, str_unicode};
@ -588,7 +578,6 @@ typedef struct resource {
versioninfo_t *ver;
void *overlay; /* To catch all types at once... */
} res;
res_t *binres; /* To binary converted resource */
DWORD memopt;
} resource_t;