[Avalontoolkit-discuss] changes required to get code working on windows
Avalon Toolkit for SMILES-based cheminformatics services
Brought to you by:
rohdebe1
|
From: Greg L. <gre...@gm...> - 2012-01-03 06:12:42
|
Hi,
This morning I did a 32bit windows build of the code using Visual
Studio Express 2010. To get things working I had to make the following
mods:
glandrum@vielfrass ~/avalontoolkit
$ svn diff common
Index: common/patclean.c
===================================================================
--- common/patclean.c (revision 2)
+++ common/patclean.c (working copy)
@@ -845,14 +845,14 @@
ssmatch_t *best_match;
int problem_found, match_applied;
- // check parameters
- if (IsNULL(mp) || IsNULL(ssp)) return (FALSE);
-
int i, j, k, iatom, jatom;
int symbol;
struct reaccs_bond_t *bp, bm;
neighbourhood_t neighbour_array[MAXATOMS], *nbp;
+ // check parameters
+ if(IsNULL(mp) || IsNULL(ssp)) return 0;
+
if (mp->n_atoms > MAXATOMS)
{
fprintf(stderr,"Too many atoms in molecule '%s'\n",mp->name);
Index: common/reaccsio.c
===================================================================
--- common/reaccsio.c (revision 2)
+++ common/reaccsio.c (working copy)
@@ -1357,7 +1357,7 @@
{
tempfile = tempnam(tempdir, (const char *)NULL);
fp = fopen(tempfile, "wb+");
- MyFree((char *)tempdir);
+ //MyFree((char *)tempdir);
if (IsNULL(fp))
{
MyFree((char *)tempfile);
-greg
|