mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 12:09:06 +00:00
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)
|
||||
{
|
||||
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…
Reference in a new issue