src/strgen/strgen.cpp
branchNewGRF_ports
changeset 10184 fcf5fb2548eb
parent 6872 1c4a4a609f85
child 10242 52b4a9006029
equal deleted inserted replaced
10179:eec5a7dcbf61 10184:fcf5fb2548eb
   101 #define MAX_NUM_CASES 50
   101 #define MAX_NUM_CASES 50
   102 static char _cases[MAX_NUM_CASES][16];
   102 static char _cases[MAX_NUM_CASES][16];
   103 static int _numcases;
   103 static int _numcases;
   104 
   104 
   105 // for each plural value, this is the number of plural forms.
   105 // for each plural value, this is the number of plural forms.
   106 static const byte _plural_form_counts[] = { 2, 1, 2, 3, 3, 3, 3, 3, 4 };
   106 static const byte _plural_form_counts[] = { 2, 1, 2, 3, 3, 3, 3, 3, 4, 2 };
   107 
   107 
   108 static const char *_cur_ident;
   108 static const char *_cur_ident;
   109 
   109 
   110 struct CmdPair {
   110 struct CmdPair {
   111 	const CmdStruct *a;
   111 	const CmdStruct *a;
  1285 static inline char *replace_pathsep(char *s) { return s; }
  1285 static inline char *replace_pathsep(char *s) { return s; }
  1286 #endif
  1286 #endif
  1287 
  1287 
  1288 int CDECL main(int argc, char* argv[])
  1288 int CDECL main(int argc, char* argv[])
  1289 {
  1289 {
  1290 	char pathbuf[256];
  1290 	char pathbuf[MAX_PATH];
  1291 	const char *src_dir = ".";
  1291 	const char *src_dir = ".";
  1292 	const char *dest_dir = NULL;
  1292 	const char *dest_dir = NULL;
  1293 
  1293 
  1294 	while (argc > 1 && *argv[1] == '-') {
  1294 	while (argc > 1 && *argv[1] == '-') {
  1295 		if (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0) {
  1295 		if (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0) {