~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to frmts/r/rcreatecopy.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: rcreatecopy.cpp 17425 2009-07-21 21:05:07Z rouault $
 
2
 * $Id: rcreatecopy.cpp 20996 2010-10-28 18:38:15Z rouault $
3
3
 *
4
4
 * Project:  R Format Driver
5
5
 * Purpose:  CreateCopy() implementation for R stats package object format.
30
30
#include "gdal_pam.h"
31
31
#include "cpl_string.h"
32
32
 
33
 
CPL_CVSID("$Id: rcreatecopy.cpp 17425 2009-07-21 21:05:07Z rouault $");
 
33
CPL_CVSID("$Id: rcreatecopy.cpp 20996 2010-10-28 18:38:15Z rouault $");
34
34
 
35
35
/************************************************************************/
36
36
/* ==================================================================== */
42
42
/*                           RWriteInteger()                            */
43
43
/************************************************************************/
44
44
 
45
 
static void RWriteInteger( FILE *fp, int bASCII, int nValue )
 
45
static void RWriteInteger( VSILFILE *fp, int bASCII, int nValue )
46
46
 
47
47
{
48
48
    if( bASCII )
62
62
/*                            RWriteString()                            */
63
63
/************************************************************************/
64
64
 
65
 
static void RWriteString( FILE *fp, int bASCII, const char *pszValue )
 
65
static void RWriteString( VSILFILE *fp, int bASCII, const char *pszValue )
66
66
 
67
67
{
68
68
    RWriteInteger( fp, bASCII, 4105 );
113
113
/* -------------------------------------------------------------------- */
114
114
/*      Create the file.                                                */
115
115
/* -------------------------------------------------------------------- */
116
 
    FILE        *fp;
 
116
    VSILFILE    *fp;
117
117
 
118
118
    fp = VSIFOpenL( osAdjustedFilename, "wb" );
119
119
    if( fp == NULL )