Upload source rndTest-0-3src.zip
http://www.zomis.net/rnd/download.php?id=393
Test this with Eclipse (Cygwin), MinGw and VisualC.
(for Eclipse you should have 1GB Ram and a 3GHz CPU - better two)
In Cygwin you have to define CYGWIN
Hm. It seems in MinGw its necessary to define VISUAL_MINGW_CPP.
(otherwise Dir-Access fail). Don't know really why.
In VisualC you have to define TRAGET_SDL, VISUAL_CPP and VISUAL_MINGW_CPP.
Its now ANSI-C ! VisualC is a hard tester in this case. Believe this.
I dont know something about C89/C99.
Now the changeLog: (search for #HAG#VC)
--------------------------------------------------------
VC6 - Workspace - change log - by HerzAusGold
-------------------------------------------------------------------------
hash.h - define away 'inline' (its an c++ feature)
- comment body of iterator functions (its twice, c++)
-------------------------------------------------------------------------
list.c - include 'rndapi.h'
- fileScanDir, fileScanDirFree
-------------------------------------------------------------------------
list.h - fileScanDir, fileScanDirFree
(using a pointer to an array of pointers to dirent)
-------------------------------------------------------------------------
sdl.h - define away 'inline'
-------------------------------------------------------------------------
setup.c + LoadLevelInfoFromLevelDir
+ LoadArtworkInfoFromArtworkConf
+ LoadArtworkInfoFromArtworkDir
+ checkSeriesInfo
- DIR access with fileScanDir, fileScanDirFree
- using macro S_ISDIR
-------------------------------------------------------------------------
sound.c + LoadCustomMusic_NoConf
- DIR access with fileScanDir, fileScanDirFree
- (macro not needed)
-------------------------------------------------------------------------
text.c - 'buffer' alloc/free at runtime
-------------------------------------------------------------------------
zfile.c - DIR access with fileScanDir, fileScanDirFree
- using macro S_ISDIR
-------------------------------------------------------------------------
cartoons.c - 'void' missed
-------------------------------------------------------------------------
conf_chr.c -> conf_chr_c.h
conf_cus.c -> conf_cus_c.h
conf_e2g.c -> conf_e2g_c.h
conf_esg.c -> conf_esg_c.h
conf_fnt.c -> conf_fnt_c.h
conf_g2m.c -> conf_g2m_c.h
conf_g2s.c -> conf_g2s_c.h
conf_grp.c -> conf_grp_c.h
-------------------------------------------------------------------------
conf_gfx.c - rename includes conf_xxx_c.h
-------------------------------------------------------------------------
editor.c + editor_hl_custom_more
+ editor_hl_custom_special
+ editor_hl_group_more
+ editor_hl_empty (hope this is ok)
- empty arrays are not allowed (c++)
- 'infotext' alloc/free at runtime
- 'buffer' alloc/free at runtime
-------------------------------------------------------------------------
events.c - add comment to 'soko step' (for later use)
- define 'keyend' at the top (c++)
- setting variable 'keyend' (recommended)
-------------------------------------------------------------------------
files.c + getPackedLevelBasename
+ LoadMusicInfo
- DIR access with fileScanDir, fileScanDirFree
- (macro not needed)
-------------------------------------------------------------------------
game.c - define 'nextseries' and 'i' at the top (c++)
- define a block for my sokoban stuff
- return void (CheckGravityMovement) is not allowed (c++)
-------------------------------------------------------------------------
init.c - rename includes conf_xxx_c.h
-------------------------------------------------------------------------
main.c - 'void' missed
-------------------------------------------------------------------------
soko.h - named struct 'step_t' (recommended)
-------------------------------------------------------------------------
tools.c - 'void' missed
- 'text_line' alloc/free at runtime
-------------------------------------------------------------------------
tools.h - 'void' missed
-------------------------------------------------------------------------
windows_icon.ico .bmp is missed! BMP2ICO.EXE is missed too!
-------------------------------------------------------------------------
include - change some includes <unistd.h>, <dirent.h>,
<sys/time.h> not defined in WIN32
- inherit rndapi.h
-------------------------------------------------------------------------