[Nauty-list] nauty24b4 nausparse.h patch
Brendan McKay
bdm at cs.anu.edu.au
Thu Aug 2 12:40:05 EST 2007
Thanks Paul, Your changes are correct. The error is not in DYNFREE
though, it is in SG_FREE (which is not used in any of the code I
distribute). This error prevents compilation, so nobody need
worry about the results of previous computations.
I plan to release nauty24b6 after a few days. There are only a few
changes, the main one being some extra parameters in directg.
Brendan.
* Paul T. Darga <pdarga at umich.edu> [070802 11:06]:
> Hi all,
>
> Version nauty24b4 of nauty has a bug in the DYNFREE macro of
> nausparse.h. Here's a patch to fix it.
>
> Cheers,
>
> Paul
>
> --- nauty24b4/nausparse.h 2007-07-11 04:40:07.000000000 -0400
> +++ nauty24b4-paul/nausparse.h 2007-08-01 18:47:52.000000000 -0400
> @@ -29,9 +29,9 @@
> DYNALLOC1(int,(sg).d,(sg).dlen,nlen,msg); \
> DYNALLOC1(int,(sg).e,(sg).elen,ndelen,msg); } while (0)
> #define SG_FREE(sg) do { \
> - DYNFREE(int,(sg).v,(sg).vlen); \
> - DYNFREE(int,(sg).d,(sg).dlen); \
> - DYNFREE(int,(sg).e,(sg).elen); } while (0)
> + DYNFREE((sg).v,(sg).vlen); \
> + DYNFREE((sg).d,(sg).dlen); \
> + DYNFREE((sg).e,(sg).elen); } while (0)
>
> #define SG_DECL(sg) sparsegraph sg = {0,0,NULL,NULL,NULL,NULL,0,0,0,0}
>
> --
> Paul T. Darga - pdarga at umich.edu - http://www.eecs.umich.edu/~pdarga/
> "When I gave food to the poor, they called me a saint. When I asked
> why the poor were hungry, they called me a communist."
> -- Dom Helder Camara, Brazilian Bishop, Nobel Peace Prize nominee
>
> _______________________________________________
> Nauty-list mailing list
> Nauty-list at cs.anu.edu.au
> http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list
More information about the Nauty
mailing list