[hatari-devel] Hatari version string?
npomarede at corp.free.fr
npomarede at corp.free.fr
Thu Mar 4 21:53:51 CET 2010
On Thu, 4 Mar 2010, Thomas Huth wrote:
> On Thu, 4 Mar 2010 21:12:15 +0200
> Eero Tamminen <eerot at users.berlios.de> wrote:
>
>> Hi,
>>
>> I wonder whether there should be a single global variable
>> for Hatari version. If one happens to compile different parts
>> of Hatari at different times, one gets different dates from
>> different places using the current define:
>> ----------
>> $ grep PROG_NAME *.c */*.c
>> avi_record.c: Len = snprintf ( InfoString , sizeof ( InfoString ) ,
>> "%s - the Atari ST, STE, TT and Falcon emulator" , PROG_NAME ) + 1;
>> main.c: Log_Printf(LOG_INFO, PROG_NAME ", compiled on: " __DATE__ ",
>> " __TIME__ "\n");
>> options.c: printf("\n" PROG_NAME
>> screen.c: SDL_WM_SetCaption(PROG_NAME, "Hatari");
>> gui-sdl/dlgAbout.c: { SGTEXT, 0, 0, 13,1, 12,1, PROG_NAME },
>> includes/main.h:#define PROG_NAME "Hatari devel (" __DATE__ ")"
>> includes/main.h://#define PROG_NAME "Hatari v1.3.1"
>> ----------
>
> Since this affects the development version only, I think it is not a
> big issue. It would be ugly if it would affect the public release
> version, though.
I agree, having different dates in various .o file doesn't look like a
problem to me, and for every release we will do a "make clean" before, so
they will all be the same in the end.
Nicolas
More information about the hatari-devel
mailing list