[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freesci-develop] cvs: jameson
From: |
FreeSCI CVS repository |
Subject: |
[freesci-develop] cvs: jameson |
Date: |
Sat, 12 Feb 2005 01:14:10 +0100 |
CVSROOT: /var/cvs/freesci
Module name: freesci
Changes by: jameson 2005/02/12 00:14:10 GMT
Modified files:
. : ChangeLog TODO
src : main.c
src/engine : vm.c
src/include : games.h resource.h scitypes.h versions.h
src/scicore : Makefile.am
Added files:
src/scicore : versions.c
Log message:
* Added a simple FSM to detect version number strings in binary executables
* Changed our "CRC" code to a conventional hashing function
* Added a handful of games and hash codes to games.h
* Updated TODO list to reflect the changes (1 down, 2 to go)
The hashing code is the string hashing function everyone seems to use in
their standard library (foldl (\hash. \ch. hash * c1 + ch) c2); c2 here is
some constant derived from the RESOURCE file found, and c1 is 19 (which is
what the magical O'Caml builtin hashing function uses on strings; IIRC all
that matters is that it's a reasonably small prime number).
You may now get warnings regarding noninterpreted hash codes for games
for which autodetection used to work; apologies for this.
-- Christoph
- [freesci-develop] cvs: jameson,
FreeSCI CVS repository <=