Fixed: Compilation (missing NLMISC namespaces for nlfopen)
This commit is contained in:
parent
c83f467be1
commit
d11053aa03
4 changed files with 11 additions and 11 deletions
|
@ -65,7 +65,7 @@ public:
|
||||||
|
|
||||||
/*bool write(char *filename)
|
/*bool write(char *filename)
|
||||||
{
|
{
|
||||||
FILE *outf=nlfopen(filename, "wb");
|
FILE *outf=NLMISC::nlfopen(filename, "wb");
|
||||||
if (outf==NULL)
|
if (outf==NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -283,7 +283,7 @@ public:
|
||||||
if (_File != NULL)
|
if (_File != NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
_File = nlfopen(filename, mode);
|
_File = NLMISC::nlfopen(filename, mode);
|
||||||
if (_File == NULL)
|
if (_File == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -1009,7 +1009,7 @@ public:
|
||||||
std::string result = ITemplatizerBloc::eval(env);
|
std::string result = ITemplatizerBloc::eval(env);
|
||||||
|
|
||||||
FILE* f;
|
FILE* f;
|
||||||
f = nlfopen(filename, (clearfile == "true" ? "w" : "a"));
|
f = NLMISC::nlfopen(filename, (clearfile == "true" ? "w" : "a"));
|
||||||
if (f != NULL)
|
if (f != NULL)
|
||||||
{
|
{
|
||||||
fwrite(result.c_str(), 1, result.size(), f);
|
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>::iterator iarg;
|
||||||
vector<string>::const_iterator ivs;
|
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 );
|
nlwarning( "Can't find file %s", filename );
|
||||||
}
|
}
|
||||||
|
@ -1122,7 +1122,7 @@ void loadCSVFile( const char *filename, TMapDeliveryCallback deliveryCallback, b
|
||||||
vector<string> args;
|
vector<string> args;
|
||||||
vector<string>::iterator iarg;
|
vector<string>::iterator iarg;
|
||||||
|
|
||||||
if ( (file = nlfopen( filename, "r" )) == NULL )
|
if ( (file = NLMISC::nlfopen( filename, "r" )) == NULL )
|
||||||
{
|
{
|
||||||
nlwarning( "Can't find file %s", filename );
|
nlwarning( "Can't find file %s", filename );
|
||||||
}
|
}
|
||||||
|
@ -1179,7 +1179,7 @@ void loadCSVFile( const char *filename, TVectorDeliveryCallback deliveryCallback
|
||||||
vs args;
|
vs args;
|
||||||
vs::iterator iarg;
|
vs::iterator iarg;
|
||||||
|
|
||||||
if ( (file = nlfopen( filename, "r" )) == NULL )
|
if ( (file = NLMISC::nlfopen( filename, "r" )) == NULL )
|
||||||
{
|
{
|
||||||
nlwarning( "Can't find file %s", filename );
|
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> args;
|
||||||
vector<string>::iterator iarg;
|
vector<string>::iterator iarg;
|
||||||
|
|
||||||
if ( (rulesFile = nlfopen( filename, "r" )) == NULL )
|
if ( (rulesFile = NLMISC::nlfopen( filename, "r" )) == NULL )
|
||||||
{
|
{
|
||||||
nlwarning( "Can't find file %s", filename );
|
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> args;
|
||||||
vector<string>::iterator iarg;
|
vector<string>::iterator iarg;
|
||||||
|
|
||||||
if ( (rulesFile = nlfopen( filename, "r" )) == NULL )
|
if ( (rulesFile = NLMISC::nlfopen( filename, "r" )) == NULL )
|
||||||
{
|
{
|
||||||
nlwarning( "Can't find file %s", filename );
|
nlwarning( "Can't find file %s", filename );
|
||||||
}
|
}
|
||||||
|
@ -1583,7 +1583,7 @@ void loadTitles( const string& sourceWords, const string& sourceBase, const stri
|
||||||
void extractRawMaterialNames()
|
void extractRawMaterialNames()
|
||||||
{
|
{
|
||||||
loadCSVFile( ExtractNamesCsv.c_str(), readRMNames );
|
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" );
|
fprintf( output, "Code;Name\n" );
|
||||||
for ( mss::const_iterator iun=UniqueRMNamesAndSheetCodeHead.begin(); iun!=UniqueRMNamesAndSheetCodeHead.end(); ++iun )
|
for ( mss::const_iterator iun=UniqueRMNamesAndSheetCodeHead.begin(); iun!=UniqueRMNamesAndSheetCodeHead.end(); ++iun )
|
||||||
{
|
{
|
||||||
|
@ -2344,7 +2344,7 @@ public:
|
||||||
if ( ! _Enabled )
|
if ( ! _Enabled )
|
||||||
return;
|
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() );
|
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 )
|
if ( ! _Enabled )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_File = nlfopen( filename, "wt" );
|
_File = NLMISC::nlfopen( filename, "wt" );
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue