Author: Ian Kennedy
Date: 12:53:38 04/07/99
Go up one level in this thread
I have a common source code base for PSYCHO which I have ported back and forth between Win32 and LINUX. Mostly I have stuck with pure ansi c and left it as a console app under win32. There is some memory management and file io stuff which I have #ifdef WIN32'd eg #ifdef _WIN32 hash_table = (HASH_STRUCT *)HeapAlloc(HeapHandle, HEAP_ZERO_MEMORY, (hash_table_size)*sizeof(HASH_STRUCT)); #else hash_table = (HASH_STRUCT *)calloc(hash_table_size,sizeof(HASH_STRUCT)); #endif if (hash_table == NULL) { printf("Alloc failed"); exit(1); } and so on. When I ported over to LINUX it took about 20 minutes, not bad eh? :) Ian Kennedy
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.