File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/strgen/strgen.cpp
Show inline comments
 
@@ -112,20 +112,20 @@ struct FileStringReader : StringReader {
 
	/** Free/close the file. */
 
	virtual ~FileStringReader()
 
	{
 
		fclose(this->fh);
 
	}
 

	
 
	/* virtual */ char *ReadLine(char *buffer, const char *last)
 
	char *ReadLine(char *buffer, const char *last) override
 
	{
 
		return fgets(buffer, ClampToU16(last - buffer + 1), this->fh);
 
	}
 

	
 
	/* virtual */ void HandlePragma(char *str);
 
	void HandlePragma(char *str) override;
 

	
 
	/* virtual */ void ParseFile()
 
	void ParseFile() override
 
	{
 
		this->StringReader::ParseFile();
 

	
 
		if (StrEmpty(_lang.name) || StrEmpty(_lang.own_name) || StrEmpty(_lang.isocode)) {
 
			error("Language must include ##name, ##ownname and ##isocode");
 
		}