[hatari-devel] Hatari version string?

Thomas Huth huth at users.berlios.de
Thu Mar 4 21:09:05 CET 2010


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.

 Thomas



More information about the hatari-devel mailing list