Fix a couple of 64bit platform problems and speed up compilation. See

tools/wrc/CHANGES for details.
This commit is contained in:
Bertho Stultiens 1999-02-20 16:09:24 +00:00 committed by Alexandre Julliard
parent 9a73d86723
commit b17522817b
7 changed files with 32 additions and 11 deletions

View File

@ -1,3 +1,21 @@
---------------------------------------------------------------------------
Version 1.0.10 (18-Feb-1999)
Alexandre Julliard <julliard@lrc.epfl.ch>
- Fixed the TIME_LONG ugliness.
David Luyer <luyer@ucs.uwa.edu.au>
- Added string.h include in newstruc.c for compilation on 64bit platforms.
- Added TIME_LONG to support time_t==int in printf formats on alpha
platforms.
Bertho Stultiens <bertho@akhphd.au.dk>
- Added some more use of TIME_LONG in implicit format used in header-file
generation.
- Removed the windows.h include and replaced it with wintypes.h in
wrctypes.h and added winuser.h in two other sources. This cuts compilation
time by a factor of 2 and final executable size with debug by a factor 2.5.
---------------------------------------------------------------------------
Version 1.0.9 (01-Feb-1999)

View File

@ -17,6 +17,7 @@
#include "wrc.h"
#include "genres.h"
#include "utils.h"
#include "winuser.h"
#define SetResSize(res, tag) *(DWORD *)&((res)->data[(tag)]) = \
(res)->size - *(DWORD *)&((res)->data[(tag)])

View File

@ -10,6 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#include <config.h>
#include "wrc.h"

View File

@ -99,6 +99,7 @@
#include "dumpres.h"
#include "preproc.h"
#include "parser.h"
#include "winuser.h"
#ifdef __BORLANDC__
#pragma warn -sig

View File

@ -12,8 +12,8 @@
#include "wrctypes.h"
#endif
#define WRC_VERSION "1.0.9"
#define WRC_RELEASEDATE "(01-Feb-1999)"
#define WRC_VERSION "1.0.10"
#define WRC_RELEASEDATE "(18-Feb-1999)"
#define WRC_FULLVERSION WRC_VERSION " " WRC_RELEASEDATE
/* Only used in heavy debugging sessions */

View File

@ -9,8 +9,8 @@
#define __WRC_WRCTYPES_H
/* First is MS style, second wine style */
#if !defined(_INC_WINDOWS) && !defined(__WINE_WINDOWS_H)
#include "windows.h"
#ifndef __WINE_WINTYPES_H
#include "wintypes.h"
#endif
#ifndef MAKELANGID
@ -152,7 +152,7 @@ enum res_e {
res_menex = 256 + 4,
res_dlgex,
res_usr,
res_usr
};
/* Raw bytes in a row... */

View File

@ -64,8 +64,8 @@ char h_file_head_str[] =
" * Cmdline: %s\n"
" * Date : %s"
" */\n\n"
"#ifndef __%08x_H\n" /* This becomes the data of compile */
"#define __%08x_H\n\n"
"#ifndef __%08lx_H\n" /* This becomes the date of compile */
"#define __%08lx_H\n\n"
"#ifndef __WRC_RSC_H\n"
"#include <wrc_rsc.h>\n"
"#endif\n\n"
@ -579,7 +579,7 @@ void write_pe_segment(FILE *fp, resource_t *top)
/* Flags */
fprintf(fp, "\t.long\t0\n");
/* Time/Date stamp */
fprintf(fp, "\t.long\t0x%08lx\n", now);
fprintf(fp, "\t.long\t0x%08lx\n", (long)now);
/* Version */
fprintf(fp, "\t.long\t0\n"); /* FIXME: must version be filled out? */
/* # of id entries, # of name entries */
@ -628,7 +628,7 @@ void write_pe_segment(FILE *fp, resource_t *top)
fprintf(fp, ".L%s:\n", typelabel);
fprintf(fp, "\t.long\t0\n"); /* Flags */
fprintf(fp, "\t.long\t0x%08lx\n", now); /* TimeDate */
fprintf(fp, "\t.long\t0x%08lx\n", (long)now); /* TimeDate */
fprintf(fp, "\t.long\t0\n"); /* FIXME: must version be filled out? */
fprintf(fp, "\t.short\t%d, %d\n", rcp->n_name_entries, rcp->n_id_entries);
for(j = 0; j < rcp->count32; j++)
@ -681,7 +681,7 @@ void write_pe_segment(FILE *fp, resource_t *top)
fprintf(fp, ".L%s_%s:\n", typelabel, namelabel);
fprintf(fp, "\t.long\t0\n"); /* Flags */
fprintf(fp, "\t.long\t0x%08lx\n", now); /* TimeDate */
fprintf(fp, "\t.long\t0x%08lx\n", (long)now); /* TimeDate */
fprintf(fp, "\t.long\t0\n"); /* FIXME: must version be filled out? */
fprintf(fp, "\t.short\t0, %d\n", r32cp->count);
@ -1116,7 +1116,7 @@ void write_h_file(char *outname, resource_t *top)
time(&now);
fprintf(fo, h_file_head_str, input_name ? input_name : "stdin",
cmdline, ctime(&now), now, now);
cmdline, ctime(&now), (long)now, (long)now);
/* First write the segment tables reference */
if(create_dir)