Merge with develop

--HG--
branch : compatibility-develop
hg/compatibility-develop
kervala 9 years ago
commit 7bcde43a63

@ -65,7 +65,7 @@ public:
/*bool write(char *filename)
{
FILE *outf=nlfopen(filename, "wb");
FILE *outf=NLMISC::nlfopen(filename, "wb");
if (outf==NULL)
return false;

@ -283,7 +283,7 @@ public:
if (_File != NULL)
return false;
_File = nlfopen(filename, mode);
_File = NLMISC::nlfopen(filename, mode);
if (_File == NULL)
return false;

@ -1009,7 +1009,7 @@ public:
std::string result = ITemplatizerBloc::eval(env);
FILE* f;
f = nlfopen(filename, (clearfile == "true" ? "w" : "a"));
f = NLMISC::nlfopen(filename, (clearfile == "true" ? "w" : "a"));
if (f != NULL)
{
fwrite(result.c_str(), 1, result.size(), f);

@ -863,7 +863,7 @@ void loadNomenclatureCodes( const char *title, const vector<string>& longNames,
vector<string>::iterator iarg;
vector<string>::const_iterator ivs;
if ( (rulesFile = nlfopen( filename, "r" )) == NULL )
if ( (rulesFile = NLMISC::nlfopen( filename, "r" )) == NULL )
{
nlwarning( "Can't find file %s", filename );
}
@ -1122,7 +1122,7 @@ void loadCSVFile( const char *filename, TMapDeliveryCallback deliveryCallback, b
vector<string> args;
vector<string>::iterator iarg;
if ( (file = nlfopen( filename, "r" )) == NULL )
if ( (file = NLMISC::nlfopen( filename, "r" )) == NULL )
{
nlwarning( "Can't find file %s", filename );
}
@ -1179,7 +1179,7 @@ void loadCSVFile( const char *filename, TVectorDeliveryCallback deliveryCallback
vs args;
vs::iterator iarg;
if ( (file = nlfopen( filename, "r" )) == NULL )
if ( (file = NLMISC::nlfopen( filename, "r" )) == NULL )
{
nlwarning( "Can't find file %s", filename );
}
@ -1218,7 +1218,7 @@ void loadValueFile( const char *filename, const vector<string>& keyStrings,
vector<string> args;
vector<string>::iterator iarg;
if ( (rulesFile = nlfopen( filename, "r" )) == NULL )
if ( (rulesFile = NLMISC::nlfopen( filename, "r" )) == NULL )
{
nlwarning( "Can't find file %s", filename );
}
@ -1272,7 +1272,7 @@ void loadRulesFile( const char *filename, const vector<string>& keyStrings,
vector<string> args;
vector<string>::iterator iarg;
if ( (rulesFile = nlfopen( filename, "r" )) == NULL )
if ( (rulesFile = NLMISC::nlfopen( filename, "r" )) == NULL )
{
nlwarning( "Can't find file %s", filename );
}
@ -1583,7 +1583,7 @@ void loadTitles( const string& sourceWords, const string& sourceBase, const stri
void extractRawMaterialNames()
{
loadCSVFile( ExtractNamesCsv.c_str(), readRMNames );
FILE *output = nlfopen( CFile::getFilenameWithoutExtension( ExtractNamesCsv ) + "_output.csv", "wt" );
FILE *output = NLMISC::nlfopen( CFile::getFilenameWithoutExtension( ExtractNamesCsv ) + "_output.csv", "wt" );
fprintf( output, "Code;Name\n" );
for ( mss::const_iterator iun=UniqueRMNamesAndSheetCodeHead.begin(); iun!=UniqueRMNamesAndSheetCodeHead.end(); ++iun )
{
@ -2344,7 +2344,7 @@ public:
if ( ! _Enabled )
return;
_File = nlfopen( filename, "wt" );
_File = NLMISC::nlfopen( filename, "wt" );
fprintf( _File, ("<html><head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n<title>" + title + "</title>\n</head><body>\n").c_str() );
}
@ -2409,7 +2409,7 @@ public:
if ( ! _Enabled )
return;
_File = nlfopen( filename, "wt" );
_File = NLMISC::nlfopen( filename, "wt" );
}
///

Loading…
Cancel
Save