[winGRASS] v.db.addcol
Glynn Clements
glynn at gclements.plus.com
Sat Nov 10 17:56:05 EST 2007
Moritz Lennert wrote:
> >> One I don't know how to interpret what happens is this in
> >> lib/g3d/g3dclose.c:
> >
> > It appears to have been copied verbatim from lib/gis/closecell.c. The
> > original has since been modified to simply call rename() rather than
> > messing around with link() or CopyFile().
>
> So all this can be removed:
>
> #ifdef __MINGW32__^M
> if ( CopyFile ( map->tempName, path, FALSE ) == 0 ) {^M
> #else^M
> if (link (map->tempName, path) < 0) {^M
> #endif^M
What you want is just rename(map->tempName, path), with an added
remove() on Windows. See the output from:
cvs diff -r 2.7 -r 2.8 lib/gis/closecell.c
for the corresponding change to the original.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-windows
mailing list