File diff r18875:1438011bedd9 → r18876:3403b9c464f9
src/strgen/strgen.h
Show inline comments
 
@@ -3,24 +3,26 @@
 
/*
 
 * This file is part of OpenTTD.
 
 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
 
 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
 
 */
 

	
 
/** @file strgen.h Structures related to strgen. */
 

	
 
#ifndef STRGEN_H
 
#define STRGEN_H
 

	
 
#include "../language.h"
 

	
 
/** Container for the different cases of a string. */
 
struct Case {
 
	int caseidx;  ///< The index of the case.
 
	char *string; ///< The translation of the case.
 
	Case *next;   ///< The next, chained, case.
 

	
 
	Case(int caseidx, const char *string, Case *next);
 
	~Case();
 
};
 

	
 
/** Information about a single string. */
 
struct LangString {