[winGRASS] v.db.addcol

Moritz Lennert mlennert at club.worldonline.be
Sat Nov 10 15:07:32 EST 2007


On Sat, November 10, 2007 14:20, Glynn Clements wrote:
>
> Moritz Lennert wrote:
>
>> > Call remove() first.
>> >
>> I've found the following other places where I have the feeling that this
>> needs to be done, but would like confirmation that these are correct:
>
> [snip]
>
> I think that we need a G_rename_file() function (G_rename() already
> exists; that renames maps etc). Ideally, the remove() call should only
> be used on Windows.

Ok, I can have a go at that, but not before the second half of next week.

>
>> 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

?




More information about the grass-windows mailing list